/* ================================
   Hüttiwood – style.css
   Warmes Cream & Waldgrün
================================= */

/* ================================
   Design Tokens – Warm & Soft
================================= */
:root{
      --cream:      #fff7ee;  /* warmes Cream (Hauptfläche) */
      --surface:    #ffffff;  /* Karten/Container */
      --surface-2:  #faf1e6;  /* zarte Flächen */
      --text:       #0e3a2e;  /* Haupttext dunkel */
      --muted:      #6a6e65;  /* Sekundärtext */

      --forest:     #0e3a2e;  /* dunkles Waldgrün (Primary) */
      --forest-2:   #0a2e24;  /* dunklerer Ton (Hover) */
      --sage:       #85b79a;  /* sanfter Salbei (Akzent/Hover-Licht) */
  /* ...deine Variablen... */
  --hero-grad:
    radial-gradient(85% 60% at 50% 80%, rgba(14,58,47,0) 0, rgba(14,58,47,.55) 70%),
    linear-gradient(180deg, rgba(255,247,238,.55), rgba(14,58,47,.38));

      /* Layout & Effekte */
      --radius:     18px;
      --radius-sm:  12px;
      --shadow:     0 14px 36px rgba(16, 32, 27, .10);
      --ring:       0 0 0 3px rgba(133,183,154,.28);
      --max:        1200px;
      --space:      clamp(20px, 3.2vw, 36px);
        --header-h: 96px; /* Sticky-Header Höhe (Desktop) */
        --logo-bridge-w: clamp(96px, 12vw, 168px); /* Breite vom Logo auf der Header/Hero-Kante */

}

/* ================================
   Base
================================= */
/* ✅ Kein horizontales Scrollen auf Mobile */
html, body{
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-top: var(--header-h);
}

/* Optional noch härter (moderne Browser): */
@supports (overflow: clip){
  html, body{ overflow-x: clip; }
}

/* Sicherheit: Medien dürfen nie breiter als der Container werden */
img, video, iframe{
  max-width: 100%;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--cream);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img, video{ max-width:100%; height:auto; display:block; }
.container{ width:min(100% - 2*var(--space), var(--max)); margin-inline:auto; }
.section{ padding: calc(var(--space) * 2) 0; }
.section-alt{ background: linear-gradient(180deg, #fff, var(--surface-2)); }
.section-title{
  margin:0 0 14px;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing:.2px;
  text-align:center;
}
.section-lead{
  text-align:center;
  color:var(--muted);
  max-width:72ch;
  margin:0 auto var(--space);
}

/* ================================
   Loader Overlay – Kamera
================================= */
#page-loader{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  background:var(--cream);
  transition:opacity .4s ease, visibility .4s ease;
}
#page-loader.hidden{ opacity:0; visibility:hidden; }

/* Kamera Body */
.camera-loader{
  width:116px;
  height:86px;
  border-radius:18px;
  background:var(--surface);
  border:1px solid #efe5d7;
  box-shadow:var(--shadow);
  position:relative;
  display:grid;
  place-items:center;
}
.camera-loader::before{
  content:"";
  position:absolute;
  left:16px;
  top:-10px;
  width:54px;
  height:22px;
  border-radius:12px;
  background:var(--surface);
  border:1px solid #efe5d7;
  box-shadow:0 10px 24px rgba(16, 32, 27, .08);
}
.camera-loader::after{
  content:"";
  position:absolute;
  right:16px;
  top:14px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:rgba(14,58,47,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.camera-loader .lens{
  width:44px;
  height:44px;
  border-radius:50%;
  border:4px solid rgba(14,58,47,.18);
  position:relative;
  display:grid;
  place-items:center;
  background:radial-gradient(circle at 30% 30%, rgba(133,183,154,.35), rgba(14,58,47,.06) 55%, rgba(14,58,47,.02) 100%);
}
.camera-loader .lens::before{
  content:"";
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--forest);
  opacity:.16;
  box-shadow:0 0 0 6px rgba(14,58,47,.08);
  animation:lens-pulse 1.05s ease-in-out infinite;
}
.camera-loader .flash{
  position:absolute;
  left:18px;
  top:18px;
  width:14px;
  height:10px;
  border-radius:4px;
  background:rgba(14,58,47,.14);
  overflow:hidden;
}
.camera-loader .flash::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(133,183,154,.65);
  transform:translateX(-120%);
  animation:flash-sweep 1.35s ease-in-out infinite;
}
@keyframes lens-pulse{
  0%,100%{ transform:scale(.86); opacity:.18; }
  50%{ transform:scale(1.12); opacity:.28; }
}
@keyframes flash-sweep{
  0%{ transform:translateX(-120%); opacity:0; }
  18%{ opacity:0; }
  28%{ transform:translateX(0%); opacity:1; }
  45%{ opacity:0; }
  100%{ transform:translateX(120%); opacity:0; }
}

/* ================================
   Header / Nav
================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:linear-gradient(180deg, var(--forest), #103f33);
  color:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.07);
  transition:transform .25s ease;
  will-change:transform;
  overflow: visible;
position: sticky;
}
.site-header.is-hidden{ transform:translateY(-110%); }

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
  min-width: 180px;
}
/* ✅ Logo: freigestellt (kein Kasten), deutlich größer */
.brand .logo{
  width: 72px;
  height: 72px;
  background: transparent;     /* kein weißer Hintergrund */
  border: 0;                   /* keine Umrandung */
  border-radius: 0;            /* kein Kasten-Look */
  display: grid;
  place-items: center;
  overflow: visible;           /* wichtig: nix abschneiden */
}

/* SVG/IMG füllt den Platz sauber */
.brand .logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  /* ✅ größer sichtbar, ohne Header/Layout zu verändern */
  transform: scale(1.22);
  transform-origin: center;

  filter: drop-shadow(0 8px 16px rgba(0,0,0,.28));
}
/* Desktop: noch größer */
@media (min-width: 901px){
  .brand .logo{ width: 92px; height: 92px; }
}

