/* ==========================================================================
   Leitgeb Bilanzbuchhaltung – leitgeb-bilanzbuchhaltung.at
   Statischer Relaunch | DERKAUFMANN IT-Service
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #2a4638;
  --green-deep: #21382d;
  --green-soft: #35563f;
  --cream: #faf5e5;
  --mist: #e9eceb;
  --peach: #ffbc7d;
  --ink: #24312b;
  --text: #4a5750;
  --white: #ffffff;
  --line: rgba(42, 70, 56, 0.14);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(33, 56, 45, 0.10);
  --shadow-lg: 0 22px 50px rgba(33, 56, 45, 0.16);
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1.1em; }
a { color: var(--green); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

section { padding: 84px 0; }

.eyebrow {
  display: inline-block;
  background: rgba(42, 70, 56, 0.09);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head p { color: var(--text); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(42, 70, 56, 0.28);
}
.btn-primary:hover { background: var(--green-deep); box-shadow: 0 12px 26px rgba(42, 70, 56, 0.36); }

.btn-cream {
  background: var(--cream);
  color: var(--green);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.btn-cream:hover { background: var(--white); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: var(--white); color: var(--green); border-color: var(--white); }

.btn-sm { padding: 11px 22px; font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(42, 70, 56, 0.10);
  box-shadow: 0 2px 14px rgba(33, 56, 45, 0.07);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 190px; height: auto; }


.nav-toggle-label {
  display: none;
  position: relative;
  background: none;
  border: 0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--green);
  align-items: center;
  justify-content: center;
}
.nav-toggle-label svg { width: 28px; height: 28px; }
.nav-toggle-label .icon-close { display: none; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.99rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:not(.btn):hover { color: var(--green); border-color: var(--green); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); color: var(--white); padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero p.lead { color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; max-width: 34em; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-badge svg { width: 15px; height: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 58px;
  padding-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.stat strong { display: block; font-family: var(--font-head); font-size: 2.3rem; color: var(--peach); line-height: 1.1; }
.stat span { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Über uns
   -------------------------------------------------------------------------- */
.team-block { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: center; }
.team-block + .team-block { margin-top: 84px; }
.team-block.flip .team-figure { order: 2; }
.team-figure { margin: 0; position: relative; }
.team-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.team-figure::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--peach);
  border-radius: var(--radius);
  z-index: -1;
}
.team-block.flip .team-figure::after { inset: 18px 18px -18px -18px; }

.qual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.qual {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--mist);
  border-radius: 14px;
  padding: 16px 18px;
}
.qual svg { width: 26px; height: 26px; color: var(--green); flex: none; margin-top: 2px; }
.qual strong { display: block; color: var(--ink); font-size: 0.98rem; }
.qual span { font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Strategie (dunkle Sektion)
   -------------------------------------------------------------------------- */
.strategy { background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); color: var(--white); }
.strategy-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.strategy h2 { color: var(--white); }
.strategy p { color: rgba(255, 255, 255, 0.85); }
.strategy .eyebrow { background: rgba(255, 255, 255, 0.12); color: var(--cream); }
.strategy-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.feature-list { display: grid; gap: 16px; }
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 18px 20px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(4px); }
.feature svg { width: 26px; height: 26px; color: var(--peach); flex: none; margin-top: 3px; }
.feature strong { display: block; color: var(--white); font-size: 1.02rem; }
.feature span { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */
.services { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(42, 70, 56, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--green); }
.service-card h3 { font-family: var(--font-head); font-size: 1.28rem; }
.service-card > p { font-size: 0.96rem; margin-bottom: 16px; }
.service-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.service-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.service-card li svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 4px; }
.services-cta { text-align: center; margin-top: 46px; }

/* --------------------------------------------------------------------------
   Claim-Band
   -------------------------------------------------------------------------- */
