/* =================================================================
   Hildinger und Koch GmbH – Stylesheet
   Premium, warm, handwerklich. Mobile First.
   Lokale Schriften (DSGVO), keine externen CDNs.
   ================================================================= */

/* ---------- Schriften (lokal eingebunden) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

/* ---------- Design Tokens ---------- */
:root {
  /* Farbwelt: warmes Papier, Espresso, Eiche/Cognac-Akzent */
  --bg: #fbf8f4;
  --bg-alt: #f3ece2;
  --surface: #ffffff;
  --ink: #1c1813;
  --ink-soft: #4c453c;
  --muted: #6f655a;
  --line: #e8ded1;
  --line-strong: #d9cdbb;
  --espresso: #211d18;
  --espresso-soft: #2c2720;
  --accent: #a9712f;
  --accent-deep: #875a23;
  --accent-tint: rgba(169, 113, 47, 0.1);
  --on-dark: #f3ece2;
  --on-dark-soft: #c4b8a8;

  /* Typografie */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radien & Schatten */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(28, 24, 19, 0.04), 0 2px 8px rgba(28, 24, 19, 0.04);
  --shadow: 0 6px 24px rgba(28, 24, 19, 0.07), 0 2px 6px rgba(28, 24, 19, 0.05);
  --shadow-lg: 0 24px 60px rgba(28, 24, 19, 0.13), 0 8px 24px rgba(28, 24, 19, 0.08);

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  /* Bewegung */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 0 !important;
}

/* ---------- Hilfsklassen ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--espresso);
  color: var(--on-dark-soft);
}
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
}
.section--dark .eyebrow {
  color: #d6a368;
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow::before {
  display: none;
}

h2.section-title {
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3rem);
  margin-bottom: 0.6rem;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  text-align: center;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 8px 20px rgba(135, 90, 35, 0.3);
}
.btn--primary:hover {
  background: #6f4a1d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(135, 90, 35, 0.38);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn--light {
  background: #fff;
  color: var(--espresso);
}
.btn--light:hover {
  background: var(--bg-alt);
  color: var(--espresso);
  transform: translateY(-2px);
}
.btn--block {
  width: 100%;
}
.btn--lg {
  min-height: 58px;
  padding-inline: 2rem;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 248, 244, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 244, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(28, 24, 19, 0.05);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand:hover {
  color: var(--ink);
}
.brand .brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* Desktop-Navigation */
.nav {
  display: none;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-list a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
}
.nav-list a:hover {
  color: var(--ink);
  background: var(--accent-tint);
}
.header-cta {
  display: none;
}

/* Burger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  border-radius: 12px;
}
.nav-toggle:hover {
  background: var(--accent-tint);
}
.nav-toggle span {
  position: relative;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before {
  top: -7px;
}
.nav-toggle span::after {
  top: 7px;
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile-Menü-Panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  grid-template-rows: var(--header-h) 1fr;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0s linear 0.3s;
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-nav-inner {
  padding: 1rem var(--gutter) 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.m-link span {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.mobile-nav .btn {
  margin-top: 1.75rem;
}
.mobile-nav-foot {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.mobile-nav-foot a {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(169, 113, 47, 0.1), transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem 0.5rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.hero-badge b {
  color: var(--ink);
  font-weight: 600;
}
.hero-badge .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: inline-grid;
  place-items: center;
}
.hero-badge .dot svg {
  width: 16px;
  height: 16px;
}
.hero h1 {
  font-size: clamp(2.4rem, 1.1rem + 6vw, 4.4rem);
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-deep);
}
.hero-sub {
  font-size: clamp(1.08rem, 1rem + 0.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 5vw, 2.5rem);
}
.hero-stats .stat {
  min-width: 0;
}
.hero-stats .num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.hero-stats .lbl {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}

.hero-media {
  position: relative;
}
.hero-media .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-float {
  position: absolute;
  left: clamp(-0.5rem, -2vw, -1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  background: rgba(33, 29, 24, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 230px;
}
.hero-float .award-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-float .award-row svg {
  width: 30px;
  height: 30px;
  color: #d6a368;
  flex: none;
}
.hero-float strong {
  font-family: var(--font-display);
  font-size: 1rem;
  display: block;
  line-height: 1.2;
}
.hero-float small {
  font-size: 0.78rem;
  color: var(--on-dark-soft);
}

/* ---------- Trust / Logos-Strip ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: clamp(2rem, 4vw, 2.75rem);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
  align-items: start;
}
.trust-item {
  text-align: center;
}
.trust-item .t-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.trust-item .t-lbl {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

/* ---------- Karten-Grid (Leistungen) ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card .ic {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.card .ic svg {
  width: 26px;
  height: 26px;
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.card p {
  margin-bottom: 0;
  font-size: 0.99rem;
}

/* ---------- Split (Über uns) ---------- */
.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.split-media {
  position: relative;
}
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.split-media .badge-soft {
  position: absolute;
  right: -0.75rem;
  bottom: -0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  max-width: 200px;
}
.split-media .badge-soft b {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.05rem;
}

.team-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
.team-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.team-card .avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--espresso);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.team-card h4 {
  margin: 0;
  font-size: 1.08rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
}
.team-card p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Pain / Problem ---------- */
.problem-split {
  align-items: center;
}
.pain-list {
  display: grid;
  gap: 1rem;
}
.pain-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pain-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.pain-ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.pain-ic svg {
  width: 24px;
  height: 24px;
}
.pain-item b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.pain-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Vorteile ---------- */
.benefits {
  display: grid;
  gap: 1rem;
}
.benefit {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}
.benefit .check {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(214, 163, 104, 0.16);
  color: #d6a368;
  display: grid;
  place-items: center;
}
.benefit .check svg {
  width: 20px;
  height: 20px;
}
.benefit h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
}
.benefit p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--on-dark-soft);
}