@media (max-width: 900px){
  :root{ --header-h: 78px; } /* Sticky-Header Höhe (Mobile/Tablet) */
}

.main-nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.main-nav a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  padding:8px 10px;
  border-radius:10px;
}
.main-nav a:hover{ background:rgba(255,255,255,.10); }

.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:none;
  background:#12382e;
  color:#fff;
}
.burger span{ display:block; height:2px; background:#fff; margin:8px 10px; }

/* Mobile Nav */
@media (max-width: 900px){
  .brand{ min-width:auto; }
  .main-nav{
    position:absolute;
    right: var(--space);
    top: 74px;
    background:#10372d;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    padding:10px;
    box-shadow:0 14px 34px rgba(0,0,0,.22);
    display:none;
    flex-direction:column;
    gap:8px;
    min-width: 220px;
  }
  .main-nav.open{ display:flex; }
  .burger{ display:inline-block; }
}

/* ================================
   Buttons – Premium Look
================================= */
  .btn{
    --g1: var(--forest);
    --g2: var(--forest-2);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    /* ✅ konsistente Größe (Desktop/Tablet/Mobile) */
    padding: clamp(12px, 1.35vw, 16px) clamp(18px, 2.1vw, 26px);
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1;

    border-radius: 999px;
    font-weight: 850;
    letter-spacing: .2px;
    text-decoration:none;
    cursor:pointer;

    background: linear-gradient(135deg, var(--g1), var(--g2));
    color:#fff;
    border: 1px solid rgba(255,255,255,.14);

    box-shadow:
      0 10px 26px rgba(14,58,47,.34),
      inset 0 1px 0 rgba(255,255,255,.22);

    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .btn:hover{
    transform: translateY(-2px);
    box-shadow:
      0 16px 34px rgba(14,58,47,.42),
      inset 0 1px 0 rgba(255,255,255,.26);
    filter: brightness(1.05);
  }

  .btn:active{
    transform: translateY(0);
    box-shadow:
      0 10px 26px rgba(14,58,47,.34),
      inset 0 1px 0 rgba(255,255,255,.22);
  }

  .btn:focus-visible{
    outline: none;
    box-shadow:
      0 0 0 3px rgba(255,255,255,.35),
      var(--ring),
      0 12px 30px rgba(14,58,47,.38);
  }

  /* Outline: Standard (außerhalb Hero) */
  .btn-outline{
    background: #fff;
    color: var(--forest);
    border: 2px solid var(--forest);
    box-shadow: 0 10px 22px rgba(16,32,27,.08);
  }

  .btn-outline:hover{
    background: var(--forest);
    color: #fff;
    filter: none;
  }

  /* ✅ Hero-Outline: transparenter Look (passt besser auf Grün) */
  .hero .btn-outline{
    background: rgba(255,255,255,.06);
    color:#fff;
    border-color: rgba(255,255,255,.75);
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
  }

  .hero .btn-outline:hover{
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.9);
  }

/* ================================
   HERO – Layout (Bild + Rechteck + Text) – responsive
   Ziel:
   - Desktop: Bild groß wie Referenz, ohne Kopf/Zopf abzuschneiden
   - Rechteck bleibt hinter der Person, unten gerade
   - Tablet/Fullscreen: kein Abschneiden
   - Mobile: Bild nicht kleiner als Rechteck, keine grünen Artefakte
================================= *//* ================================
   HERO – clean + stabil (Desktop/Tablet/Mobile)
================================= */


.hero{
  position:relative;
  isolation:isolate;
  background:
    linear-gradient(180deg, #a1b4a8 0%, #93a99c 52%, #839a8f 100%);
  color:#fff;
  overflow:visible;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(72% 48% at 50% 56%, rgba(250,255,250,.62) 0%, rgba(240,248,241,.3) 40%, rgba(240,248,241,0) 72%),
    radial-gradient(86% 62% at 50% 92%, rgba(14,58,47,0) 0%, rgba(14,58,47,.33) 74%),
    linear-gradient(180deg, rgba(255,247,238,.34), rgba(14,58,47,.2));
  mix-blend-mode:multiply;
}

.hero__inner{
  position:relative;
  z-index:1;
  width:min(1280px, 96vw);
  margin:0 auto;
  min-height:74vh;
  padding:18px clamp(14px, 2vw, 24px) 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.hero__top{
  position:relative;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.hero__brand{
  display:inline-flex;
  align-items:center;
  line-height:1;
}

.hero__brand img{
  width:clamp(112px, 13.5vw, 180px);
  height:auto;
  display:block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.2));
}

.hero__nav{
  display:flex;
  align-items:center;
  gap:clamp(14px, 2.2vw, 40px);
}

.hero__nav a{
  color:rgba(255,255,255,.9);
  text-decoration:none;
  font-weight:600;
  font-size:clamp(14px, 1.2vw, 32px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hero__nav a:hover{
  color:#fff;
}

.hero__grid{
  flex:1;
  display:grid;
  grid-template-columns:minmax(300px, .95fr) minmax(460px, 1.05fr);
  align-items:end;
  gap:14px;
}

.hero__copy{
  align-self:start;
  padding-top:clamp(22px, 5vh, 64px);
  z-index:3;
}

.hero__copy h1{
  margin:0 0 28px;
  max-width:24ch;
  display:grid;
  gap:.34em;
  line-height:1.22;
  font-weight:560;
  letter-spacing:.005em;
  font-size:clamp(19px, 1.95vw, 30px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-transform:none;
  text-wrap:balance;
  text-shadow:0 4px 12px rgba(0,0,0,.12);
}

.hero__copy h1 .hero-eyebrow{
  font-size:.44em;
  font-weight:650;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.84);
}

.hero__copy h1 .hero-main{
  font-weight:620;
  color:#fff;
}

.hero__copy h1 .hero-sub{
  font-weight:520;
  color:rgba(255,255,255,.95);
  position:relative;
  display:inline-block;
  width:fit-content;
  padding-bottom:.28em;
}

.hero__copy h1 .hero-sub::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:.16em;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(255,255,255,.46), rgba(133,183,154,.7));
}

.hero__actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
  margin-top:18px;
}

.hero .hero-btn{
  min-height:50px;
  padding:0 22px;
  border-radius:999px;
  font-size:clamp(14px, 1.25vw, 20px);
  font-weight:700;
  letter-spacing:0;
  text-transform:none;
  line-height:1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hero .hero-btn--primary{
  background:#063c2e;
  border:2px solid #063c2e;
  color:#fff;
  box-shadow:
    0 10px 24px rgba(6,60,46,.3),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.hero .hero-btn--primary:hover{
  background:#074334;
  border-color:#074334;
}

.hero .hero-btn--secondary{
  background:#fff;
  border:2px solid #1b2e29;
  color:#1b2e29;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.hero .hero-btn--secondary:hover{
  background:#f7f7f7;
  border-color:#142420;
  color:#142420;
}

.hero-social{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:10px;
}

.hero-social__link{
  width:44px;
  height:44px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid rgba(14,58,47,.14);
  box-shadow:0 8px 18px rgba(14,58,47,.18);
  text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease;
}

.hero-social__link:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 22px rgba(14,58,47,.24);
}

.hero-social__link svg{
  width:24px;
  height:24px;
  display:block;
}

.hero__visual{
  position:relative;
  min-height:clamp(430px, 68vh, 740px);
  align-self:stretch;
  overflow:visible;
  pointer-events:none;
}


.hero__backdrop{
  position:absolute;
  inset:auto 0 0 auto;
  width:88%;
  height:62%;
  border-radius:30px 30px 0 0;
  background:rgba(245, 241, 228, .98);
  border:2px solid rgba(255,255,255,.42);
  border-bottom:0;
}


.hero__img{
  position:absolute;
  right:0;
  bottom:-16%;
  width:min(1220px, 160%);
  max-height:none;
  height:140%;
  object-fit:contain;
  object-position:bottom right;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.22));
}

@media (max-width: 1150px){
  .hero__inner{
    min-height:68vh;
  }

  .hero__grid{
    grid-template-columns:minmax(260px, .9fr) minmax(430px, 1.1fr);
  }

  .hero__copy h1{
    font-size:clamp(18px, 2.2vw, 28px);
    max-width:26ch;
    margin-bottom:22px;
  }

  .hero__img{
    right:0;
    width:min(1080px, 152%);
    height:134%;
    bottom:-15%;
  }
}

@media (max-width: 980px){
  .hero__inner{
    min-height:auto;
  }

  .hero__grid{
    grid-template-columns:1fr;
    align-items:start;
    gap:10px;
  }

  .hero__copy{
    order:1;
    padding-top:0;
  }

  .hero__copy h1{
    max-width:28ch;
    margin-bottom:20px;
    font-size:clamp(17px, 2.9vw, 24px);
  }

  .hero__visual{
    order:2;
    min-height:500px;
    aspect-ratio: 4 / 3.25;
  }

  .hero__img{
    right:0;
    transform:none;
    width:min(980px, 154%);
    height:136%;
    bottom:-15%;
  }

  .hero__backdrop{
    left:auto;
    right:0;
    transform:none;
    width:min(660px, 90%);
    height:62%;
  }
}

@media (max-width: 760px){
  .hero__inner{
    min-height:auto;
    padding:10px 10px 12px;
  }

  .hero__nav{
    display:none;
  }

  .hero__brand img{
    width:clamp(108px, 32vw, 152px);
  }

  .hero__grid{
    gap:8px;
  }

  .hero__copy{
    order:1;
    padding-top:2px;
  }

  .hero__visual{
    order:2;
    min-height:380px;
    aspect-ratio: 4 / 3.25;
  }

  .hero__copy h1{
    font-size:clamp(17px, 4.3vw, 22px);
    line-height:1.25;
    margin-bottom:16px;
    font-weight:550;
    max-width:30ch;
    text-wrap:pretty;
    gap:.3em;
  }

  .hero .btn--ghost{
    min-height:40px;
    width:auto;
    justify-content:center;
    font-size:12px;
    padding:0 14px;
  }

  .hero__img{
    width:min(860px, 154%);
    height:132%;
    bottom:-14%;
    right:-1%;
    object-position:bottom right;
  }

  .hero__backdrop{
    width:min(520px, 88%);
    height:61%;
    right:0;
    border-radius:20px 20px 0 0;
  }
}

