/* VARIG – statische Seite. Design aus der bisherigen WordPress-Fassung übernommen,
   WordPress-Resets entfernt, Unterseiten-/FAQ-/Ablauf-Bausteine ergänzt. */

/* ─── SCHRIFTEN (lokal, keine Google-Server) ─────────────────────────────── */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/assets/fonts/montserrat-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Titillium Web'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/titillium-web-latin-400.woff2') format('woff2');
}

/* ─── VARIABLEN (deromed-Grün) ────────────────────────────────────────────── */
:root {
  --bg:          #f7f9f7;
  --bg-alt:      #ffffff;
  --border:      rgba(0,0,0,0.08);
  --text:        #1a1a1a;
  --text-muted:  #5f5f64;
  --accent:      #3A7A35;
  --accent-soft: #edf5ec;
  --accent-dark: #2B5F28;
  --radius-lg:   28px;
  --radius-md:   16px;
  --shadow-card: 0 2px 24px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.06);
  --nav-h:       64px;
  --max-w:       1100px;
  --font-head:   'Microgramma', 'Microgramma D OT', 'Eurostile Extended', 'Titillium Web', sans-serif;
}

/* ─── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100000; }
.skip-link:focus { left: 16px; }

/* ─── ANIMATIONEN (nur mit JS; ohne JS bleibt alles sichtbar) ─────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(5px); } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
.reveal-delay-6 { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .hero-eyebrow, .hero-headline, .hero-sub, .hero-actions, .hero-scroll-hint { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ─── NAVIGATION ──────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: var(--nav-h);
  background: rgba(247,249,247,0.92);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 32px;
}
.nav-inner { max-width: var(--max-w); width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.01em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); opacity: 1; }
.nav-cta { background: var(--accent); color: #fff !important; padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 500; transition: background .2s, transform .15s; }
.nav-cta:hover { background: var(--accent-dark); opacity: 1; transform: translateY(-1px); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 20px; background: var(--bg-alt); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile ul { position: absolute; right: 0; top: calc(100% + 10px); list-style: none; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 10px; min-width: 230px; }
.nav-mobile li a { display: block; padding: 10px 14px; color: var(--text); font-size: 15px; border-radius: 10px; }
.nav-mobile li a:hover { background: var(--accent-soft); opacity: 1; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 32px 100px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(58,122,53,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(58,122,53,0.05) 0%, transparent 60%),
    var(--bg);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; line-height: 1.5;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 28px;
  opacity: 0; animation: fadeUp .7s .1s ease forwards;
}
.hero-headline { display: block; font-size: clamp(36px, 6vw, 72px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); margin-bottom: 24px; opacity: 0; animation: fadeUp .7s .25s ease forwards; }
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); font-weight: 300; max-width: 640px; margin: 0 auto 40px; opacity: 0; animation: fadeUp .7s .4s ease forwards; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp .7s .55s ease forwards; }
.btn-primary { display: inline-block; background: var(--accent); color: #fff; padding: 14px 32px; border-radius: 30px; font-size: 16px; font-weight: 500; transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 4px 20px rgba(58,122,53,0.28); }
.btn-primary:hover { background: var(--accent-dark); opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(58,122,53,0.35); }
.btn-secondary { display: inline-block; color: var(--accent); padding: 14px 32px; border-radius: 30px; font-size: 16px; font-weight: 500; border: 1.5px solid var(--accent); transition: background .2s, transform .15s; }
.btn-secondary:hover { background: var(--accent-soft); opacity: 1; transform: translateY(-2px); }
.hero-scroll-hint { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: fadeUp .7s .9s ease forwards; }
.hero-scroll-hint span { font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.scroll-arrow { width: 18px; height: 18px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); animation: bounce 1.8s 1.5s ease-in-out infinite; }

/* ─── ABSCHNITTE ──────────────────────────────────────────────────────────── */
section { padding: 100px 32px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-headline { font-size: clamp(28px, 4.5vw, 50px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 20px; }
.section-body { font-size: 17px; color: var(--text-muted); max-width: 680px; line-height: 1.75; }
.section-body + .section-body { margin-top: 14px; }
.bg-alt { background: var(--bg-alt); }

/* Karten (Warum / Leistungen) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 56px; }
.card-grid.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 34px 28px; box-shadow: var(--shadow-card); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.bg-alt .card { background: var(--bg); }
#leistungen .card { background: var(--bg-alt); }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(0,0,0,0.10); }
.card-icon { width: 52px; height: 52px; background: var(--accent-soft); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--text); }
.card h3 a { color: inherit; }
.card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; flex: 1; }
.card-more { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; }

/* Transparenz-Hinweis */
.note { margin-top: 40px; max-width: 860px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 22px 26px; font-size: 15px; color: var(--text); line-height: 1.7; }
.note strong { font-weight: 600; }

/* Ablauf */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 48px; }
.steps li { counter-increment: step; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 24px; box-shadow: var(--shadow-card); }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; margin-bottom: 16px; }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.bg-alt .steps li { background: var(--bg); }

