/* =========================================================
   Sümbül Meyer – Basis-Stylesheet
   Aufbau: 1 Fonts · 2 Tokens · 3 Reset/Basis · 4 Layout
           5 Header/Navigation · 6 Hero · 7 Link-Liste
           8 Inhaltsseiten · 9 Footer · 10 Utilities/Motion
   Mobile first: Basis = Smartphone, Erweiterungen per min-width.
   ========================================================= */

/* ---------- 1 · Fonts (lokal gehostet, DSGVO-konform) ---------- */
@font-face { font-family: "Allura"; src: url("../fonts/allura-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- 2 · Design-Tokens ---------- */
:root {
  /* Farbwelt (CI) */
  --hyazinthe: #700885;      /* Leitfarbe */
  --hyazinthe-dark: #57066a;
  --flieder: #E8D9EE;        /* Ergänzung */
  --elfenbein: #F8F4EC;      /* Basis */
  --anthrazit: #2B252D;      /* Schrift */
  --anthrazit-soft: #5d5460;
  --white: #fffdf9;
  --line: rgba(112, 8, 133, .16);

  /* Typografie */
  --font-script: "Allura", "Brush Script MT", cursive;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1rem, .95rem + .3vw, 1.125rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-claim: clamp(1.625rem, 1.2rem + 2vw, 2.75rem);
  --fs-hook: clamp(2.25rem, 1.5rem + 3.6vw, 4rem);

  /* Abstände, Radien, Schatten */
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem; --space-5: 3rem; --space-6: 4.5rem;
  --radius: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(43, 37, 45, .04), 0 8px 24px -12px rgba(112, 8, 133, .22);
  --shadow-hover: 0 2px 4px rgba(43, 37, 45, .05), 0 16px 32px -14px rgba(112, 8, 133, .35);

  --container: 72rem;
  --container-narrow: 30rem;
  --logo-h: 7.25rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3 · Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--anthrazit);
  background-color: var(--elfenbein);
  background-image:
    radial-gradient(60rem 36rem at 50% -12rem, rgba(232, 217, 238, .85), transparent 70%),
    radial-gradient(30rem 30rem at 110% 60%, rgba(232, 217, 238, .45), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--hyazinthe); text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; margin: 0 0 var(--space-2); text-wrap: balance; }
p { margin: 0 0 var(--space-2); }
:focus-visible { outline: 2px solid var(--hyazinthe); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--hyazinthe); color: var(--white); padding: .6rem 1rem; border-radius: 8px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- 4 · Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }
main { flex: 1; }
.section { padding-block: var(--space-5); }
.section--flush { padding-top: 0; }

/* Ornament-Trenner: feine Linie mit Punkt in der Mitte */
.ornament {
  display: flex; align-items: center; gap: .75rem;
  width: min(100%, 11rem); margin: var(--space-3) auto;
  color: var(--hyazinthe);
}
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.ornament span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }

/* ---------- 5 · Header & Navigation ----------
   Logo zentriert, Menü-Button rechts – auf allen Bildschirmgrößen.
   Header scrollt mit (nicht sticky), damit das große Logo keinen Platz frisst.
   Neue Seiten: nur einen <li> in .site-nav__list ergänzen. */
.site-header { position: relative; z-index: 50; padding-block: var(--space-3) var(--space-1); }
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand { grid-column: 2; display: block; text-decoration: none; border-radius: 12px; }
.brand__logo { width: auto; height: var(--logo-h); }

/* Menü-Button */
.nav-toggle {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 2.75rem; min-width: 2.75rem; padding: 0 .85rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, .7); color: var(--hyazinthe); cursor: pointer;
  font: 600 .75rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .25s, background-color .25s;
}
.nav-toggle:hover { border-color: rgba(112, 8, 133, .4); background: var(--white); }
.nav-toggle__label { display: none; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.1rem; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Menü-Panel: legt sich unter dem Header über den Inhalt */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--elfenbein);
  border-block: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(43, 37, 45, .25);
  padding: var(--space-2) 0 var(--space-4);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-nav__inner { width: min(100% - 2.5rem, 26rem); margin-inline: auto; text-align: center; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; }
.site-nav__link {
  display: block; padding: .9rem .25rem;
  font-family: var(--font-serif); font-size: 1.4rem;
  color: var(--anthrazit); text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--hyazinthe); }
.site-nav__link[aria-current="page"] { font-style: italic; }
.site-nav__cta { margin-top: var(--space-3); }

@media (min-width: 40em) {
  .nav-toggle__label { display: inline; }
  .nav-toggle { padding: 0 1.1rem; }
}

/* Kleiner Button (z. B. Header-CTA) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .6rem 1.4rem;
  font: 600 .8125rem/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius-pill); text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.btn--primary { background: var(--hyazinthe); color: var(--white); border: 1px solid var(--hyazinthe); }
.btn--primary:hover { background: var(--hyazinthe-dark); }
.btn--ghost { background: transparent; color: var(--hyazinthe); border: 1px solid var(--hyazinthe); }
.btn--ghost:hover { background: var(--hyazinthe); color: var(--white); }
.btn--block { width: 100%; }

/* ---------- 6 · Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  padding: var(--space-3) 0 var(--space-3);
}
/* großes, zartes Signet als Wasserzeichen */
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: url("../img/logo.svg") no-repeat;
  background-size: auto 130%;
  background-position: calc(50% + min(14rem, 30vw)) 0;
  opacity: .045;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 50%, transparent 95%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 50%, transparent 95%);
  pointer-events: none;
}
.hero__claim {
  font-family: var(--font-serif); font-style: italic; font-size: var(--fs-hook);
  color: var(--anthrazit); line-height: 1.12; margin: 0 auto; max-width: 14ch;
}
.hero__welcome { font-family: var(--font-script); font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem); color: var(--hyazinthe); line-height: 1; margin: 0 0 .5rem; }
.hero__lead { font-size: var(--fs-lead); color: var(--anthrazit-soft); max-width: 38ch; margin-inline: auto; }

/* ---------- 7 · Link-Liste (Linktree) ---------- */
.links { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: .875rem; }
.link-card {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.5rem; padding: .875rem 1.125rem .875rem .875rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--anthrazit); text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: rgba(112, 8, 133, .35); }
.link-card:active { transform: translateY(0); }
.link-card__icon {
  flex: none; display: grid; place-items: center;
  width: 2.875rem; height: 2.875rem; border-radius: 50%;
  background: var(--flieder); color: var(--hyazinthe);
}
.link-card__icon svg { width: 1.35rem; height: 1.35rem; }
.link-card__text { flex: 1; min-width: 0; display: grid; gap: .1rem; text-align: left; }
.link-card__title { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.link-card__desc { font-size: var(--fs-sm); color: var(--anthrazit-soft); line-height: 1.4; }
.link-card__arrow { flex: none; width: 1.1rem; height: 1.1rem; color: var(--hyazinthe); transition: transform .3s var(--ease); }
.link-card:hover .link-card__arrow { transform: translateX(3px); }

/* Hervorgehobene Karte (Primär-Aktion) */
.link-card--primary { background: var(--hyazinthe); border-color: var(--hyazinthe); color: var(--white); }
.link-card--primary .link-card__icon { background: rgba(255, 255, 255, .14); color: var(--white); }
.link-card--primary .link-card__desc { color: rgba(255, 253, 249, .78); }
.link-card--primary .link-card__arrow { color: var(--white); }
.link-card--primary:hover { border-color: var(--hyazinthe-dark); background: var(--hyazinthe-dark); }

.links__note { text-align: center; font-size: var(--fs-sm); color: var(--anthrazit-soft); margin-top: var(--space-3); }

/* ---------- 8 · Inhaltsseiten (Unterseiten) ---------- */
.page-head { text-align: center; padding: var(--space-5) 0 var(--space-3); }
.page-head__kicker { font-family: var(--font-script); font-size: clamp(2rem, 1.6rem + 2vw, 3rem); color: var(--hyazinthe); line-height: 1; margin: 0 0 .25rem; }
.page-head__title { font-size: var(--fs-h2); }
.prose { max-width: 40rem; margin-inline: auto; font-size: var(--fs-lead); }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--space-4); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); box-shadow: var(--shadow-soft);
}

/* ---------- 9 · Footer ---------- */
.site-footer { padding: var(--space-4) 0 var(--space-3); text-align: center; font-size: var(--fs-sm); color: var(--anthrazit-soft); }
.site-footer__brand { font-family: var(--font-script); font-size: 1.75rem; color: var(--hyazinthe); line-height: 1; margin-bottom: .5rem; }
.site-footer__legal { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; }
.site-footer a { color: var(--anthrazit-soft); text-decoration: none; }
.site-footer a:hover { color: var(--hyazinthe); text-decoration: underline; }

/* ---------- 10 · Utilities & Motion ---------- */
.br-md { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (min-width: 40em) {
  :root { --logo-h: 8.75rem; }
  .hero { padding-top: var(--space-4); }
  .br-md { display: inline; }
  .hero__claim { max-width: none; }
  .links { gap: 1rem; }
  .link-card { padding: 1rem 1.375rem 1rem 1rem; }
}

.reveal { animation: reveal .8s var(--ease) both; }
.reveal--d1 { animation-delay: .08s; } .reveal--d2 { animation-delay: .16s; }
.reveal--d3 { animation-delay: .24s; } .reveal--d4 { animation-delay: .32s; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