.claim { background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); color: var(--white); text-align: center; }
.claim h2 { color: var(--white); max-width: 18em; margin-left: auto; margin-right: auto; }
.claim p { color: rgba(255, 255, 255, 0.85); max-width: 46em; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Standorte / Kontakt
   -------------------------------------------------------------------------- */
.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.location-card {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.location-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.location-card .pin {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.location-card .pin svg { width: 22px; height: 22px; color: var(--peach); }
.location-card h3 { color: var(--white); font-family: var(--font-head); text-align: center; margin-bottom: 10px; }
.location-card address { font-style: normal; text-align: center; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; line-height: 1.55; margin-bottom: 12px; }
.location-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
}
.location-card a:hover { color: var(--peach); }
.location-card a svg { width: 15px; height: 15px; flex: none; }

.contact-cta { text-align: center; margin-top: 60px; }
.contact-cta h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.contact-cta .hero-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--green-deep); color: rgba(255, 255, 255, 0.8); padding: 64px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h2 { color: var(--white); font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-grid a:hover { color: var(--peach); }
.footer-brand img { width: 180px; margin-bottom: 16px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--peach); }
.footer-links li { display: flex; gap: 10px; align-items: center; }
.footer-links svg { width: 17px; height: 17px; flex: none; color: var(--peach); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }
.made-link { text-decoration: none; color: rgba(255, 255, 255, 0.4) !important; }
.made-link:hover { color: rgba(255, 255, 255, 0.6) !important; }
.footer-bottom .heart { color: rgba(226, 85, 85, 0.65); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--peach); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Rechtsseiten
   -------------------------------------------------------------------------- */
.legal-page { padding: 64px 0 84px; }
.legal-page .wrap { max-width: 860px; }
.legal-page h1 { margin-bottom: 0.8em; }
.legal-page h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal-page h3 { margin-top: 1.4em; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  section { padding: 62px 0; }
  .hero-grid, .strategy-grid, .team-block { grid-template-columns: 1fr; gap: 36px; }
  .team-block.flip .team-figure { order: 0; }
  .team-figure::after, .team-block.flip .team-figure::after { inset: 14px -10px -14px 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 22px;
    box-shadow: 0 14px 24px rgba(33, 56, 45, 0.16);
  }
  .site-nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid rgba(42, 70, 56, 0.12); }
  .site-nav .btn { margin-top: 16px; }
  .nav-offen .site-nav { display: flex; }
  .nav-offen .nav-toggle-label .icon-menu { display: none; }
  .nav-offen .nav-toggle-label .icon-close { display: block; }
}

@media (max-width: 560px) {
  .service-grid, .location-grid, .qual-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero-actions .btn { width: 100%; }
  .brand img { width: 160px; }
}

/* ==========================================================================
   Animationen & grafische Aufwertung
   ========================================================================== */
:root { --wedge: 48px; }
section { position: relative; }

/* Scroll-Reveal (nur mit JS aktiv, respektiert prefers-reduced-motion) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* Diagonale Sektionsübergänge */
.hero { overflow: hidden; padding-bottom: calc(64px + var(--wedge)); }
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--wedge);
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  pointer-events: none;
}
.hero::before {
  content: "LEITGEB" / "";
  position: absolute;
  right: -1%; bottom: 6%;
  font-family: var(--font-head);
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.strategy { padding: calc(84px + var(--wedge)) 0 96px; }
.strategy::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--wedge);
  background: #fdfaf1;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.services { padding-top: calc(84px + var(--wedge)); }
.services::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--wedge);
  background: var(--green-deep);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}

.claim {
  overflow: hidden;
  padding: calc(84px + var(--wedge)) 0 96px;
  background:
    radial-gradient(70% 130% at 88% 12%, rgba(255, 188, 125, 0.16), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
}
.claim::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--wedge);
  background: #f4edd8;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.claim::after {
  content: "%" / "";
  position: absolute;
  right: 4%; bottom: 18px;
  font-family: var(--font-head);
  font-size: 17rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.claim .wrap { position: relative; z-index: 1; }

#kontakt { background: var(--mist); padding-top: calc(84px + var(--wedge)); }
#kontakt::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--wedge);
  background: var(--green-deep);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}

/* Dekor hinter dem Hero-Foto */
.hero-figure { position: relative; }
.hero-figure img { position: relative; z-index: 1; }
.hero-figure::before {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border: 2px solid rgba(255, 188, 125, 0.45);
  border-radius: 50%;
  top: -34px; right: -34px;
}
.hero-figure::after {
  content: "";
  position: absolute;
  width: 70px; height: 70px;
  background: rgba(255, 188, 125, 0.25);
  border-radius: 50%;
  bottom: -24px; left: -24px;
}

/* Button-Shine + Puls-Ring */
.btn-primary, .btn-cream { position: relative; overflow: hidden; }
.btn-primary::after, .btn-cream::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -75%;
  width: 50%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-cream:hover::after { animation: btnshine 0.7s ease; }
@keyframes btnshine {
  0% { left: -75%; opacity: 1; }
  100% { left: 125%; opacity: 1; }
}

/* Micro-Interactions */
.service-icon { transition: background-color 0.25s ease; }
.service-icon svg { transition: transform 0.3s ease; }
.service-card:hover .service-icon { background: rgba(255, 188, 125, 0.3); }
.service-card:hover .service-icon svg { transform: rotate(-8deg) scale(1.12); }

.feature svg { transition: transform 0.3s ease; }
.feature:hover svg { transform: rotate(8deg) scale(1.1); }

@keyframes pinbounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-7px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-3px); }
}

/* Check-Icons kaskadierend einblenden */
.js .service-card li svg { transform: scale(0); transition: transform 0.35s cubic-bezier(0.45, 1.6, 0.4, 1); }
.js .service-card.in li svg { transform: scale(1); }
.service-card li:nth-child(1) svg { transition-delay: 0.25s; }
.service-card li:nth-child(2) svg { transition-delay: 0.33s; }
.service-card li:nth-child(3) svg { transition-delay: 0.41s; }
.service-card li:nth-child(4) svg { transition-delay: 0.49s; }

