/* ------------------------------------------------------------------
   digital.jacoedo.dev — Tool-Hub
   Corporate Design jaco/edo: jeblue #0000FF, weiss, schwarz
   ------------------------------------------------------------------ */

/* ---------- Fonts (lokal, kein CDN) ---------- */
@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('/hub/fonts/HelveticaNeueLTPro-Lt.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('/hub/fonts/HelveticaNeueLTPro-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('/hub/fonts/HelveticaNeueLTPro-Md.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue LT Pro';
  src: url('/hub/fonts/HelveticaNeueLTPro-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Corporate A';
  src: url('/hub/fonts/corporatea-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset / Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --jeblue: #0000FF;
  --black: #000000;
  --white: #ffffff;
  --line: #e6e6e6;
  --grey: #8c8c8c;
  --grey-bg: #fafafa;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;          /* je16 */
  line-height: 23px;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--jeblue);
  color: var(--white);
}

/* ---------- Typo-Skala ---------- */
.je16 { font-size: 1rem;       line-height: 23px; }
.je18 { font-size: 1.125rem;   line-height: 23px; }
.je22 { font-size: 1.375rem;   line-height: 30px; }
.je28 { font-size: 1.75rem;    line-height: 40px; }
.je48 { font-size: 3rem;       line-height: 60px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 32px 0 24px;
}

.site-header .logo {
  display: inline-block;
  line-height: 0;
}

.site-header .logo img {
  height: 26px;
  width: auto;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
}

.hero h1 {
  font-size: 3rem;          /* je48 */
  line-height: 60px;
  font-weight: 700;
  color: var(--jeblue);
  text-transform: lowercase;
  letter-spacing: -0.01em;
}

.hero p {
  margin-top: 20px;
  font-size: 1.375rem;      /* je22 */
  line-height: 30px;
  font-weight: 300;
  max-width: 34em;
}

/* ---------- Tools ---------- */
.tools {
  padding: 8px 0 88px;
  flex: 1 0 auto;
}

.tools h2 {
  font-size: 1.75rem;       /* je28 */
  line-height: 40px;
  font-weight: 700;
  color: var(--jeblue);
  text-transform: lowercase;
  margin-bottom: 28px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Kachel-Grundform */
.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px;
  border: 1.5px solid var(--line);
  background: var(--white);
}

.tool-card .tool-index {
  font-family: 'Corporate A', Georgia, 'Times New Roman', serif;
  font-size: 1.375rem;      /* je22 */
  line-height: 30px;
  color: var(--grey);
  margin-bottom: 24px;
}

.tool-card h3 {
  font-size: 1.375rem;      /* je22 */
  line-height: 30px;
  font-weight: 700;
}

.tool-card p {
  margin-top: 8px;
  font-size: 1rem;          /* je16 */
  line-height: 23px;
  color: var(--black);
}

.tool-card .tool-cta {
  margin-top: auto;
  padding-top: 24px;
  font-size: 1rem;
  line-height: 23px;
  font-weight: 500;
  color: var(--jeblue);
}

.tool-card .tool-cta .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

/* Aktive Kachel (JeForm) */
.tool-card--active {
  transition: border-color 0.2s ease;
}

.tool-card--active .tool-index {
  color: var(--jeblue);
}

.tool-card--active:hover,
.tool-card--active:focus-visible {
  border-color: var(--jeblue);
  outline: none;
}

.tool-card--active:hover h3,
.tool-card--active:focus-visible h3 {
  color: var(--jeblue);
}

.tool-card--active:hover .tool-cta .arrow,
.tool-card--active:focus-visible .tool-cta .arrow {
  transform: translateX(6px);
}

/* Platzhalter-Kacheln */
.tool-card--soon {
  background: var(--grey-bg);
  border-color: var(--line);
  color: var(--grey);
  cursor: default;
  user-select: none;
}

.tool-card--soon h3,
.tool-card--soon p {
  color: var(--grey);
}

.tool-card--soon .tool-badge {
  margin-top: auto;
  padding-top: 24px;
}

.tool-card--soon .tool-badge span {
  display: inline-block;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 6px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 100px;
  color: var(--grey);
  text-transform: lowercase;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.site-footer p {
  font-size: 1rem;          /* je16 */
  line-height: 23px;
  color: var(--black);
}

.site-footer a {
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--jeblue);
  border-bottom-color: var(--jeblue);
  outline: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    padding: 24px 0 16px;
  }

  .site-header .logo img {
    height: 22px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 2.125rem;    /* mobil verkleinert */
    line-height: 44px;
  }

  .hero p {
    font-size: 1.125rem;    /* je18 */
    line-height: 26px;
  }

  .tools {
    padding-bottom: 64px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 0;
  }

  .tool-card .tool-cta,
  .tool-card--soon .tool-badge {
    padding-top: 28px;
  }
}