@media (max-width: 480px){
  .hero__inner{
    padding:8px 8px 10px;
  }

  .hero__visual{
    min-height:300px;
    aspect-ratio: 4 / 3.25;
  }

  .hero__copy h1{
    font-size:clamp(15px, 4.5vw, 18px);
    max-width:32ch;
    margin-bottom:7px;
  }

  .hero__img{
    width:min(700px, 156%);
    height:132%;
    bottom:-14%;
    right:-2%;
    transform:none;
  }

  .hero__backdrop{
    width:88%;
    height:60%;
    right:0;
  }

  .hero .btn--ghost{
    min-height:38px;
    font-size:11px;
    padding:0 12px;
  }
}

#leistungen{
  --hero-overlap: 52px;
  position:relative;
  z-index:6;
  background:var(--cream);
  margin-top: calc(var(--hero-overlap) * -1);
  padding-top: calc(var(--space) * 2 + var(--hero-overlap));
}

@media (max-width: 980px){
  #leistungen{
    --hero-overlap: 26px;
  }
}
/* ================================
   Grids / Cards
================================= */
.grid{ display:grid; gap: var(--space); }

.cards{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px){ .cards{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px){  .cards{ grid-template-columns: 1fr; } }

.card{
  background:var(--surface);
  border-radius:var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow:var(--shadow);
  border:1px solid #efe5d7;
  transition:transform .22s ease, box-shadow .22s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:0 20px 44px rgba(0,0,0,.12); }
.card h3{ margin:6px 0 10px; color:var(--forest); font-size:22px; }
.card p{ color:var(--muted); margin:0 0 10px; }
.list{ padding-left:18px; margin:8px 0 0; color:var(--muted); }
.card-logo{
  width:clamp(78px, 9.5vw, 132px);
  margin:4px 0 12px;
  display:block;
  filter: drop-shadow(0 5px 10px rgba(14,58,47,.18));
}
.card--social{
  display:grid;
  place-items:center;
  min-height:220px;
}
.card--social .card-logo--full{
  width:min(100%, 320px);
  margin:0 auto;
}

/* ================================
   Videos – 3x2, responsive
================================= */
.grid.videos{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}
@media (max-width: 900px){
  .grid.videos{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid.videos{ grid-template-columns: 1fr; }
}

.video-card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:#5f917f;
  border:1px solid rgba(255,255,255,.2);
  box-shadow:
    0 12px 26px rgba(14,58,47,.26),
    0 0 0 1px rgba(133,183,154,.22),
    0 0 24px rgba(133,183,154,.28);
  transition:transform .25s ease, box-shadow .25s ease;
}
.video-card .media{
  position:relative;
  aspect-ratio: 9 / 16;
  width:100%;
  background:#000;
  z-index:1;
}
.video-card iframe,
.video-card video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
  object-fit:cover;
  z-index:2;
}
.video-card figcaption{
  padding:12px 14px;
  color:rgba(255,255,255,.96);
  font-weight:600;
  position:relative;
  z-index:3;
  background:linear-gradient(180deg, rgba(95,145,127,.9), rgba(74,128,112,.96));
}
.video-card.glow::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 42%, rgba(133,183,154,.34) 0%, rgba(133,183,154,0) 68%),
    radial-gradient(circle at 50% 85%, rgba(14,58,47,.34) 0%, rgba(14,58,47,0) 72%);
  filter: blur(7px);
  opacity:.72;
  animation: glow-breathe 4s ease-in-out infinite;
  z-index:0;
}
.video-card.glow:hover{
  transform:translateY(-4px);
  box-shadow:
    0 18px 38px rgba(14,58,47,.34),
    0 0 0 1px rgba(133,183,154,.28),
    0 0 36px rgba(133,183,154,.4);
}
.video-card.glow:hover::after{ opacity:.8; animation-duration:3s; }
@keyframes glow-breathe{
  0%{ opacity:.5; }
  50%{ opacity:.8; }
  100%{ opacity:.5; }
}