@media (prefers-reduced-motion: no-preference) {
  .btn-pulse { animation: btnpulse 3.4s ease-out 1.2s infinite; }
  .location-card:hover .pin svg { animation: pinbounce 0.6s ease; }
}
@keyframes btnpulse {
  0% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(250, 245, 229, 0.5); }
  55% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 0 16px rgba(250, 245, 229, 0); }
  100% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(250, 245, 229, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .service-card li svg { transform: none; transition: none; }
  .btn-primary::after, .btn-cream::after { display: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 700px) {
  :root { --wedge: 28px; }
  .hero::before { display: none; }
  .claim::after { font-size: 11rem; }
}

/* ==========================================================================
   Über uns – Aufwertung
   ========================================================================== */
#ueber-uns {
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 55%, #fdfaf1 100%);
}
#ueber-uns .wrap { position: relative; z-index: 1; }

.team-name { font-family: var(--font-head); font-size: 1.9rem; margin-bottom: 0; }
.team-name::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--peach);
  border-radius: 2px;
  margin: 12px 0 10px;
}
.team-role {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
}

/* Weiche Blob-Formen hinter den Fotos */
.team-figure::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 70, 56, 0.10), transparent 68%);
  top: -60px;
  left: -70px;
  z-index: -1;
  pointer-events: none;
}
.team-block.flip .team-figure::before {
  left: auto;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 188, 125, 0.22), transparent 68%);
}

/* Zitat-Badge auf dem Foto */
.photo-quote {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: -20px;
  max-width: 82%;
  background: var(--green);
  color: var(--cream);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.5;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Qualifikations-Kacheln beleben */
.qual { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.qual svg { transition: color 0.2s ease, transform 0.2s ease; }
.qual:hover { transform: translateY(-3px); background: var(--white); box-shadow: var(--shadow); }
.qual:hover svg { color: #e09b52; transform: scale(1.12); }

@media (max-width: 860px) {
  .photo-quote { left: 14px; bottom: -14px; font-size: 0.86rem; }
  .team-figure::before { width: 240px; height: 240px; top: -40px; left: -50px; }
  .team-block.flip .team-figure::before { right: -50px; }
}

/* ==========================================================================
   Vorteile-Sektion – Aufwertung
   ========================================================================== */
.strategy {
  overflow: hidden;
  background:
    radial-gradient(60% 110% at 90% 8%, rgba(255, 188, 125, 0.14), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
}
.strategy::after {
  content: "25" / "";
  position: absolute;
  left: -2%;
  bottom: -10%;
  font-family: var(--font-head);
  font-size: 18rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.strategy .wrap { position: relative; z-index: 1; }

.strategy h2 .accent { color: var(--peach); font-style: italic; }

.check-list { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.88); }
.check-list svg { width: 20px; height: 20px; color: var(--peach); flex: none; margin-top: 4px; }

.trust-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.trust-note svg { width: 15px; height: 15px; color: var(--peach); flex: none; }

/* Nummern, Icon-Chips & Verbindungslinie */
.feature { align-items: center; }
.feature-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 188, 125, 0.3);
  flex: none;
  width: 46px;
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 188, 125, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background-color 0.25s ease;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--peach); margin-top: 0; }
.feature:hover .feature-icon { background: var(--peach); }
.feature:hover .feature-icon svg { color: var(--green-deep); }
.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 42px;
  bottom: -16px;
  width: 2px;
  height: 16px;
  background: rgba(255, 188, 125, 0.35);
}

@media (max-width: 700px) {
  .strategy::after { font-size: 10rem; }
}

/* Footer-Unterzeile: drei Spalten, "Mit Herz" mittig */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px 24px;
}
.footer-bottom .made-link { justify-self: center; text-align: center; }
.footer-legal { justify-self: end; }
@media (max-width: 860px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-legal { justify-self: center; }
}

/* ==========================================================================
   Leistungen – Aufwertung
   ========================================================================== */
.services {
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, #f4edd8 100%);
}
.services::after {
  content: "§" / "";
  position: absolute;
  right: 7%;
  top: 12%;
  font-family: var(--font-head);
  font-size: 22rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(42, 70, 56, 0.05);
  pointer-events: none;
}
.services .wrap { position: relative; z-index: 1; }

/* Animierte Akzentlinie statt statischem Border */
.service-card { position: relative; overflow: hidden; border-top: none; padding-top: 36px; }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--green); }
.service-card::after { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 0; background: var(--peach); transition: width 0.4s ease; z-index: 1; }
.service-card:hover::after { width: 100%; }