/* Team */
.team-list { display: flex; flex-direction: column; gap: 32px; margin-top: 56px; max-width: 860px; }
.team-card { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-card); }
.team-photo-wrap { width: 200px; height: 220px; border-radius: var(--radius-md); overflow: hidden; background: var(--accent-soft); }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-info { display: flex; flex-direction: column; gap: 8px; }
.team-role { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.team-name { font-size: clamp(20px, 2.5vw, 28px); letter-spacing: -0.02em; color: var(--text); margin-bottom: 4px; }
.team-bio { font-size: 15px; color: var(--text-muted); line-height: 1.75; }
.team-linkedin { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-top: 8px; }
.team-linkedin svg { width: 16px; height: 16px; }

/* Servicegebiet */
#servicegebiet { background: var(--accent); color: #fff; }
#servicegebiet .section-eyebrow { color: rgba(255,255,255,0.7); }
#servicegebiet .section-headline { color: #fff; }
#servicegebiet .section-body { color: rgba(255,255,255,0.85); max-width: 100%; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.2); border-radius: var(--radius-lg); overflow: hidden; margin-top: 56px; border: 1px solid rgba(255,255,255,0.2); }
.service-cell { padding: 40px 36px; background: #3f8039; }
.service-cell-icon { font-size: 36px; margin-bottom: 16px; }
.service-cell h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.service-cell p { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; }
.service-tags li { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; padding: 4px 14px; font-size: 13px; font-weight: 500; }

/* Standort */
.standort-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; margin-top: 48px; }
.standort-info { display: flex; flex-direction: column; gap: 20px; font-style: normal; }
.standort-item { display: flex; gap: 16px; align-items: flex-start; }
.standort-icon { width: 44px; height: 44px; min-width: 44px; background: var(--accent-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.standort-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 2px; }
.standort-value { font-size: 15px; color: var(--text); line-height: 1.5; }
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border); aspect-ratio: 16/10; min-height: 280px; width: 100%; min-width: 0; /* width fest, sonst erzwingt min-height über aspect-ratio Überbreite auf Handys */ background: var(--accent-soft); display: flex; align-items: center; justify-content: center; text-align: center; }
.map-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }
.map-consent { padding: 28px; max-width: 420px; }
.map-consent p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.map-consent button { font: inherit; cursor: pointer; border: none; }
.map-credit { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* Kontakt */
.kontakt-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 64px; text-align: center; box-shadow: var(--shadow-card); max-width: 720px; margin: 48px auto 0; }
.kontakt-card .section-headline { margin-bottom: 14px; }
.kontakt-card p { color: var(--text-muted); margin-bottom: 28px; font-size: 17px; }
.kontakt-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.kontakt-meta { margin-top: 26px; font-size: 14px; color: var(--text-muted); }

/* FAQ */
.faq-list { margin-top: 40px; max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.faq { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-alt); overflow: hidden; }
.bg-alt .faq { background: var(--bg); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 26px; font-weight: 600; font-size: 16px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--accent); transition: transform .25s; flex-shrink: 0; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--accent-soft); }
.faq-answer { padding: 0 26px 22px; font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.faq-answer p + p, .faq-answer p + ul, .faq-answer ul + p { margin-top: 10px; }
.faq-answer ul { padding-left: 20px; }
.faq-more { margin-top: 28px; font-weight: 600; }

/* Unterseiten */
.page-hero { padding: calc(var(--nav-h) + 64px) 32px 56px; background: var(--bg); position: relative; overflow: hidden; }
.page-hero .hero-bg { z-index: 0; }
.page-hero .section-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 5vw, 54px); letter-spacing: -0.02em; line-height: 1.12; margin: 6px 0 20px; max-width: 900px; }
.page-hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-muted); max-width: 760px; line-height: 1.7; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; }
.breadcrumb a { color: var(--text-muted); }
.prose { max-width: 780px; font-size: 17px; line-height: 1.8; color: var(--text); }
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 18px; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose .faq-list { margin-top: 16px; }
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); max-width: 780px; }
.related h2 { font-size: 20px; margin-bottom: 14px; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; background: var(--bg-alt); }
.cta-band { margin-top: 64px; background: var(--accent-soft); border-radius: var(--radius-lg); padding: 44px 40px; max-width: 900px; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 12px; }
.cta-band p { color: var(--text-muted); margin-bottom: 24px; }
.legal { max-width: 820px; font-size: 16px; line-height: 1.8; color: var(--text); }
.legal h2 { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 20px; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal ul { margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* Footer */
.site-footer { background: var(--text); color: rgba(255,255,255,0.6); padding: 56px 32px 40px; font-size: 14px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-cols h2 { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: rgba(255,255,255,0.7); }
.footer-cols a:hover { color: #fff; opacity: 1; }
.footer-cols address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 13px; color: rgba(255,255,255,0.45); }

/* ─── RESPONSIV ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  section { padding: 72px 20px; }
  .site-nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .service-grid, .standort-grid { grid-template-columns: 1fr; }
  .standort-grid { gap: 32px; }
  .kontakt-card { padding: 36px 22px; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 20px 40px; }
  .cta-band { padding: 32px 22px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 44px 20px 32px; }
}
@media (max-width: 640px) {
  .team-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .team-photo-wrap { width: 100%; height: 260px; }
  .card-grid, .card-grid.wide { grid-template-columns: 1fr; }
  .faq summary { padding: 18px 20px; }
  .faq-answer { padding: 0 20px 20px; }
}
@media (max-width: 540px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .nav-logo img { height: 34px; }
}