/* ================================
   Über mich – Mobile Fix (kein Verziehen)
   Problem: Inline-Grid im HTML + Video-Card ohne .media Wrapper
================================= */
#ueber .grid{
  /* Desktop/Tablet: 2 Spalten wie bisher */
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
}

/* Standard-Figure-Margins entfernen, damit Video oben exakt bündig zum Text sitzt */
#ueber figure.video-card{
  margin: 0;
  align-self: start;
}

/* Wenn die Video-Card im Über-mich-Bereich KEIN .media hat, darf sie nicht wie ein Reel (9:16) behandelt werden */
#ueber .video-card{
  overflow: hidden;
}
#ueber .video-card > video{
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Mobile: sauber untereinander stapeln */
@media (max-width: 900px){
  #ueber .grid{
    grid-template-columns: 1fr !important; /* überschreibt inline style im HTML */
    gap: 16px;
  }
  #ueber .card{ order: 2; }
  #ueber figure.video-card{ order: 1; }

  /* Video nicht verziehen, sinnvolles Seitenverhältnis */
  #ueber .video-card{
    border-radius: 16px;
  }
  #ueber .video-card > video{
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 420px){
  #ueber .video-card > video{
    aspect-ratio: 4 / 3; /* etwas höher auf sehr kleinen Phones */
  }
}