/* Kernleistungs-Karte */
.service-card.featured { background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); }
.service-card.featured::before { background: rgba(255, 188, 125, 0.35); }
.service-card.featured h3 { color: var(--white); }
.service-card.featured > p { color: rgba(255, 255, 255, 0.8); }
.service-card.featured li { color: rgba(255, 255, 255, 0.88); }
.service-card.featured li svg { color: var(--peach); }
.service-card.featured .service-icon { background: rgba(255, 188, 125, 0.16); }
.service-card.featured .service-icon svg { color: var(--peach); }
.service-card.featured:hover .service-icon { background: rgba(255, 188, 125, 0.3); }
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--peach);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Direkt-Anfrage-Link je Karte */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.card-link svg { width: 16px; height: 16px; flex: none; transition: transform 0.18s ease; }
.card-link:hover { color: #c77b33; }
.card-link:hover svg { transform: translateX(3px); }
.service-card.featured .card-link { color: var(--peach); }
.service-card.featured .card-link:hover { color: var(--cream); }

/* CTA-Leiste unter dem Grid */
.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 36px;
  max-width: 860px;
  margin: 48px auto 0;
  text-align: left;
}
.services-cta p { margin: 0; font-size: 0.98rem; max-width: 26em; }
.services-cta p strong { display: block; color: var(--ink); font-size: 1.08rem; }

/* ==========================================================================
   Kontakt – Aufwertung
   ========================================================================== */
.styria-map { display: block; width: 112px; height: auto; margin: 0 auto 16px; }
.styria-map path { fill: rgba(42, 70, 56, 0.07); stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; }
.styria-map .dot { fill: var(--peach); stroke: var(--white); stroke-width: 1; }

.location-card { position: relative; }
.hq-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--peach);
  color: var(--green-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.location-card .route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 12px;
  color: var(--peach);
  font-size: 0.9rem;
  font-weight: 600;
}
.route-link svg { transition: transform 0.18s ease; }
.route-link:hover svg { transform: translateX(3px); }
.loc-actions { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.loc-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.location-card .loc-actions a:hover { background: var(--peach); border-color: var(--peach); color: var(--green-deep); }
.loc-actions svg { width: 15px; height: 15px; flex: none; }

/* Schluss-CTA als Panel */
.cta-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 85% 10%, rgba(255, 188, 125, 0.16), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: 22px;
  padding: 58px 40px;
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 { color: var(--white); }
.cta-panel .trust-note { justify-content: center; margin-top: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .styria-map .dot { transform-origin: center; transform-box: fill-box; animation: dotpulse 2.6s ease-in-out infinite; }
  .styria-map .dot:nth-of-type(2) { animation-delay: 0.35s; }
  .styria-map .dot:nth-of-type(3) { animation-delay: 0.7s; }
  .styria-map .dot:nth-of-type(4) { animation-delay: 1.05s; }
}
@keyframes dotpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@media (max-width: 700px) {
  .services::after { font-size: 12rem; }
  .cta-panel { padding: 44px 24px; }
}

/* ==========================================================================
   Hero – Aufwertung (Floating-Karte, Glow, Einstiegs-Animation, Scroll-Hint)
   ========================================================================== */
.hero {
  background:
    radial-gradient(55% 90% at 78% 30%, rgba(255, 188, 125, 0.13), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
}

.hero-msc {
  position: absolute;
  z-index: 2;
  top: -14px;
  right: 22px;
  background: var(--peach);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* Trennlinien zwischen den Statistiken */
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 20px; }

/* Scroll-Indikator */
.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 36px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--cream);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.scroll-hint svg { width: 20px; height: 20px; }
.scroll-hint:hover { background: var(--white); color: var(--green); border-color: var(--white); }

/* Einstiegs-Animation beim Laden (H1 + Foto bleiben sofort sichtbar) */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge, .hero-actions, .hero .stats, .hero-msc { animation: heroin 0.6s ease both; }
  .hero-badge { animation-delay: 0.1s; }
  .hero-actions { animation-delay: 0.25s; }
  .hero .stats { animation-delay: 0.4s; }
  .hero-msc { animation-delay: 0.55s; }
  .scroll-hint { animation: fadein 0.8s ease 0.8s both, bob 2.4s ease-in-out 1.8s infinite; }
}
@keyframes heroin {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 860px) {
  .stat + .stat { border-left: none; padding-left: 0; }
  .hero-msc { top: -10px; right: 12px; }
}

/* Claim – Wortspiel, Signatur, CTA */
.claim-lust { font-style: italic; color: var(--peach); }
.claim-frust {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(255, 188, 125, 0.75);
}
.claim-sign {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 20px 0 0;
}
.claim-actions { display: flex; justify-content: center; margin-top: 30px; }

/* Fix: Unterkanten der dunklen Bänder in einheitliches Dunkelgrün auslaufen lassen,
   damit die einfarbigen Übergangskeile darunter nahtlos anschließen (keine Linie) */
