/* ==========================================================
   FoxGard – Stylesheet (helle, farbige Variante)
   Markenfarben aus dem Logo: Fuchs-Orange/Rot + Blatt-Grün,
   dazu Himmelblau als Akzent.
   ========================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --navy: #14304D;
  --text: #2C3A48;
  --muted: #5B6B7A;

  --green: #2E9E44;
  --green-2: #7CCB3A;
  --green-dark: #0F3D25;
  --orange: #EE6A1C;
  --orange-2: #F7A21B;
  --red: #C8321B;
  --blue: #2965C6;
  --sky: #5FA8E8;

  --bg: #FFFFFF;
  --tint-green: #F1F8EC;
  --tint-orange: #FFF4E8;
  --tint-blue: #EEF5FD;
  --line: #E3E9EE;

  --grad-brand: linear-gradient(90deg, var(--red) 0%, var(--orange) 35%, var(--orange-2) 55%, var(--green-2) 78%, var(--green) 100%);

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --radius: 20px;
  --section: clamp(76px, 10vw, 130px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 50px -24px rgba(20, 48, 77, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin: 0; color: var(--navy); }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; position: relative; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-brand); }
.grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl { background: linear-gradient(transparent 62%, rgba(124, 203, 58, .38) 62%); padding: 0 .08em; }

/* ---------- Kreis-Icons (wie bisherige Seite) ---------- */
.ic {
  --s: 64px;
  width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #1E5C36, var(--green-dark) 70%);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px #4CC35A, 0 0 22px 4px rgba(76, 195, 90, .55);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.ic svg { width: 56%; height: 56%; }
.ic-lg { --s: 70px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 15.5px/1 var(--sans); text-decoration: none;
  padding: 17px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-fox { background: linear-gradient(90deg, var(--red), var(--orange) 60%, var(--orange-2)); color: #fff; box-shadow: 0 4px 10px -4px rgba(238, 106, 28, .35); }
.btn-fox:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -5px rgba(238, 106, 28, .45); }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: #fff; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-small { padding: 12px 20px; font-size: 14.5px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-brand); }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(20, 48, 77, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; transition: height .3s var(--ease); }
.site-header.scrolled .header-inner { height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand picture { display: block; }
.brand-logo { height: 62px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 52px; }
.site-footer .brand-logo { height: 40px; }
.brand-mark { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-size: 25px; font-weight: 800; letter-spacing: .02em; background: linear-gradient(90deg, var(--red), var(--orange) 40%, var(--orange-2) 55%, var(--green-2) 75%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-claim { font-size: 8.4px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 700; position: relative; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 3px; border-radius: 3px; background: var(--grad-brand); transition: right .3s var(--ease); }
.nav a:not(.btn):hover { color: var(--blue); }
.nav a:not(.btn):hover::after { right: 0; }
.nav .nav-cta { color: #fff; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 112px 0 60px; position: relative; overflow: hidden;
  background:
    radial-gradient(800px 420px at 100% 0%, rgba(95, 168, 232, .22), transparent 70%),
    radial-gradient(700px 380px at 0% 55%, rgba(124, 203, 58, .16), transparent 70%),
    linear-gradient(180deg, #F3F9FF 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 74px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 26px; }
.hero .lead { font-size: clamp(17px, 1.4vw, 19.5px); color: var(--muted); max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; }
.scene {
  position: relative; aspect-ratio: 1385 / 975; border-radius: 28px; overflow: hidden; background: #8FC3EE;
  box-shadow: 0 40px 80px -40px rgba(20, 48, 77, .5), 0 0 0 6px #fff;
}
.scene picture, .scene img { display: block; width: 100%; height: 100%; }
.scene img { object-fit: cover; animation: heroIn 1.2s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } }
.deck { position: absolute; left: 0; right: 0; top: 63%; bottom: 0; perspective: 900px; perspective-origin: 50% -40%; }
.deck-svg {
  width: 150%; height: auto; position: absolute; left: 50%; top: 0;
  transform: translate(-50%, 0) rotateX(70deg) rotateZ(-10deg); transform-origin: 50% 0;
  filter: drop-shadow(0 -10px 25px rgba(0, 0, 0, .25));
  animation: deckIn 1.5s var(--ease) both .1s;
}
@keyframes deckIn { from { opacity: 0; transform: translate(-50%, 6%) rotateX(72deg) rotateZ(-6deg); } }
.tag {
  position: absolute; z-index: 2; font-size: 13px; font-weight: 800; color: var(--navy);
  background: #fff; padding: 8px 14px 8px 11px; border-radius: 999px; box-shadow: 0 10px 24px -10px rgba(20, 48, 77, .5);
  display: inline-flex; align-items: center; gap: 8px; animation: float 6s ease-in-out infinite;
}
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.tag-1 { top: 70%; left: 8%; }
.tag-2 { top: 76%; right: 8%; animation-delay: -2s; }
.tag-2::before { background: var(--green); }
.tag-3 { bottom: 6%; left: 36%; animation-delay: -4s; }
.tag-3::before { background: var(--red); }
@keyframes float { 50% { transform: translateY(-7px); } }

.hero-card {
  position: absolute; z-index: 3; left: -28px; top: 26px;
  display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow);
}
.hero-card .hero-card-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--green-dark); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #4CC35A33; }
.hero-card svg { width: 24px; height: 24px; }
.hero-card strong { display: block; font-size: 16px; color: var(--navy); }
.hero-card small { color: var(--muted); font-size: 13px; }

/* Icon-Band */
.icon-band {
  list-style: none; margin: 70px 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.icon-band::before { /* grüne Verbindungslinie */
  content: ""; position: absolute; left: 8%; right: 8%; top: 32px; height: 2px;
  background: linear-gradient(90deg, transparent, #4CC35A 10%, #4CC35A 90%, transparent);
  box-shadow: 0 0 10px rgba(76, 195, 90, .7);
}
.icon-band a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; text-decoration: none; font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--navy); position: relative; }
.icon-band a:hover .ic { transform: translateY(-5px) scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px #4CC35A, 0 0 30px 8px rgba(76, 195, 90, .7); }
.icon-band a:hover { color: var(--green); }

/* ---------- Kennzahlen ---------- */
.stats-wrap { padding: 10px 0 70px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; }
.stats > div { padding: 26px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-top: 5px solid currentColor; }
.stats dt { font-size: clamp(40px, 4vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -.04em; margin-bottom: 10px; }
.stats dd { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.c-orange { color: var(--orange); }
.c-green { color: var(--green); }
.c-blue { color: var(--blue); }
.c-red { color: var(--red); }

/* ---------- Werkstoff-Band (statisch) ---------- */
.materials { background: linear-gradient(90deg, var(--green-dark), var(--green) 50%, var(--green-dark)); color: #fff; padding: 22px 0; }
.materials .wrap { display: flex; align-items: center; gap: 40px; }
.materials-label { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.materials-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; justify-content: space-between; gap: 20px; }
.materials-list li { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; white-space: nowrap; }
.sw { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.sw-hartholz { background: repeating-linear-gradient(100deg, #8A5230 0 3px, #A4683F 3px 7px); }
.sw-wpc { background: repeating-linear-gradient(90deg, #6E716C 0 2px, #8B8E87 2px 5px); }
.sw-thermo { background: repeating-linear-gradient(80deg, #5E3B22 0 3px, #7A4E2E 3px 6px); }
.sw-bambus { background: repeating-linear-gradient(0deg, #D9B66E 0 6px, #C29A52 6px 7px); }
.sw-alu { background: linear-gradient(135deg, #F1F3F5, #A9B0B7 55%, #D9DDE1); }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.intro-text > p { font-size: 18px; color: var(--muted); margin-top: 38px; }
.audience { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.audience li { font-size: 18px; font-weight: 800; color: var(--navy); padding: 16px 18px; border-radius: 14px; background: #F6F8FA; display: flex; align-items: center; gap: 12px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.d-orange { background: var(--orange); } .d-green { background: var(--green); } .d-blue { background: var(--blue); } .d-red { background: var(--red); }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, var(--tint-green), #fff); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .sub { color: var(--muted); font-size: 18px; margin-top: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  --c: var(--green);
  background: #fff; border-radius: var(--radius); padding: 34px 26px 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.s-blue { --c: var(--blue); } .s-orange { --c: var(--orange); } .s-green { --c: var(--green); } .s-red { --c: var(--red); }
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -26px rgba(20, 48, 77, .4); }
.service .ic { margin: 4px 0 26px 4px; }
.service h3 { font-size: 23px; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.service ul { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.service li { font-size: 14.5px; font-weight: 700; padding: 6px 0 6px 22px; position: relative; color: var(--navy); }
.service li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); opacity: .9; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--c); }
.service li a { text-decoration: none; color: var(--c); border-bottom: 2px solid currentColor; }
.service li a:hover { opacity: .8; }

/* ---------- Reklamation ---------- */
.claims { background: var(--tint-orange); }
.claims::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 162, 27, .25), transparent 70%); }
.claims-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); position: relative; }
.claims .eyebrow { color: var(--orange); }
.claims-intro h2 { margin-bottom: 24px; }
.claims-intro > p:not(.eyebrow):not(.small-label):not(.footnote) { font-size: 17.5px; color: var(--muted); }
.small-label { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 34px 0 14px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 700; padding: 9px 15px; border-radius: 999px; background: #fff; color: var(--navy); border: 1.5px solid #F6D2B4; }
.footnote { font-size: 14px; color: var(--muted); margin-top: 26px; padding: 12px 16px; border-left: 4px solid var(--orange); background: #fff; border-radius: 0 10px 10px 0; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; background: linear-gradient(var(--red), var(--orange), var(--orange-2), var(--green-2), var(--green)); }
.steps li { display: flex; gap: 22px; padding: 0 0 18px; position: relative; }
.steps li > div { background: #fff; border-radius: 16px; padding: 18px 22px; flex: 1; box-shadow: 0 10px 30px -22px rgba(20, 48, 77, .5); }
.step-n { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--tint-orange); }
.steps li:nth-child(1) .step-n { background: var(--red); }
.steps li:nth-child(2) .step-n { background: var(--orange); }
.steps li:nth-child(3) .step-n { background: var(--orange-2); }
.steps li:nth-child(4) .step-n { background: var(--green-2); }
.steps li:nth-child(5) .step-n { background: var(--green); }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- CRM ---------- */
.crm-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.crm .eyebrow { color: var(--blue); }
.crm-copy h2 { margin-bottom: 22px; }
.crm-copy > p:not(.eyebrow):not(.integrations) { color: var(--muted); font-size: 17.5px; }
.features { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.features li { font-size: 14.5px; color: var(--muted); line-height: 1.55; padding: 18px; border-radius: 14px; background: var(--tint-blue); }
.features strong { display: block; font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.integrations { font-size: 14px; font-weight: 700; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.integrations span { padding: 6px 12px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; }
.integrations .i-outlook { background: #0F6CBD; }
.integrations .i-teams { background: #5B5FC7; }
.integrations .i-phone { background: var(--green); }
.integrations .i-bc { background: #008575; }

.crm-visual { position: relative; }
.crm-visual::before { content: ""; position: absolute; inset: 8% -5% -5% 8%; border-radius: 30px; background: linear-gradient(135deg, var(--sky), var(--green-2)); transform: rotate(3deg); }
.ui { position: relative; background: #fff; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(20, 48, 77, .45); overflow: hidden; }
.ui-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: #F6F8FA; border-bottom: 1px solid var(--line); }
.ui-bar i { width: 11px; height: 11px; border-radius: 50%; }
.ui-bar i:nth-child(1) { background: #FF6159; } .ui-bar i:nth-child(2) { background: #FFBD2E; } .ui-bar i:nth-child(3) { background: #28C941; }
.ui-bar span { margin-left: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ui-body { padding: 22px; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.ui-kpis > div { border-radius: 12px; padding: 14px; }
.ui-kpis > div:nth-child(1) { background: var(--tint-orange); }
.ui-kpis > div:nth-child(2) { background: var(--tint-green); }
.ui-kpis > div:nth-child(3) { background: var(--tint-blue); }
.ui-kpis small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.ui-kpis b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.ui-kpis em { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.ui-kpis em.up { color: var(--green); }
.bar { display: block; height: 6px; border-radius: 4px; background: #fff; margin-top: 7px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-2), var(--green)); border-radius: 4px; }
.ui-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ui-alerts { list-style: none; margin: 0 0 16px; padding: 0; }
.ui-alerts li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ui-alerts div { flex: 1; min-width: 0; }
.ui-alerts b { display: block; font-size: 14px; color: var(--navy); }
.ui-alerts small { font-size: 12.5px; color: var(--muted); }
.ui-alerts button { font: 800 12px var(--sans); border: 0; background: var(--blue); border-radius: 999px; padding: 8px 13px; color: #fff; }
.pill { font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 6px; white-space: nowrap; width: 98px; text-align: center; }
.pill.warn { background: #FFF0D6; color: #A35F00; }
.pill.fox { background: #FFE4D4; color: #B8410F; }
.pill.ok { background: #E3F4DE; color: #24753A; }
.ui-voice { display: flex; align-items: center; gap: 14px; padding: 14px; background: linear-gradient(90deg, var(--green-dark), #1E5C36); border-radius: 12px; color: #fff; }
.ui-voice small { display: block; font-size: 12px; color: rgba(255, 255, 255, .8); margin-bottom: 6px; }
.mic { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); flex: none; position: relative; }
.mic::after { content: ""; position: absolute; left: 14px; top: 9px; width: 8px; height: 13px; border-radius: 5px; background: #fff; }
.wave { display: flex; align-items: center; gap: 4px; height: 18px; }
.wave i { width: 3px; border-radius: 2px; background: var(--green-2); animation: wave 1.2s ease-in-out infinite; height: 40%; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes wave { 50% { height: 100%; } }

/* ---------- Azubi ---------- */
.azubi { background: var(--tint-green); }
.azubi-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: end; margin-bottom: 50px; }
.azubi-head > div:last-child { display: flex; gap: 22px; align-items: flex-start; }
.azubi-head p { color: var(--muted); font-size: 17px; margin: 0; }
.modules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.modules li {
  --c: var(--green);
  position: relative; padding: 26px 26px 28px; border-radius: 18px; background: #fff;
  box-shadow: 0 14px 34px -24px rgba(20, 48, 77, .5); border-bottom: 5px solid var(--c);
  transition: transform .3s var(--ease);
}
.modules li:hover { transform: translateY(-4px); }
.m1 { --c: #9A6538 !important; } .m2 { --c: var(--green) !important; } .m3 { --c: var(--orange-2) !important; }
.m4 { --c: var(--orange) !important; } .m5 { --c: var(--blue) !important; } .m6 { --c: var(--red) !important; }
.modules span { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--c); padding: 5px 10px; border-radius: 6px; }
.modules h3 { margin: 14px 0 8px; }
.modules p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- LINK-Power ---------- */
.linkpower { background: linear-gradient(135deg, var(--tint-blue), #fff 70%); }
.lp-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.linkpower .ic { margin-bottom: 30px; }
.linkpower .eyebrow { color: var(--blue); }
.linkpower h2 { font-size: clamp(28px, 3.2vw, 40px); }
.lp-text > p { color: var(--muted); font-size: 17.5px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.lp-cards > div { padding: 22px 20px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); border-left: 5px solid var(--blue); }
.lp-cards > div:nth-child(2) { border-color: var(--orange); }
.lp-cards > div:nth-child(3) { border-color: var(--green); }
.lp-cards h3 { font-size: 18px; margin-bottom: 6px; }
.lp-cards p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.portrait { position: sticky; top: 110px; max-width: 340px; }
.portrait-ph {
  aspect-ratio: 4 / 5; border-radius: 24px; display: grid; place-items: center; align-content: center; gap: 14px;
  background: radial-gradient(circle at 30% 20%, #fff 0, transparent 50%), linear-gradient(160deg, #DCEFFC, #E9F6DF 60%, #FFE9D2);
  box-shadow: var(--shadow);
}
.portrait-ph img { filter: drop-shadow(0 10px 20px rgba(20,48,77,.18)); }
.portrait-ph span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.portrait-caption { margin-top: 18px; }
.portrait-caption strong { display: block; font-size: 22px; color: var(--navy); }
.portrait-caption span { font-size: 14.5px; color: var(--muted); }
.about-copy h2 { margin-bottom: 22px; }
.about-copy > p:not(.eyebrow) { font-size: 18px; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 40px 0 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.t-year { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.timeline b { display: block; font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.timeline small { font-size: 15px; color: var(--muted); line-height: 1.55; display: block; }

/* ---------- Kontakt ---------- */
.contact { background: linear-gradient(135deg, #1E7A3A 0%, var(--green) 55%, #5DB847 100%); color: rgba(255, 255, 255, .9); overflow: hidden; }
.contact::before { content: ""; position: absolute; right: -10%; bottom: -40%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 162, 27, .35), transparent 65%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; position: relative; }
.contact h2 { color: #fff; margin-bottom: 20px; }
.contact .eyebrow { color: #fff; }
.contact-copy > p:not(.eyebrow) { font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .25); align-items: baseline; }
.contact-list > li > span:first-child { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.contact-list a, .contact-list address, .contact-list .links { color: #fff; font-style: normal; font-size: 17px; font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form { background: #fff; border-radius: 24px; padding: clamp(24px, 3.5vw, 38px); display: grid; gap: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .35); color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 800; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 500 16px var(--sans); color: var(--text); width: 100%;
  background: #F6F8FA; border: 2px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s, background .2s; resize: vertical;
}
.contact-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314304D' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.contact-form .invalid { border-color: var(--red); }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-note a { color: var(--blue); }
.form-msg { margin: 0; font-size: 14px; font-weight: 700; color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--muted); padding: 30px 0; font-size: 14px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.brand-light .brand-word { font-size: 21px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { text-decoration: none; color: var(--navy); font-weight: 700; }
.footer-nav a:hover { color: var(--green); }
.copy { margin: 0; }
.footer-meta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.footer-credit { margin: 0; padding-right: 18px; border-right: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.footer-credit strong { color: var(--navy); font-weight: 700; }
.footer-credit a { display: block; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-credit a:hover { color: var(--green); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal-hero { padding: 120px 0 50px; background: linear-gradient(180deg, #F3F9FF, #fff); }
.legal-hero h1 { font-size: clamp(38px, 5vw, 60px); }
.legal { padding: 30px 0 110px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal .todo { background: var(--tint-orange); color: #8A4A0B; border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 14.5px; }

/* ---------- Reveal-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 960px) {
  .materials .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .materials-list { flex-wrap: wrap; justify-content: flex-start; gap: 14px 26px; width: 100%; }
  .nav {
    position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center; gap: 24px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a { font-size: 24px; font-weight: 800; }
  .nav .nav-cta { font-size: 16px; margin-top: 8px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-toggle { display: block; z-index: 2; }
  .hero-grid, .intro-grid, .claims-grid, .crm-grid, .azubi-head, .lp-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .hero-card { left: 12px; top: 12px; }
  .icon-band { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .icon-band::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
  .intro-text > p { margin-top: 0; }
  .portrait { position: static; max-width: 380px; }
}
@media (max-width: 640px) {
  .materials-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .materials-list li { font-size: 16px; }
  body { font-size: 16px; }
  .hero { padding-top: 104px; }
  .brand-logo { height: 48px; }
  .site-header.scrolled .brand-logo { height: 42px; }
  .brand-word { font-size: 21px; }
  .brand-claim { font-size: 7.2px; }
  .brand-mark { width: 36px; height: 36px; }
  .icon-band { grid-template-columns: repeat(2, 1fr); }
  .icon-band a { font-size: 14px; }
  .stats { gap: 12px; }
  .stats > div { padding: 20px 16px; }
  .stats dd { font-size: 13.5px; }
  .service-grid, .modules, .features, .lp-cards, .field-row, .audience { grid-template-columns: 1fr; }
  .tag { font-size: 11.5px; padding: 6px 11px 6px 9px; }
  .hero-card { padding: 10px 14px 10px 10px; }
  .hero-card .hero-card-ic { width: 36px; height: 36px; }
  .ui-kpis { grid-template-columns: 1fr 1fr; }
  .ui-kpis > div:last-child { display: none; }
  .ui-alerts button { display: none; }
  .pill { width: auto; }
  .azubi-head > div:last-child { flex-direction: column; }
  .timeline li { grid-template-columns: 70px 1fr; gap: 14px; }
  .t-year { font-size: 22px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-meta { margin-left: 0; width: 100%; flex-wrap: wrap; }
}

/* Portrait-Foto (Kirby: Feld „Portrait“ unter Über uns) */
.portrait-img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 24px; box-shadow: var(--shadow);
  /* Hintergrund für freigestellte Portraits (transparentes PNG) */
  background: radial-gradient(circle at 30% 20%, #fff 0, transparent 50%), linear-gradient(160deg, #DCEFFC, #E9F6DF 60%, #FFE9D2);
}

/* ==========================================================
   Erweiterungen für die Kirby-Version
   ========================================================== */

/* Akzentfarbe je Leistungsbereich */
.acc-green  { --acc: var(--green);  --acc-tint: var(--tint-green); }
.acc-orange { --acc: var(--orange); --acc-tint: var(--tint-orange); }
.acc-blue   { --acc: var(--blue);   --acc-tint: var(--tint-blue); }
.acc-red    { --acc: var(--red);    --acc-tint: #FDF0EE; }
[class*="acc-"] .eyebrow { color: var(--acc); }

/* „Mehr erfahren“ in Leistungskacheln */
.service .more { display: inline-flex; gap: 8px; margin-top: 18px; font-size: 14.5px; font-weight: 800; color: var(--c); text-decoration: none; }
.service .more span { transition: transform .25s var(--ease); }
.service .more:hover span, .child-card:hover .more span { transform: translateX(4px); }

/* ---------- Startseite: Personal & Recruiting ---------- */
.personal { background: linear-gradient(180deg, var(--tint-blue), #fff); }
.personal .eyebrow { color: var(--red); }
.personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.p-card {
  --c: var(--red);
  background: #fff; border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow);
  border-top: 6px solid var(--c); display: flex; flex-direction: column;
}
.p-card.c2 { --c: var(--blue); }
.p-card-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.p-card h3 { font-size: 24px; }
.p-lead { font-weight: 800; color: var(--c); margin: 4px 0 0; font-size: 15.5px; }
.p-card > p { color: var(--muted); }
.p-card .checklist { margin: 8px 0 26px; grid-template-columns: 1fr; }
.p-card .checklist li { --acc: var(--c); }
.p-card .btn { margin-top: auto; align-self: flex-start; }
.p-quote { margin: 56px auto 0; max-width: 860px; text-align: center; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; color: var(--navy); }
.p-quote::before { content: "“"; display: block; font-size: 70px; line-height: .6; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }

/* ---------- Listen ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.checklist li { position: relative; padding: 4px 0 4px 32px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--acc, var(--green)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14.2 7.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.checklist strong { color: var(--navy); }
.cardlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cardlist li { padding: 20px 22px; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px -24px rgba(20, 48, 77, .5); border-left: 5px solid var(--acc, var(--green)); font-size: 15px; line-height: 1.55; color: var(--muted); }
.cardlist strong { display: block; font-size: 17px; color: var(--navy); margin-bottom: 4px; }

/* ---------- Leistungsseiten ---------- */
.page-hero {
  padding: 150px 0 60px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(95, 168, 232, .22), transparent 70%),
    radial-gradient(600px 320px at 0% 80%, rgba(124, 203, 58, .14), transparent 70%),
    linear-gradient(180deg, #F3F9FF 0%, #fff 100%);
}
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 18px; }
.page-claim { font-size: clamp(19px, 1.9vw, 25px); font-weight: 700; color: var(--navy); max-width: 30em; margin: 0; line-height: 1.4; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--acc, var(--green)); }
.crumbs [aria-current] { color: var(--navy); }
.ic-xl { --s: 130px; margin-right: 20px; }
.page-intro { padding: 10px 0 40px; }
.page-intro-text { max-width: 860px; font-size: 19px; color: var(--muted); border-left: 5px solid var(--acc, var(--green)); padding-left: 26px; }
.page-intro-text p:last-child { margin-bottom: 0; }
.section-sm { padding: clamp(40px, 6vw, 70px) 0; }
.child-wrap { padding-top: 20px; }
.child-grid { grid-template-columns: repeat(3, 1fr); }
.child-card { text-decoration: none; color: inherit; }
.child-card p { flex: 1; }
.detail-section { padding: clamp(56px, 7vw, 96px) 0; }
.detail-section.alt { background: var(--acc-tint, #F6F8FA); }
.detail-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.detail-grid.no-list { grid-template-columns: 1fr; max-width: 860px; }
.detail-head { position: sticky; top: 110px; }
.detail-n { display: inline-block; font-size: 15px; font-weight: 800; color: #fff; background: var(--acc, var(--green)); border-radius: 8px; padding: 4px 10px; margin-bottom: 18px; }
.detail-head h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.detail-text p { color: var(--muted); font-size: 17px; }
.detail-section .checklist { grid-template-columns: 1fr; gap: 12px; }
.detail-section .checklist li { background: #fff; border-radius: 14px; padding: 14px 18px 14px 50px; box-shadow: 0 10px 30px -24px rgba(20, 48, 77, .5); }
.detail-section .checklist li::before { left: 16px; top: 16px; }
.detail-section.alt .steps .step-n { box-shadow: 0 0 0 4px var(--acc-tint, #F6F8FA); }
.detail-section:not(.alt) .steps .step-n { box-shadow: 0 0 0 4px #fff; }
.steps li:nth-child(n+6) .step-n { background: var(--green-dark); }
.detail-chips li { border-color: var(--line); }
.detail-note { margin: 22px 0 0; padding: 14px 18px; border-radius: 0 12px 12px 0; background: #fff; border-left: 4px solid var(--acc, var(--green)); font-weight: 700; color: var(--navy); font-size: 15.5px; }
.more-wrap { background: #fff; border-top: 1px solid var(--line); }
.more-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.more-links a { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 18px; background: #F6F8FA; text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.more-links a:hover { background: var(--acc-tint, var(--tint-green)); transform: translateY(-3px); }
.more-links .ic { --s: 52px; }
.more-links b { display: block; color: var(--navy); font-size: 17px; margin-bottom: 3px; }
.more-links small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cta-band .contact-list { margin-top: 0; }
.cta-actions { margin-top: 30px; }

/* ---------- Footer: Bereiche & Hinweis ---------- */
.footer-areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 30px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-area-title { display: block; font-weight: 800; color: var(--navy); text-decoration: none; margin-bottom: 8px; }
.footer-areas ul { list-style: none; margin: 0; padding: 0; }
.footer-areas li { padding: 3px 0; }
.footer-areas a { color: var(--muted); text-decoration: none; }
.footer-areas a:hover, .footer-area-title:hover { color: var(--green); }
.site-footer:has(.footer-areas) { padding-top: 50px; }
.copy-note { display: block; font-size: 12.5px; opacity: .85; }

@media (max-width: 1100px) {
  .child-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .personal-grid, .detail-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .detail-head { position: static; }
  .ic-xl { --s: 90px; margin: 0; order: -1; }
  .footer-areas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: 120px; }
  .checklist, .cardlist, .child-grid, .footer-areas { grid-template-columns: 1fr; }
  .page-intro-text { font-size: 17px; padding-left: 18px; }
}
.section-more { margin: 26px 0 0; }
.section-more.center { text-align: center; margin-top: 40px; }
[class*="acc-"] .contact .eyebrow { color: #fff; }
.personal-grid > *, .detail-grid > *, .child-grid > * { min-width: 0; }
.p-card h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 640px) {
  .p-card-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .p-card h3 { font-size: 21px; }
}
/* Aktiver Hauptmenüpunkt */
.nav a.is-active:not(.btn) { color: var(--green); }
.nav a.is-active:not(.btn)::after { right: 0; }
/* Kontaktformular */
.contact-form .hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.is-error { color: var(--red); }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }
