/* ==========================================================
   gloriversum – Stylesheet
   Farben aus dem Logo: Senf, Dunkelgrün, Pflaume, Koralle
   ========================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("../assets/fonts/fraunces-italic-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("../assets/fonts/fraunces-italic-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --senf: #c8bb4c;
  --senf-hell: #ddd27e;
  --gruen: #47573f;
  --gruen-dunkel: #2f3b2a;
  --pflaume: #5a3a57;
  --koralle: #e46c4f;
  --creme: #fbf5d8;
  --papier: #f7f2df;
  --text: #2f3b2a;
  --text-leise: #5d6a55;

  --schrift-display: "Fraunces", Georgia, "Times New Roman", serif;
  --schrift-text: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --breite: 1160px;
  --rand: clamp(16px, 4vw, 48px);
  --radius: 28px;
}

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

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

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--schrift-text);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 1.4rem + 6vw, 6.4rem); }
h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }

/* Akzentwort in der Logo-Schrift */
.akzent {
  font-family: var(--schrift-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
.leise { color: var(--text-leise); }

.container {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gruen); color: var(--creme);
  padding: 8px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--senf);
  transition: box-shadow .3s;
}
.site-header.gescrollt { box-shadow: 0 6px 24px rgba(47, 59, 42, .18); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 88px;
}
.logo img { height: 64px; width: auto; }

.nav ul {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 32px);
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  text-decoration: none; font-size: 1.05rem; color: var(--gruen-dunkel);
  padding: 8px 2px; border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--gruen-dunkel); }