.strategy {
  background:
    radial-gradient(60% 110% at 90% 8%, rgba(255, 188, 125, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(33, 56, 45, 0) calc(100% - 90px), #21382d 100%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
}
.claim {
  background:
    radial-gradient(70% 130% at 88% 12%, rgba(255, 188, 125, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(33, 56, 45, 0) calc(100% - 90px), #21382d 100%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
}
/* Gleiche Absicherung oben am Hero (Anschluss an den einfarbigen Header) */
.hero {
  background:
    radial-gradient(55% 90% at 78% 30%, rgba(255, 188, 125, 0.13), transparent 60%),
    linear-gradient(180deg, var(--green) 0%, rgba(42, 70, 56, 0) 90px),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
}

/* Fix 2: Übergangskeile ohne clip-path — Diagonale per Verlauf.
   Beseitigt die Anti-Aliasing-Linie an der Keil-Oberkante endgültig. */
.hero::after {
  clip-path: none;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 49.8%, var(--white) 50.2%);
}
.strategy::before {
  clip-path: none;
  background: linear-gradient(to bottom right, #fdfaf1 49.8%, rgba(253, 250, 241, 0) 50.2%);
}
.services::before {
  clip-path: none;
  background: linear-gradient(to bottom left, #21382d 49.8%, rgba(33, 56, 45, 0) 50.2%);
}
.claim::before {
  clip-path: none;
  background: linear-gradient(to bottom right, #f4edd8 49.8%, rgba(244, 237, 216, 0) 50.2%);
}
#kontakt::before {
  clip-path: none;
  background: linear-gradient(to bottom left, #21382d 49.8%, rgba(33, 56, 45, 0) 50.2%);
}

/* Standortkarten: Adressbereich dehnt sich, Route-Link + Buttons bündig unten */
.location-card address { flex: 1 0 auto; }

/* Leistungskarten: flache Optik statt 3D (Kundenwunsch) */
.service-card { box-shadow: none; border: 1px solid var(--line); border-top: none; }
.service-card:hover { transform: none; box-shadow: none; border-color: rgba(42, 70, 56, 0.32); }
.service-card.featured { border-color: transparent; }
.services-cta { box-shadow: none; border: 1px solid var(--line); }

/* Footer-Links: Unterstrich bei Hover wie im Header-Menü */
.footer-grid a, .footer-legal a {
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-grid a:hover, .footer-legal a:hover {
  color: var(--peach);
  border-color: var(--peach);
  text-decoration: none;
}

/* Tablet-Fix: Standortkarten brauchen Breite für die Aktions-Buttons -> 2x2 schon unter 1120px
   (ab 561px – darunter gilt der Einspalter fürs Smartphone) */
@media (min-width: 561px) and (max-width: 1120px) {
  .location-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Mobiles Menü – Verbesserung (MENÜ-Text, Animation, größere Tippflächen)
   ========================================================================== */
.menu-word { display: none; }
.nav-phone { display: none; }

@media (max-width: 860px) {
  .nav-toggle-label { width: auto; min-width: 44px; gap: 9px; padding: 0 6px; }
  .menu-word {
    display: inline;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
  }
  .word-close { display: none; }
  .nav-offen .nav-toggle-label .word-open { display: none; }
  .nav-offen .nav-toggle-label .word-close { display: inline; }

  /* Panel: sanft einblenden statt hart umschalten */
  .site-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    border-top: 1px solid rgba(42, 70, 56, 0.12);
  }
  .nav-offen .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  /* Größere Tippflächen + Chevron */
  .site-nav a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 6px;
    font-size: 1.05rem;
  }
  .site-nav a:not(.btn)::after {
    content: "›";
    color: var(--green-soft);
    font-size: 1.25rem;
    line-height: 1;
  }

  /* Telefon-Schnellzugriff im Menü */
  .nav-phone .np { display: inline-flex; align-items: center; gap: 10px; }
  .nav-phone svg { width: 17px; height: 17px; color: var(--green-soft); flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
}

/* Footer-Unterzeile mobil: Reihenfolge Rechtslinks -> Copyright -> "Mit Herz" */
@media (max-width: 860px) {
  .footer-legal { order: 1; }
  .footer-bottom > span { order: 2; }
  .footer-bottom .made-link { order: 3; }
}

/* Nach-oben-Button */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, background-color 0.2s ease, color 0.2s ease;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.to-top:hover { background: var(--peach); color: var(--green-deep); border-color: var(--peach); }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}
@media (max-width: 560px) {
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ==========================================================================
   Desktop-Feinschliff (06.08.2026)
   – bündige Kartenabschlüsse, angenehme Zeilenlängen, mitwachsende
     Inhaltsbreite auf großen Bildschirmen. Mobile/Tablet bleiben unberührt.
   ========================================================================== */

/* Leistungskarten: „Anfrage zu dieser Leistung" steht in allen Karten
   einer Reihe auf gleicher Höhe, statt mitten in der Karte zu hängen. */
.service-card { display: flex; flex-direction: column; }
.service-card ul { margin-bottom: 20px; }
.service-card .card-link { margin-top: auto; }

/* Einleitungstexte unter den Sektionsüberschriften: max. ~65 Zeichen je Zeile */
.section-head p { max-width: 65ch; margin-left: auto; margin-right: auto; }

/* Rechtsseiten: Lesebreite von 96 auf ~78 Zeichen je Zeile verengt
   (die langen Absätze in Impressum/Datenschutz lasen sich am Desktop zäh) */
.legal-page .wrap { max-width: 760px; }

/* --- Ab 1340 px: erste Stufe, damit die beiden Hero-Buttons auf
       gängigen Desktop-Breiten (1366/1440) nebeneinander Platz finden --- */
@media (min-width: 1340px) {
  .wrap { max-width: 1260px; }
  .hero-actions { gap: 14px; }
}

/* --- Ab 1500 px: Inhalt wächst mit, statt in 1180 px stehen zu bleiben --- */
@media (min-width: 1500px) {
  .wrap { max-width: 1300px; }

  /* Hero bekommt mehr Präsenz */
  .hero-grid { gap: 72px; }
  .hero h1 { font-size: 3.7rem; }
  .hero .lead { font-size: 1.15rem; max-width: 36em; }
  .hero-actions { margin-top: 34px; }

  h2 { font-size: 2.65rem; }
  .section-head { max-width: 840px; }

  /* Karten dürfen innen etwas großzügiger werden */
  .service-grid { gap: 30px; }
  .service-card { padding: 36px 34px; }
  .location-grid { gap: 26px; }
  .location-card { padding: 34px 30px; }
  .qual-grid { gap: 18px; }

  /* Wasserzeichen näher an den Inhalt rücken, damit es nicht am Rand klebt */
  .services::after { right: 12%; }
}

/* --- Ab 1800 px: noch eine Stufe, damit sehr breite Monitore nicht leer wirken --- */
@media (min-width: 1800px) {
  .wrap { max-width: 1380px; }
  .hero h1 { font-size: 3.95rem; }
  section { padding: 96px 0; }
}

/* ==========================================================================
   Tablet-Feinschliff (06.08.2026)
   – mehr Seitenluft, ruhigere Kartenraster, Touch-taugliche Tippflächen.
     Smartphone (<561px) und Desktop (>1339px) bleiben unberührt.
   ========================================================================== */

/* Seitenrand: 22 px wirkten auf Tablets gedrängt (Logo klebte am Rand) */
@media (min-width: 561px) and (max-width: 1339px) {
  .wrap { padding: 0 34px; }
}

/* 861–1120 px: drei Leistungskarten nebeneinander wurden zu schmal
   (Überschriften brachen um) → zwei Spalten wie schon bei kleineren Tablets */
@media (min-width: 861px) and (max-width: 1120px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Vier Standortkarten brauchen mit dem größeren Seitenrand mehr Platz;
   bis 1199 px daher 2×2 statt vier nebeneinander (sonst 6 px Überbreite
   auf dem iPad 10 im Querformat, 1180 px) */
@media (min-width: 561px) and (max-width: 1199px) {
  .location-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hero-Buttons: enger gesetzt, damit sie auf breiten Tablets (1180/1194 px)
   nebeneinander passen; wo der Platz nicht reicht, stehen sie gleich breit
   untereinander statt unterschiedlich lang und unruhig */
@media (min-width: 861px) {
  .hero-actions { gap: 14px; }
}
@media (min-width: 861px) and (max-width: 1150px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; max-width: 340px; justify-content: center; }
}

/* Touch-Ziele auf Tablets auf ~44 px vergrößern (Textlinks waren 25–32 px).
   Reicht bis 1400 px, damit auch das iPad Pro 12.9" im Querformat (1366 px)
   erfasst wird. */
@media (min-width: 561px) and (max-width: 1400px) {
  .card-link { padding-top: 10px; padding-bottom: 10px; }
  .location-card .route-link { padding-top: 10px; padding-bottom: 10px; }
  .site-footer { --footer-linkpad: 8px; }
}
@media (min-width: 861px) and (max-width: 1400px) {
  .site-nav a:not(.btn) { padding-top: 13px; padding-bottom: 13px; }
}

/* §-Wasserzeichen lag auf Tablets über dem Einleitungstext */
@media (min-width: 701px) and (max-width: 1120px) {
  .services::after { font-size: 15rem; right: 0; top: 8%; }
}

/* Tablet im Querformat (861–1339 px): der Hero war so hoch, dass der
   „Kostenloses Erstgespräch"-Button auf iPads im Querformat (768–834 px
   Bildschirmhöhe) erst nach dem Scrollen auftauchte */
@media (min-width: 861px) and (max-width: 1339px) {
  .hero { padding: 48px 0 48px; }
  /* Textspalte etwas breiter: der Fließtext brauchte sonst 6 statt 4 Zeilen */
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 44px; }
  .hero h1 { font-size: 2.6rem; }
  .hero p.lead { font-size: 1.06rem; }
  .hero-badge { margin-bottom: 18px; }
  .hero-actions { margin-top: 22px; }
  .stats { margin-top: 40px; padding-top: 32px; }
}

/* ==========================================================================
   Smartphone-Feinschliff (06.08.2026)
   – fingerfreundliche Tippflächen, kompaktere Kopfleiste, ruhigere
     Textblöcke. Greift nur unter 561 px.
   ========================================================================== */
@media (max-width: 560px) {
  /* Tippflächen: Textlinks waren 25–32 px hoch */
  .card-link { padding-top: 11px; padding-bottom: 11px; }
  .location-card .route-link { padding-top: 10px; padding-bottom: 10px; }
  .site-footer { --footer-linkpad: 9px; }

  /* Kopfleiste kompakter – sie klebt beim Scrollen dauerhaft am oberen Rand */
  .site-header .wrap { min-height: 64px; }
  html { scroll-padding-top: 78px; }

  /* Etwas mehr Textbreite auf schmalen Geräten */
  .wrap { padding: 0 18px; }

  /* Hero: kleinere Schrift bringt den Einstiegstext von 7 auf 6 Zeilen und
     rückt die beiden Buttons höher */
  .hero { padding: 44px 0 44px; }
  .hero h1 { font-size: 1.95rem; }
  .hero p.lead { font-size: 1.04rem; }
  .hero-badge { font-size: 0.84rem; padding: 7px 15px; margin-bottom: 18px; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .stats { margin-top: 40px; padding-top: 32px; gap: 22px; }

  /* Die Seite ist ein langer Onepager – etwas engere Sektionsabstände */
  section { padding: 52px 0; }
  .section-head { margin-bottom: 38px; }
  .team-block + .team-block { margin-top: 54px; }
}

/* Footer auf dem Smartphone: „Quicklinks" und „Rechtliches" nebeneinander,
   sonst wird der Fuß durch die größeren Tippflächen sehr lang.
   Marke und Kontaktspalte bleiben über die volle Breite. */
@media (min-width: 380px) and (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .footer-grid > :first-child,
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

/* Lange, ununterbrochene Zeichenketten (E-Mail-Adresse, RIS-/WKO-Links)
   sprengten auf schmalen Smartphones Impressum, Datenschutz und AGB
   (bis 55 px Überbreite bei 320 px). */
a, p, li, h1, h2, h3, dd, dt, td { overflow-wrap: break-word; }
.legal-page a { overflow-wrap: anywhere; }


/* Sprunglink für Tastatur- und Screenreader-Nutzer: erscheint erst bei Fokus */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--peach); outline-offset: 2px; }
main:focus { outline: none; }


/* Footer-Tippflächen: Der zusätzliche Innenabstand der Links muss auch für die
   Icons der Kontaktspalte gelten – sie stehen dort auf align-items:flex-start
   (wegen der mehrzeiligen Adresse) und wären sonst um genau diesen Betrag zu
   hoch. Ein gemeinsamer Wert hält Icon und Textzeile automatisch synchron. */
.footer-links a, .footer-contact a, .footer-legal a, .made-link {
  padding-top: var(--footer-linkpad, 0);
  padding-bottom: var(--footer-linkpad, 0);
}
.footer-links a, .footer-contact a, .footer-legal a { display: inline-block; }
.footer-contact li > svg {
  /* Tippflächen-Abstand des Links + halbe Differenz zwischen Zeilenhöhe
     und Symbolhöhe – so sitzt das Symbol auf der Mitte der ersten Zeile. */
  margin-top: calc(var(--footer-linkpad, 0px) + 4px);
}

/* ==========================================================================
   Mobiles Menü – Korrekturen (06.08.2026)
   ========================================================================== */
@media (max-width: 860px) {
  /* Im Querformat (Bildschirmhöhe ~320–393 px) ragte das aufgeklappte Menü
     bis zu 111 px über den unteren Rand hinaus; da es am fixierten Kopf
     hängt, war der letzte Eintrag (Telefonnummer, CTA-Button) nicht
     erreichbar. Es bekommt jetzt eine Maximalhöhe und scrollt bei Bedarf
     in sich selbst. */
  .site-nav {
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* Gestaffeltes Einblenden – ersetzt die früher per JavaScript gesetzten
   Inline-Styles (siehe Content-Security-Policy). */
[data-stagger] > *:nth-child(1) { --rd: 0.00s; }
[data-stagger] > *:nth-child(2) { --rd: 0.08s; }
[data-stagger] > *:nth-child(3) { --rd: 0.16s; }
[data-stagger] > *:nth-child(4) { --rd: 0.24s; }
[data-stagger] > *:nth-child(5) { --rd: 0.32s; }
[data-stagger] > *:nth-child(6) { --rd: 0.40s; }
[data-stagger] > *:nth-child(7) { --rd: 0.48s; }
[data-stagger] > *:nth-child(8) { --rd: 0.56s; }
[data-stagger] > *:nth-child(9) { --rd: 0.64s; }
[data-stagger] > *:nth-child(10) { --rd: 0.72s; }

.icon-15 { width: 15px; height: 15px; }


/* --------------------------------------------------------------------------
   404-Seite (aus dem früheren <style>-Block der 404.html hierher verlagert,
   damit die Content-Security-Policy ohne 'unsafe-inline' auskommt)
   -------------------------------------------------------------------------- */
.error-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(55% 90% at 78% 30%, rgba(255, 188, 125, 0.13), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  padding: 60px 0;
}
.error-hero::before {
  content: "404" / "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(16rem, 42vw, 34rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}
.error-hero .wrap { position: relative; z-index: 1; }
.error-code {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.error-hero h1 { color: var(--white); max-width: 18em; margin-left: auto; margin-right: auto; }
.error-hero h1 em { font-style: italic; color: var(--peach); }
.error-hero p { color: rgba(255, 255, 255, 0.85); max-width: 38em; margin: 0 auto 1.1em; }
.error-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 30px; }

/* Optische Feinausrichtung der Icons in Schaltflächen: Die Zeilenbox des
   Textes ist höher als die Buchstaben selbst (Zeilenhöhe 1,7 bzw. Unterlängen),
   dadurch zentriert align-items:center das Icon rechnerisch richtig, es wirkt
   aber rund 1,5 px zu tief. */
.loc-actions a { line-height: 1; }
.loc-actions a svg,
.btn svg { margin-top: -1px; }

/* ==========================================================================
   Aktiver Abschnitt im Menü + Abdunkelung hinter dem mobilen Menü
   ========================================================================== */

/* Desktop-Leiste: aktiver Punkt mit dauerhaftem Unterstrich */
.site-nav a:not(.btn).aktiv {
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}

@media (max-width: 860px) {
  /* Mobiles Panel: aktiver Eintrag mit Peach-Balken links und grüner Schrift */
  /* Alle Einträge mit gleichem Einzug, damit der aktive nicht verspringt */
  .site-nav a:not(.btn) { padding-left: 12px; }
  .site-nav a:not(.btn).aktiv {
    color: var(--green);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--peach);
    background: rgba(42, 70, 56, 0.045);
  }

  /* Abdunkelung des Seiteninhalts, solange das Menü offen ist */
  .site-header::after {
    content: "";
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: 64px;
    background: rgba(33, 56, 45, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    z-index: 1;
  }
  .site-nav { z-index: 2; }
}
@media (max-width: 860px) {
  .nav-offen .site-header::after {
    opacity: 1; visibility: visible;
    transition: opacity 0.25s ease;
  }
}
@media (min-width: 561px) and (max-width: 860px) {
  .site-header::after { top: 78px; }
}


/* Ohne JavaScript bleibt die Navigation dauerhaft ausgeklappt, damit sie in
   jedem Fall erreichbar ist (die Klasse .js setzt ein Inline-Script im head). */
@media (max-width: 860px) {
  html:not(.js) .site-nav {
    display: flex;
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }
  html:not(.js) .nav-toggle-label { display: none; }
}

/* Deutlich sichtbarer Fokusring auf der Menü-Schaltfläche */
.nav-toggle-label:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Der Telefonhörer ist in seiner Zeichenfläche zwar mittig, sein sichtbares
   Gewicht liegt aber unten links – dadurch wirkt er neben Text rund einen
   Pixel zu tief. Eigene Feinkorrektur, unabhängig von der Schaltflächenart. */
svg.icon-phone { margin-top: -2px; }
.btn svg.icon-phone,
.loc-actions a svg.icon-phone,
.nav-phone svg.icon-phone { margin-top: -2px; }

/* Im Fußbereich gilt der Zeilen-Ausgleich auch für den Telefonhörer */
.footer-contact li > svg.icon-phone { margin-top: calc(var(--footer-linkpad, 0px) + 4px); }


/* AGB-Seite: Download-Bereich */
.agb-download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0 34px; }
.agb-meta { font-size: 0.9rem; color: var(--grau, #6b7671); }
.legal-page .btn svg { width: 19px; height: 19px; }

/* Lange Überschriften (z. B. „Allgemeine Geschäftsbedingungen") brachen auf
   schmalen Geräten mitten im Wort um – Silbentrennung nach deutschen Regeln. */
@media (max-width: 560px) {
  h1, h2, .legal-page h1, .legal-page h2 {
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Rechtsseiten: Anschrift semantisch als <address>, aber ohne Kursivsatz;
   Aufzählungen mit lesbarem Abstand */
.legal-page address { font-style: normal; margin: 0 0 1.1em; }
.legal-page ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.legal-page li { margin-bottom: 0.4em; }