/* ================================
   Prozess
================================= */
.process{ grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 1024px){ .process{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px){ .process{ grid-template-columns: 1fr; } }

.step{
  background:var(--surface);
  border:1px solid #efe5d7;
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
  position:relative;
}
.step::before{
  counter-increment:step;
  content: counter(step);
  position:absolute;
  top:14px;
  right:16px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--forest);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  box-shadow:0 8px 18px rgba(14,58,47,.3);
}

/* ================================
   CTA
================================= */
.cta{
  margin-top: var(--space);
  background:linear-gradient(180deg, var(--surface), #fff);
  border:1px solid #efe5d7;
  border-radius:var(--radius);
  padding: clamp(18px,2.4vw,28px);
  box-shadow:var(--shadow);
  text-align:center;
}

/* ================================
   Kontakt (ausgelagert, vormals inline)
================================= */
#kontakt{ position:relative; isolation:isolate; }
#kontakt .contact-shell{
  background:
    radial-gradient(72% 48% at 50% 56%, rgba(250,255,250,.42) 0%, rgba(240,248,241,.18) 40%, rgba(240,248,241,0) 72%),
    radial-gradient(86% 62% at 50% 92%, rgba(14,58,47,0) 0%, rgba(14,58,47,.33) 74%),
    linear-gradient(180deg, #a1b4a8 0%, #93a99c 52%, #839a8f 100%);
  border-radius:26px;
  padding: clamp(18px, 2.4vw, 28px);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 18px 44px rgba(16,32,27,.22);
}
#kontakt .contact-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin: 4px 0 14px;
}
#kontakt .contact-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, #0f3a2f, #0a2f25);
  color:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}
#kontakt .contact-title{
  margin:0;
  font-size: clamp(20px, 3vw, 30px);
  color:#f6fbf7;
}
#kontakt .contact-sub{ margin:0 0 16px; color:rgba(243,250,245,.9); }

#kontakt .contact-grid{
  display:grid;
  gap:18px;
  grid-template-columns: 1.05fr .95fr;
}
@media (max-width: 900px){
  #kontakt .contact-grid{ grid-template-columns: 1fr; }
}

#kontakt .contact-info,
#kontakt .contact-card{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.46);
  border-radius:18px;
  padding:16px;
  box-shadow:0 12px 28px rgba(0,0,0,.1);
  backdrop-filter: blur(3px);
}

#kontakt .contact-info h4{ margin:6px 0 8px; color:#0e3a2e; }
#kontakt .contact-info ul{ margin:0; padding-left:18px; color:#6b7068; }
#kontakt .hint{ color:#6b7068; }

#kontakt .form-grid{
  display:grid;
  gap:14px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px){
  #kontakt .form-grid{ grid-template-columns: 1fr; }
}
#kontakt .field{ position:relative; }
#kontakt .field-full{ grid-column: 1 / -1; }

#kontakt .field input,
#kontakt .field textarea{
  width:100%;
  padding:18px 16px 12px;
  border-radius:14px;
  border:1px solid #e6ddcf;
  background:#fff;
  color:#0e3a2e;
  transition: border .15s ease, box-shadow .15s ease;
}
#kontakt .field textarea{ min-height:120px; resize:vertical; }