.nav .btn { border: 0; padding: 10px 20px; color: var(--creme); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 48px; height: 48px; padding: 12px; color: var(--gruen-dunkel);
}
.nav-toggle span {
  display: block; height: 2px; background: currentColor; margin: 5px 0;
  transition: transform .3s, opacity .3s;
}
.nav-offen .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-offen .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-offen .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .logo img { height: 48px; }
  .header-inner { min-height: 72px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--senf);
    transform: translateY(-110%); transition: transform .4s ease;
    overflow-y: auto;
  }
  .nav-offen .nav { transform: translateY(0); }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 8px; padding: 32px var(--rand); }
  .nav a { font-size: 1.6rem; }
  .nav .btn { margin-top: 16px; font-size: 1.1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 1.05rem/1 var(--schrift-text);
  text-decoration: none; cursor: pointer;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-koralle { background: var(--koralle); color: #fff; }
.btn-koralle:hover { background: #d65b3e; }
.btn-gruen { background: var(--gruen); color: var(--creme); }
.btn-gruen:hover { background: var(--gruen-dunkel); }
.btn-rand { border-color: currentColor; background: transparent; }
.btn .pfeil { transition: transform .2s; }
.btn:hover .pfeil { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #5b6b4f 0%, var(--gruen) 45%, var(--gruen-dunkel) 100%);
  color: var(--creme);
  min-height: min(92vh, 900px);
  display: flex; align-items: center;
  padding: 120px 0;
}
.hero.klein { min-height: 0; padding: 100px 0 80px; }
.hero-inhalt { position: relative; z-index: 2; text-align: center; }
.hero h1 { max-width: 14ch; margin: 0 auto 0.4em; }
.hero .unterzeile {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem);
  max-width: 38ch; margin: 0 auto 2em; opacity: .9;
}
.hero .buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-rand { color: var(--creme); }
.hero .eyebrow { color: var(--senf-hell); }

.orbits {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.orbits svg { width: 150%; max-width: 1800px; min-width: 900px; height: auto; opacity: .55; }
.orbits .bahn { fill: none; stroke: var(--senf-hell); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.orbits .planet { stroke: var(--senf-hell); stroke-width: 3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .einblenden { opacity: 1 !important; transform: none !important; }
}

/* ---------- Sektionen ---------- */
.sektion { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sektion.senf { background: var(--senf); }
.sektion.gruen { background: var(--gruen); color: var(--creme); }
.sektion.pflaume { background: var(--pflaume); color: var(--creme); }
.sektion.creme { background: var(--creme); }

.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px; color: var(--koralle);
}
.gruen .eyebrow, .pflaume .eyebrow { color: var(--senf-hell); }
.senf .eyebrow { color: var(--pflaume); }

.lead { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.7rem); line-height: 1.45; max-width: 34ch; }

.zwei-spalten {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.zwei-spalten.umgedreht > :first-child { order: 2; }
@media (max-width: 860px) {
  .zwei-spalten { grid-template-columns: 1fr; }
  .zwei-spalten.umgedreht > :first-child { order: 0; }
}

/* Intro-Zitat */
.intro { text-align: center; }
.intro p.gross {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.8rem); line-height: 1.3;
  max-width: 26ch; margin: 0 auto;
}

/* ---------- Karten ---------- */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 960px) { .karten { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .karten { grid-template-columns: 1fr; } }

.karte {
  background: var(--creme); border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s, box-shadow .3s;
  color: var(--text);
}
.karte:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(47, 59, 42, .14); }
.karte h3 { margin: 0; }
.karte p { margin: 0; color: var(--text-leise); }
.karte .mehr { margin-top: auto; padding-top: 12px; font-weight: 500; text-decoration: none; color: var(--gruen); }
.karte .mehr:hover { text-decoration: underline; }
.karte.highlight { background: var(--pflaume); color: var(--creme); }
.karte.highlight p { color: rgba(251, 245, 216, .85); }
.karte.highlight .mehr { color: var(--senf-hell); }

.icon-planet {
  width: 56px; height: 56px; border-radius: 50%; position: relative; margin-bottom: 8px;
  border: 3px solid var(--senf-hell);
}
.icon-planet::after {
  content: ""; position: absolute; inset: -10px -22px; border: 2px solid currentColor;
  border-radius: 50%; opacity: .25; transform: rotate(-14deg);
}
.icon-planet.koralle { background: var(--koralle); color: var(--koralle); }
.icon-planet.pflaume { background: var(--pflaume); color: var(--pflaume); }
.icon-planet.gruen { background: var(--gruen); color: var(--gruen); }
.icon-planet.senf { background: var(--senf); color: var(--senf); }

/* ---------- Foto-Platzhalter ---------- */
.foto {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 78% 22%, var(--koralle) 0 7%, transparent 7.4%),
    radial-gradient(circle at 20% 80%, var(--pflaume) 0 5%, transparent 5.4%),
    radial-gradient(ellipse 70% 38% at 50% 50%, transparent 0 60%, rgba(221, 210, 126, .55) 60.5% 61.5%, transparent 62%),
    radial-gradient(ellipse 95% 52% at 50% 50%, transparent 0 66%, rgba(221, 210, 126, .45) 66.5% 67.5%, transparent 68%),
    linear-gradient(160deg, #5f704f, var(--gruen) 60%, var(--gruen-dunkel));
  display: flex; align-items: flex-end;
}
.foto.quer { aspect-ratio: 16 / 10; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto .hinweis {
  position: relative; margin: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(47, 59, 42, .7); color: var(--creme); font-size: .8rem;
}

/* ---------- Listen / Schritte ---------- */
.haken { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.haken li { padding-left: 36px; position: relative; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px;
  border-radius: 50%; background: var(--koralle); box-shadow: 0 0 0 4px rgba(228, 108, 79, .2);
}

.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; counter-reset: schritt; }
.schritt { border-top: 2px solid currentColor; padding-top: 20px; counter-increment: schritt; }
.schritt::before {
  content: "0" counter(schritt); display: block; font-family: var(--schrift-display);
  font-style: italic; font-weight: 800; font-size: 2.4rem; color: var(--koralle); margin-bottom: 8px;
}
.gruen .schritt::before, .pflaume .schritt::before { color: var(--senf-hell); }

/* Werte-Raster */
.werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; margin-top: 40px; }
.wert h3 { font-family: var(--schrift-display); font-style: italic; font-weight: 800; }

/* Qualifikationen */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--senf); color: var(--gruen-dunkel); font-size: .95rem; }

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 46ch; margin: 0 auto 2em; }
.cta-band .buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Kontakt ---------- */
.kontakt-wege { display: grid; gap: 16px; margin-top: 32px; }
.kontakt-weg {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px;
  border-radius: 20px; background: rgba(251, 245, 216, .08); text-decoration: none;
  border: 1px solid rgba(251, 245, 216, .2); transition: background .2s;
}
.kontakt-weg:hover { background: rgba(251, 245, 216, .16); }
.kontakt-weg .label { font-size: .85rem; opacity: .75; display: block; }
.kontakt-weg .wert-text { font-size: 1.2rem; font-weight: 500; word-break: break-word; }
.kontakt-weg .punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--koralle); flex: none; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 760px; }
.rechtstext h2 { font-size: 1.6rem; margin-top: 2em; }
.rechtstext h3 { font-size: 1.2rem; margin-top: 1.5em; }
.platzhalter { background: #fde3db; color: #8a2e17; padding: 0 6px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gruen-dunkel); color: var(--creme); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 220px; border-radius: 14px; margin-bottom: 20px; }
.site-footer h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--senf-hell); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-unten {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(251, 245, 216, .15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; opacity: .7;
}

/* ---------- Einblenden beim Scrollen ---------- */
.einblenden { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.einblenden.sichtbar { opacity: 1; transform: none; }
.no-js .einblenden { opacity: 1; transform: none; }
