/* =========================================================
   Nordframe – Design System
   Helles Layout mit kräftigen Grün-Akzenten aus dem Logo
   (Olive + Tannengrün). Keine externen Schriften/Skripte.
   ========================================================= */

:root {
  /* Farben (abgeleitet aus dem Logo) */
  --bg:        #ffffff;
  --bg-soft:   #f1f5ea;
  --bg-mute:   #e6ecd8;
  --ink:       #16241a;   /* fast-schwarzes Grün, Texte/Headings */
  --muted:     #56624f;   /* Sekundärtext */
  --brand:     #355e34;   /* Primärgrün, Buttons/Links */
  --brand-dk:  #244526;   /* Hover */
  --olive:     #7c8a55;   /* Akzent aus dem Logo */
  --olive-dk:  #5f6d3c;
  --forest:    #142111;   /* dunkle Sektionen / Footer */
  --forest-2:  #1d3018;   /* zweiter Grünton für Verläufe */
  --cream:     #f4f1e8;
  --line:      #dde3cf;   /* Trennlinien, Rahmen */
  --white:     #ffffff;

  /* Maße */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 44px rgba(20, 33, 17, .12);
  --shadow-sm: 0 6px 18px rgba(20, 33, 17, .08);

  /* Z-Index */
  --z-header: 130;
  --z-overlay: 120;
  --z-intro: 300;

  /* Typo */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dk); }