#kontakt .field label{
  position:absolute;
  left:14px;
  top:12px;
  font-size:14px;
  color:#6b7068;
  pointer-events:none;
  transition: all .15s ease;
  background:#fff;
  padding:0 6px;
  transform-origin:left top;
}

#kontakt .field input:focus,
#kontakt .field textarea:focus{
  border-color:#88c0a5;
  box-shadow: 0 0 0 3px rgba(136,192,165,.28);
  outline:none;
}
#kontakt .field input:focus + label,
#kontakt .field input:not(:placeholder-shown) + label,
#kontakt .field textarea:focus + label,
#kontakt .field textarea:not(:placeholder-shown) + label{
  top:-8px;
  font-size:12px;
  color:#0f3a2f;
}

#kontakt .form-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:6px;
}
/* ✅ DSGVO Row: keine Floating Labels, immer im Grid */
#kontakt .consent-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

#kontakt .consent-row input[type="checkbox"]{
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

#kontakt .consent-row label{
  position: static;        /* wichtig: nicht absolut */
  background: none;
  padding: 0;
  font-size: 14px;
  color: var(--text);
  pointer-events: auto;
}
#kontakt .consent-row a{ color: var(--forest); }

/* ================================
   Footer
================================= */
.site-footer{
  background:linear-gradient(180deg, var(--forest), #0c3026);
  color:#fff;
  padding:24px 0;
  margin-top: calc(var(--space) * 2);
}
.footer-grid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer-nav a{
  color:#fff;
  text-decoration:none;
  opacity:.92;
  margin-left:12px;
}

.footer-nav a:hover{ opacity:1; text-decoration:underline; }

/* Footer Social Icons */
.footer-social{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-social a{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:#fff;
  -webkit-tap-highlight-color: transparent;
  text-decoration:none;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.footer-social a:visited{
  color:#fff;
}
.footer-social a:hover{
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
}
.footer-social svg{
  width:18px;
  height:18px;
  display:block;
  color: inherit; /* sorgt dafür, dass currentColor wirklich weiß ist */
}

/* sorgt dafür, dass Icons NICHT blau/standardfarben werden */
.footer-social svg path,
.footer-social svg circle,
.footer-social svg rect,
.footer-social svg line,
.footer-social svg polyline,
.footer-social svg polygon{
  stroke: currentColor;
}

/* einzelne Icons, die per fill arbeiten (z.B. YouTube/Facebook) */
.footer-social svg [fill]:not([fill="none"]){
  fill: currentColor;
}

/* Mobile: Footer sauber stapeln */
@media (max-width: 640px){
  .footer-grid{
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav a{ margin-left:0; margin-right:12px; }
}

/* ================================
   Sticky Call Button
================================= */
.call-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(14,58,47,.35), inset 0 1px 0 rgba(255,255,255,.20);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.call-fab:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14,58,47,.45); }
.call-fab:active{ transform: translateY(0); }
.call-fab .icon{
  width: 18px;
  height: 18px;
  display: inline-block;
}
.call-fab.hide{
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* Mobile: kompakter */
@media (max-width: 640px){
  .call-fab{
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }
  .call-fab .label{ display:none; }
}

/* ================================
   Mobile Polish (Final)
================================= */
@media (max-width: 900px){
  :root{ --space: clamp(14px, 4.2vw, 22px); }

  .section{
    padding: clamp(28px, 7.5vw, 44px) 0;
  }

  .section-title{
    font-size: clamp(24px, 6.8vw, 34px);
    margin-bottom: 10px;
  }

  .section-lead{
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.55;
  }

  .hero__inner{
    min-height: auto;
    padding: 12px 12px 0;
    gap: 10px;
  }

  .hero__top{
    gap: 12px;
  }

  .hero__brand img{
    width: clamp(96px, 28vw, 140px);
  }

  .hero__grid{
    gap: 12px;
  }

  .hero__copy{
    padding-top: 12px;
    max-width: 34rem;
  }

  .hero__copy h1{
    font-size: clamp(18px, 4.9vw, 27px);
    line-height: 1.24;
    font-weight: 580;
    letter-spacing: .002em;
    margin-bottom: 16px;
    gap:.3em;
  }

  .hero .btn--ghost{
    min-height: 42px;
    font-size: 12px;
    padding: 0 14px;
  }
  .hero__actions{
    flex-wrap:nowrap;
    gap:10px;
  }
  .hero .hero-btn{
    min-height:44px;
    font-size:14px;
    padding:0 14px;
  }

  .hero-social{
    margin-top:12px;
  }

  .hero-social__link{
    width:40px;
    height:40px;
    border-radius:11px;
  }

  .hero-social__link svg{
    width:22px;
    height:22px;
  }

  .hero__visual{
    min-height: 360px;
    aspect-ratio: 4 / 3.2;
  }

  .hero__backdrop{
    width: 88%;
    height: 60%;
    right: 0;
  }

  .hero__img{
    right: -2%;
    bottom: -14%;
    width: min(860px, 150%);
    height: 132%;
  }

  #leistungen{
    margin-top: -48px;
    padding-top: calc(var(--space) * 2 + 48px);
  }

  .card{
    padding: clamp(16px, 4.2vw, 22px);
  }

  .card h3{
    font-size: clamp(20px, 5.3vw, 24px);
  }

  .card--social{
    min-height: 180px;
  }

  .card--social .card-logo--full{
    width: min(100%, 260px);
  }

  .grid.videos{
    gap: 14px;
  }
}

@media (max-width: 640px){
  .hero__inner{
    padding: 10px 10px 0;
  }

  .hero__copy h1{
    font-size: clamp(16px, 5.1vw, 22px);
    line-height: 1.26;
    max-width: 32ch;
    gap:.28em;
    margin-bottom:14px;
  }
  .hero .hero-btn{
    min-height:40px;
    font-size:12px;
    padding:0 12px;
  }

  .hero-social{
    margin-top:10px;
    gap:8px;
  }

  .hero-social__link{
    width:36px;
    height:36px;
    border-radius:10px;
  }

  .hero-social__link svg{
    width:20px;
    height:20px;
  }

  .hero__visual{
    min-height: 330px;
    aspect-ratio: 4 / 3.15;
  }

  .hero__img{
    width: min(760px, 156%);
    height: 134%;
    right: -3%;
    bottom: -15%;
  }

  .hero__backdrop{
    width: 90%;
    height: 61%;
  }

  #leistungen{
    margin-top: -42px;
    padding-top: calc(var(--space) * 2 + 42px);
  }

  .grid.videos{
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 420px){
  .hero__top{
    align-items: flex-start;
  }

  .hero__copy h1{
    font-size: clamp(15px, 4.9vw, 19px);
    line-height: 1.28;
    gap:.24em;
    margin-bottom:12px;
  }
  .hero__actions{
    gap:8px;
  }
  .hero .hero-btn{
    min-height:36px;
    font-size:11px;
    padding:0 10px;
  }

  .hero-social{
    margin-top:9px;
    gap:7px;
  }

  .hero-social__link{
    width:34px;
    height:34px;
    border-radius:9px;
  }

  .hero-social__link svg{
    width:18px;
    height:18px;
  }

  .hero__visual{
    min-height: 300px;
  }

  .hero__img{
    width: min(700px, 160%);
    height: 136%;
    right: -4%;
    bottom: -16%;
  }

  .hero__backdrop{
    width: 92%;
    height: 62%;
  }
}

/* ================================
   Critical Mobile Hero Fix
================================= */
@media (max-width: 760px){
  .hero__grid{
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .hero__copy{
    order: 1;
    position: relative;
    z-index: 8;
    padding-top: 14px;
  }

  .hero__actions{
    margin-top: 12px;
    position: relative;
    z-index: 9;
  }

  .hero__visual{
    order: 2;
    margin-top: 18px;
    min-height: 430px;
  }

  #leistungen{
    --hero-overlap: 14px;
    margin-top: calc(var(--hero-overlap) * -1);
    padding-top: calc(var(--space) * 2 + var(--hero-overlap));
  }
}

@media (max-width: 640px){
  .hero__actions{
    margin-top: 10px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  * { transition:none !important; animation:none !important; }
}