/* ---------- Ablauf (Stepper / Accordion) ---------- */
.steps {
  display: grid;
  gap: 1rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.step-head h3 {
  margin: 0;
  font-size: 1.18rem;
  flex: 1;
}
.step-head .chev {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.step.is-open .step-head .chev {
  transform: rotate(180deg);
}
.step-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.step-body-inner {
  padding: 0 1.4rem 1.4rem 5rem;
  color: var(--ink-soft);
}
.step-body-inner p {
  margin: 0;
}

/* ---------- Referenzen-Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tile:hover img {
  transform: scale(1.05);
}
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(20, 17, 13, 0.82), transparent);
  color: #fff;
}
.tile figcaption .cat {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e0b783;
  font-weight: 600;
}
.tile figcaption .ttl {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}
.gallery .tile.is-hidden {
  display: none;
}
.gallery-more {
  text-align: center;
  margin-top: 2rem;
}

/* ---------- cibusX Produkt-Feature ---------- */
.product {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.product-media img {
  border-radius: var(--radius);
  width: 100%;
  background: var(--bg-alt);
}
.product .awards-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
}
.pill svg {
  width: 15px;
  height: 15px;
}
.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
}
.spec-list li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.spec-list li b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Standort ---------- */
.location {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: stretch;
}
.map-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 320px;
  background: #eae2d6;
}
.map-card svg.map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  text-align: center;
  z-index: 2;
}
.map-pin .pin-ic {
  width: 52px;
  height: 52px;
  color: var(--accent);
  filter: drop-shadow(0 6px 10px rgba(28, 24, 19, 0.25));
  margin-inline: auto;
}
.map-pin .pin-lbl {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--espresso);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.map-card .map-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
}
.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-rows {
  display: grid;
  gap: 0.35rem;
  margin: 1.5rem 0;
}
.contact-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row svg {
  width: 22px;
  height: 22px;
  color: var(--accent-deep);
  flex: none;
  margin-top: 2px;
}
.contact-row .cr-k {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.contact-row .cr-v {
  color: var(--ink);
  font-weight: 500;
}
.contact-row a.cr-v:hover {
  color: var(--accent-deep);
}

/* ---------- Kontaktformular ---------- */
.contact-wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.field label .req {
  color: var(--accent-deep);
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  min-height: 52px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.field-row {
  display: grid;
  gap: 1.1rem;
}
.field .error-msg {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #b4341f;
}
.field.has-error input,
.field.has-error textarea {
  border-color: #c4452c;
}
.field.has-error .error-msg {
  display: block;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.consent input[type="checkbox"] {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.consent.has-error label {
  color: #b4341f;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  background: #eef5ec;
  border: 1px solid #c9e0c2;
  border-radius: var(--radius);
  color: #2f6b32;
  font-weight: 500;
}
.form-success.is-visible {
  display: flex;
}
.form-success svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.form-aside h3 {
  font-size: 1.5rem;
}
.aside-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.aside-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.aside-list svg {
  width: 22px;
  height: 22px;
  color: var(--accent-deep);
  flex: none;
  margin-top: 3px;
}
.aside-list b {
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.faq-q .chev {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent-deep);
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-q .chev {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner {
  padding: 0 0.25rem 1.3rem;
}
.faq-a-inner p {
  margin: 0;
}

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  color: var(--on-dark-soft);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(169, 113, 47, 0.25), transparent 55%);
}
.cta-band > * {
  position: relative;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.7rem);
  margin-bottom: 0.6rem;
}
.cta-band p {
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #18140f;
  color: var(--on-dark-soft);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand .brand small {
  color: var(--on-dark-soft);
}
.footer-brand p {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  max-width: 34ch;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  display: grid;
  gap: 0.6rem;
}
.footer-col a,
.footer-col span {
  color: var(--on-dark-soft);
  font-size: 0.96rem;
}
.footer-col a:hover {
  color: #fff;
}
.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: var(--on-dark-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.socials a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.socials svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  font-size: 0.88rem;
}
.footer-bottom .legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.1rem;
}
.powered {
  color: var(--on-dark-soft);
}
.powered a {
  color: #22b8e0;
  font-weight: 600;
}
.powered a:hover {
  color: #22b8e0;
  text-decoration: underline;
}

/* ---------- Reveal-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ===========================================================
   Breakpoints
   =========================================================== */

@media (min-width: 560px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero-media .frame {
    aspect-ratio: 3 / 4;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split-media {
    order: 2;
  }
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery .tile.tile--wide {
    grid-column: span 2;
  }
  .product {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .product--text-first .product-media {
    order: 2;
  }
  .location {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr 0.8fr;
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1000px) {
  :root {
    --header-h: 84px;
  }
  .nav {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Auf großen Screens Ablauf-Schritte dauerhaft offen anzeigen */
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps .step-body {
    max-height: none;
  }
  .steps .step-head {
    cursor: default;
  }
  .steps .step-head .chev {
    display: none;
  }
}

/* ===========================================================
   Reduced Motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .tile:hover img {
    transform: none;
  }
}