h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--forest {
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(124,138,85,.28), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(124,138,85,.18), transparent 55%),
    linear-gradient(160deg, var(--forest-2), var(--forest));
  color: var(--cream);
}
.section--forest h2, .section--forest h3 { color: #fff; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }
.section--forest .lead, .section--forest p { color: #d2dac4; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .8rem;
}
.eyebrow--light { color: var(--olive); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none; line-height: 1;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(53,94,52,.28); }
.btn--primary:hover { background: var(--brand-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(53,94,52,.34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-soft); }
.btn--light { background: var(--cream); color: var(--forest); }
.btn--light:hover { background: #fff; color: var(--forest); transform: translateY(-2px); }
.btn--olive { background: var(--olive); color: #fff; }
.btn--olive:hover { background: var(--olive-dk); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* =========================================================
   Intro-Animation (Logo + Schriftzug beim Laden)
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 50% 38%, #21331b 0%, #11190c 65%);
  animation: introHide .7s ease 2.15s forwards;
}
.intro.gone { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
html.intro-seen .intro { display: none; }
@keyframes introHide { to { opacity: 0; visibility: hidden; } }

.intro-inner { transform: translateY(-2%); }
.intro-logo {
  width: clamp(96px, 22vw, 132px); height: clamp(96px, 22vw, 132px);
  margin: 0 auto; border-radius: 24px; object-fit: cover;
  box-shadow: 0 26px 70px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.55) translateY(14px) rotate(-6deg);
  animation: introLogo 1s cubic-bezier(.2,.85,.25,1) .12s forwards;
}
@keyframes introLogo { to { opacity: 1; transform: scale(1) translateY(0) rotate(0); } }

.intro-word {
  margin-top: 26px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .34em; font-size: clamp(1.4rem, 5vw, 2.5rem);
  display: inline-flex; padding-left: .34em; overflow: hidden;
}
.intro-word span { display: inline-block; opacity: 0; transform: translateY(115%); }
.intro-word .i-nord  { color: var(--cream); animation: introWord .75s cubic-bezier(.2,.85,.25,1) .55s forwards; }
.intro-word .i-frame { color: var(--olive); animation: introWord .75s cubic-bezier(.2,.85,.25,1) .7s forwards; }
@keyframes introWord { to { opacity: 1; transform: translateY(0); } }

.intro-line {
  width: 0; height: 2px; margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--olive), transparent);
  animation: introLine .9s ease 1.05s forwards;
}
@keyframes introLine { to { width: min(260px, 60vw); } }

@media (prefers-reduced-motion: reduce) {
  .intro { animation-delay: .25s; }
  .intro-logo, .intro-word span, .intro-line { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* =========================================================
   Header / Nav  (Logo + Schriftzug + Drei-Striche-Menü)
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 44px; width: 44px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); }
.wordmark {
  font-weight: 800; text-transform: uppercase; letter-spacing: .18em;
  font-size: 1.18rem; line-height: 1; transition: color .3s ease;
}
.wordmark .wm-1 { color: var(--ink); }
.wordmark .wm-2 { color: var(--olive); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta-btn { transition: opacity .25s ease; }

/* Drei-Striche-Button */
.nav-toggle {
  position: relative; width: 50px; height: 50px; border: 0; cursor: pointer;
  background: var(--bg-soft); border-radius: 12px; padding: 0;
  transition: background .2s ease; z-index: calc(var(--z-header) + 1);
}
.nav-toggle:hover { background: var(--bg-mute); }
.nav-toggle span {
  position: absolute; left: 14px; right: 14px; height: 2.5px; border-radius: 2px;
  background: var(--ink); transition: transform .35s cubic-bezier(.6,0,.2,1), opacity .2s ease, background .3s ease;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle.open span { background: var(--cream); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Wenn Overlay offen: Header transparent, Schrift hell */
body.menu-open .site-header { background: transparent; border-color: transparent; }
body.menu-open .wordmark .wm-1 { color: #fff; }
body.menu-open .wordmark .wm-2 { color: var(--olive); }
body.menu-open .nav-cta-btn { opacity: 0; pointer-events: none; }

/* Vollbild-Overlay-Menü */
.overlay-menu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background:
    radial-gradient(800px 500px at 90% 8%, rgba(124,138,85,.30), transparent 60%),
    linear-gradient(160deg, var(--forest-2), var(--forest));
  clip-path: circle(0% at calc(100% - 49px) 53px);
  transition: clip-path .6s cubic-bezier(.76,0,.24,1);
  visibility: hidden;
}
.overlay-menu.open { clip-path: circle(160% at calc(100% - 49px) 53px); visibility: visible; }
.overlay-nav { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.overlay-nav ul { list-style: none; margin: 0; padding: 0; }
.overlay-nav li { overflow: hidden; margin: 4px 0; }
.overlay-nav li a {
  display: inline-block; color: var(--cream); font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; font-size: clamp(2.1rem, 8vw, 4.2rem); line-height: 1.18;
  transform: translateY(110%); transition: color .2s ease, padding-left .25s ease;
}
.overlay-menu.open li a { animation: menuItem .6s cubic-bezier(.2,.85,.25,1) forwards; }
.overlay-menu.open li:nth-child(1) a { animation-delay: .12s; }
.overlay-menu.open li:nth-child(2) a { animation-delay: .19s; }
.overlay-menu.open li:nth-child(3) a { animation-delay: .26s; }
.overlay-menu.open li:nth-child(4) a { animation-delay: .33s; }
.overlay-nav li a:hover { color: var(--olive); padding-left: 16px; }
@keyframes menuItem { to { transform: translateY(0); } }
.overlay-foot {
  margin-top: 44px; display: flex; gap: 26px; flex-wrap: wrap;
  opacity: 0; transition: opacity .4s ease .45s;
}
.overlay-menu.open .overlay-foot { opacity: 1; }
.overlay-foot a { color: #9aa589; font-size: .95rem; }
.overlay-foot a:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .overlay-menu { transition: none; }
  .overlay-nav li a { transition: color .2s ease; }
  .overlay-menu.open li a { animation: none; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(124,138,85,.34), transparent 58%),
    radial-gradient(700px 420px at 0% 110%, rgba(53,94,52,.16), transparent 55%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 100px 0 84px;
}
.hero h1 { max-width: 16ch; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-card {
  position: relative; color: #e9ece1; border-radius: var(--radius); padding: 32px;
  background:
    radial-gradient(500px 280px at 100% 0%, rgba(124,138,85,.4), transparent 60%),
    linear-gradient(155deg, var(--forest-2), var(--forest));
  box-shadow: var(--shadow);
  border: 1px solid rgba(124,138,85,.25);
}
.hero-card h3 { color: #fff; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-card li:last-child { border-bottom: 0; }
.hero-card .tick { color: var(--olive); font-weight: 900; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: .2s ease; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--olive));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c7d0ac; }
.card:hover::before { transform: scaleX(1); }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand), var(--forest-2));
  color: var(--cream); margin-bottom: 18px; font-size: 1.5rem;
  box-shadow: 0 8px 18px rgba(20,33,17,.22);
}
.card:nth-child(3n+2) .ico { background: linear-gradient(150deg, var(--olive), var(--olive-dk)); }
.card:nth-child(3n) .ico   { background: linear-gradient(150deg, var(--forest-2), var(--brand)); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .num {
  counter-increment: step; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(150deg, var(--brand), var(--olive)); color: #fff; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 8px 16px rgba(53,94,52,.28);
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: .2rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price--featured {
  border-color: transparent; box-shadow: var(--shadow); position: relative; color: var(--cream);
  background:
    radial-gradient(500px 280px at 100% 0%, rgba(124,138,85,.35), transparent 60%),
    linear-gradient(155deg, var(--forest-2), var(--forest));
}
.price--featured h3, .price--featured .amount { color: #fff; }
.price--featured .muted, .price--featured .from { color: #c3cdb2 !important; }
.price--featured li { color: #e6ebda; border-color: rgba(255,255,255,.12); }
.price--featured li .tick { color: var(--olive); }
.price--featured .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--olive); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px;
}
.price h3 { font-size: 1.3rem; }
.price .amount { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 6px 0 2px; }
.price .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price .from { font-size: .85rem; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.price li:last-child { border-bottom: 0; }
.price li .tick { color: var(--brand); font-weight: 900; }
.price .btn { margin-top: auto; }

/* ---------- CTA band ---------- */
.cta {
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(124,138,85,.32), transparent 60%),
    linear-gradient(160deg, var(--forest-2), var(--forest));
  color: #eef1e8; border-radius: var(--radius); padding: 60px; text-align: center;
  border: 1px solid rgba(124,138,85,.2);
}
.cta h2 { color: #fff; }
.cta p { color: #cfd6c4; max-width: 56ch; margin-inline: auto; }

/* ---------- FAQ (Aufklapp-Liste) ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .2s ease;
}
.faq details[open] { border-color: #c7d0ac; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brand); font-size: 1.6rem; font-weight: 700; line-height: 1;
  transition: transform .25s ease;
}
.faq details[open] summary { color: var(--brand); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq .faq-body p { margin: 0; }

/* ---------- Kontakt auf Startseite ---------- */
.contact-cta { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.contact-cta__list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.contact-cta__list li { display: flex; align-items: center; gap: 8px; color: #dfe6d2; font-weight: 600; }
.contact-cta__list .tick { color: var(--olive); font-weight: 900; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  border: 1px solid rgba(124,138,85,.2); color: var(--ink);
}
.contact-card h3 { margin-top: 0; color: var(--ink); }
.contact-card .field label { color: var(--ink); }
.contact-card .consent label { color: var(--muted); }

/* ---------- Contact (Kontaktseite) ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fcfdfa; transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(53,94,52,.14);
}
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; flex: 0 0 auto; }
.contact-aside { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-aside h3 { margin-top: 0; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-weight: 700; margin-top: 14px; }
.contact-aside dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; }
.legal h2 { margin-top: 2em; font-size: 1.4rem; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink); }
.note {
  background: var(--bg-mute); border-left: 4px solid var(--olive); border-radius: 8px;
  padding: 14px 18px; color: var(--muted); font-size: .92rem; margin: 1.4em 0;
}
.placeholder { background: #fff7d6; padding: 1px 6px; border-radius: 4px; font-weight: 600; color: #6b5a00; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(700px 360px at 95% 0%, rgba(124,138,85,.16), transparent 60%),
    var(--forest);
  color: #c8cfbd; padding: 60px 0 28px;
}
.site-footer a { color: #dfe5d4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { height: 40px; width: 40px; border-radius: 9px; }
.footer-brand span { color: #fff; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-brand span .wm-2 { color: var(--olive); }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .88rem; color: #9aa589;
}
.footer-bottom a { color: #9aa589; }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero {
  background:
    radial-gradient(700px 360px at 92% -20%, rgba(124,138,85,.28), transparent 58%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line); padding: 68px 0 58px;
}
.page-hero .lead { margin-top: .6rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .contact-cta { grid-template-columns: 1fr; }
  .grid--3, .pricing { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 62px 0; }
  .nav { height: 70px; }
  .nav-cta-btn { display: none; }      /* CTA wandert ins Overlay-Menü */
  .grid--3, .grid--2, .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 42px 24px; }
  .wordmark { font-size: 1.05rem; letter-spacing: .14em; }
}
