/* PACEFOLK Agenturwebsite v3 – warm, erdig, ruhig; Boho-Akzent durch das Folk-Siegel (Bildzeichen „A – Dezent“).
   Ein Akzent pro Bereich: das Siegel im Einstieg, Bogenrahmen nur in der Galerie. Keine externen Abrufe. */
:root {
  --cream: #faf5ee;       /* Seitengrund */
  --sand: #f0e6da;        /* zweite Fläche */
  --ink: #3a2e27;         /* Fließtext, dunkles Braun */
  --muted: #5e4f45;       /* Text zweiter Ordnung */
  --taupe: #6b5647;       /* Überschriften, Knöpfe, Fuß */
  --hero: #7a6252;        /* Einstiegsfläche und Kopf */
  --line: #ddd0c2;        /* feine Linien */
  --on-dark: #fbf6ef;     /* Text auf dunklen Flächen */
  --on-dark-soft: #f1e7dc;
  --focus: #2e2520;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "P052", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 6.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* Ankerziele nicht unter der fixierten Kopfzeile verstecken */
[id] { scroll-margin-top: 5rem; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--taupe); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: var(--on-dark); padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 42rem; }
.center { text-align: center; }

h1, h2, h3 { margin: 0; font-weight: 400; }
h2 {
  font-family: var(--serif); color: var(--taupe);
  font-size: clamp(1.875rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: 0.005em;
}
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
p { margin: 0; }

/* Kopf: gleiche Fläche wie der Einstieg, bleibt beim Scrollen oben */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--hero); color: var(--on-dark); }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); }
.site-header a:hover { color: #fff; }
.site-header :focus-visible { outline-color: var(--on-dark); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; text-decoration: none; }
.brand-mark { height: 44px; width: auto; }
.brand-word { height: 22px; width: auto; }

.main-nav ul { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { text-decoration: none; font-size: 0.9375rem; padding: 0.5rem 0; display: inline-block; white-space: nowrap; }
.main-nav a:hover { text-decoration: underline; }
.nav-contact { border: 1px solid currentColor; border-radius: 3px; padding: 0.45rem 1.1rem !important; }
.nav-contact:hover { background: var(--on-dark); color: var(--hero) !important; text-decoration: none !important; }
/* Zwei Login-Einstiege in dieselbe geschützte Web-App (#125), ruhig abgesetzt vom Kontakt; der Trennstrich nur vor dem ersten */
.nav-login { font-weight: 600; }
.nav-login::before { content: ""; display: inline-block; width: 1px; height: 1.1em; background: rgba(251, 246, 239, 0.45); margin-right: clamp(1.25rem, 3vw, 2.5rem); vertical-align: -0.2em; }
.nav-login.nav-login--creator::before { display: none; }
/* v6.1: Login-Ziel noch nicht live – Hinweis statt Link */
.nav-login--soon { opacity: 0.75; font-weight: 500; }
.footer-soon { opacity: 0.75; }
.contact-cta { margin: 0 0 0.5rem; }

.menu-toggle {
  display: none; align-items: center; gap: 0.6rem;
  background: none; border: 0; color: inherit; font: inherit; font-size: 0.9375rem;
  padding: 0.75rem 0; cursor: pointer; min-height: 44px;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Kopf: Menü bis 1023px - mit zwei Login-Einstiegen passt die volle Leiste erst darüber in eine Zeile (#125). */
@media (max-width: 63.99rem) {
  .brand-mark { height: 38px; width: auto; }
  .brand-word { height: 18px; }
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hero); border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .main-nav a { display: block; padding: 0.85rem 0; font-size: 1.125rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
  .main-nav li:last-child a { border-bottom: 0; }
  .nav-contact { border: 0; border-radius: 0; padding: 0.85rem 0 !important; }
  .nav-contact:hover { background: none; color: #fff !important; }
  .nav-login::before { display: none; }
  /* Ohne JavaScript bleibt die Navigation sichtbar und umbrechend. */
  html:not(.js) .header-row { flex-wrap: wrap; padding-bottom: 0.5rem; }
  html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 1.25rem; padding: 0; }
  html:not(.js) .main-nav a { border: 0; font-size: 0.9375rem; }
}

/* Einstieg: kurz, linksbündig; Aussage und Kontaktknopf führen den Blick */
.hero { background: var(--hero); color: var(--on-dark); padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.hero-seal { display: none; }
@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(3rem, 7vw, 7rem); }
  /* Das Siegel ist der eine Akzent der Seite: groß, ruhig, ohne Bewegung. */
  .hero-seal { display: block; height: clamp(18rem, 30vw, 26rem); width: auto; opacity: 0.92; }
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 6.6vw, 5rem); line-height: 1.04; letter-spacing: -0.01em;
  max-width: 14ch; text-wrap: balance;
}
.hero-lead { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 34rem; color: var(--on-dark-soft); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; align-items: center; }
.hero-link { color: var(--on-dark); }
.hero-link:hover { color: #fff; }
.hero :focus-visible { outline-color: var(--on-dark); }

/* Schaltflächen */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.6rem; border-radius: 3px;
  background: var(--taupe); color: #fff;
  font-weight: 500; font-size: 1rem; text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.button:hover { background: var(--ink); color: #fff; }
.button--light { background: var(--on-dark); color: var(--ink); }
.button--light:hover { background: #fff; color: var(--ink); }
.button--large { min-height: 56px; padding: 1rem 2rem; font-size: 1.0625rem; }

/* Abschnitte: Überschrift links, Einleitung rechts */
.section { padding: var(--section) 0; }
.section + .section:not(.section--principles):not(.section--steps):not(.section--founders) { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head p { color: var(--muted); max-width: var(--measure); font-size: 1.0625rem; }
@media (min-width: 60rem) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; align-items: end; }
}

/* Prinzipien: der Unterschied, mit eigener Fläche */
.section--principles { background: var(--sand); }
.principles-grid { display: grid; gap: 2.5rem; }
.principles-intro h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1rem; }
.principles-intro p { color: var(--muted); max-width: 28rem; font-size: 1.0625rem; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.principle { border-top: 1px solid var(--taupe); padding: 1.25rem 0 1.5rem; }
.principle:last-child { border-bottom: 1px solid var(--taupe); }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 2.4vw, 1.75rem); color: var(--taupe); margin-bottom: 0.35rem; }
.principle p { color: var(--muted); }
.principles-wellbeing { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--ink); max-width: 40rem; }
.principles-wellbeing strong { font-weight: 600; color: var(--taupe); }
@media (min-width: 60rem) {
  .principles-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 5rem; row-gap: 3rem; }
  .principles-wellbeing { grid-column: 2; }
}

/* Vorteile: Begriff links, Erklärung rechts – keine Kartenwand */
.benefits { margin: 0; }
.benefit { display: grid; gap: 0.4rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit dt { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; color: var(--taupe); }
.benefit dd { margin: 0; color: var(--muted); max-width: var(--measure); }
@media (min-width: 48rem) {
  .benefit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: baseline; }
}

/* Gründer: kompakte typografische Lösung bis zum echten Foto */
.founders-grid { display: grid; gap: 2rem; align-items: start; }
.founders-quote { margin: 0; padding-left: 1.25rem; border-left: 2px solid var(--taupe); }
.founders-quote p { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; color: var(--taupe); max-width: 22ch; }
.founders-copy h2 { margin-bottom: 1rem; }
.founders-copy p { max-width: var(--measure); color: var(--muted); }
.founders-copy p + p { margin-top: 1rem; }
.founders-photo { margin: 0; }
.founders-photo img { width: 100%; height: auto; border-radius: 3px; }
@media (min-width: 60rem) {
  .founders-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; }
}

/* Vertretene Creator: je Person eine Zeile, Kanäle als ruhige Links */
.creator-list { list-style: none; margin: 0; padding: 0; }
.creator { display: grid; gap: 0.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.creator:last-child { border-bottom: 1px solid var(--line); }
.creator h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--taupe); }
.creator-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.creator-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0.35rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fffdf9;
}
.creator-links a:hover { border-color: var(--taupe); color: var(--taupe); }
@media (min-width: 48rem) {
  .creator { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 3rem; }
}

/* Einblicke: eigene, freigegebene Originalbilder mit Beitragslink; Bogenrahmen als leiser Boho-Bezug zum Siegel */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); }
.gallery-item a { display: block; text-decoration: none; color: var(--ink); }
.gallery-item img, .gallery-item .media-platzhalter {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px; background: var(--sand);
}
.gallery-caption { display: block; margin-top: 0.6rem; font-size: 0.875rem; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.gallery-item a:hover .gallery-caption { color: var(--taupe); text-decoration-color: currentColor; }
.gallery-item a:focus-visible { outline-offset: 6px; }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.video { margin: clamp(2.5rem, 6vw, 4rem) 0 0; display: grid; gap: 1.25rem; align-items: center; }
.video-frame { background: var(--ink); border-radius: 4px; overflow: hidden; width: 100%; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.video-frame--hoch { aspect-ratio: 9 / 16; max-width: 22rem; }
.video-frame--quer { aspect-ratio: 16 / 9; }
.video figcaption { color: var(--muted); max-width: var(--measure); }
.video-title { display: block; font-family: var(--serif); font-size: clamp(1.375rem, 2.4vw, 1.75rem); color: var(--taupe); margin-bottom: 0.4rem; }
@media (min-width: 48rem) {
  .video:has(.video-frame--hoch) { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 3rem; }
}

/* Ablauf: echte Reihenfolge, daher nummeriert */
.section--steps { background: var(--sand); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: schritt; }
.step { counter-increment: schritt; }
.step::before {
  content: counter(schritt);
  display: grid; place-items: center; margin-bottom: 1rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--taupe); color: var(--taupe);
  font-family: var(--serif); font-size: 1.25rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); max-width: 20rem; }
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

/* Fragen */
.faq-grid { display: grid; gap: 1.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; color: var(--taupe); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.25rem; color: var(--muted); max-width: var(--measure); }
@media (min-width: 60rem) {
  .faq-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; }
}

/* Kontakt */
.section--contact h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.contact-lead { margin: 1.25rem auto 2rem; font-size: 1.125rem; color: var(--muted); max-width: var(--measure); }
.contact-address { margin-top: 1.25rem; color: var(--muted); }
.contact-address a { color: var(--ink); overflow-wrap: anywhere; }
.contact-brands { margin: 3.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 34rem; }
.contact-brands h3 { margin-bottom: 0.75rem; color: var(--taupe); }
.contact-brands p { color: var(--muted); margin-bottom: 1rem; }
.text-link { font-weight: 600; color: var(--taupe); }

/* Fuß */
.site-footer { background: var(--taupe); color: #efe5da; padding: 3rem 0 3.5rem; font-size: 0.9375rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--on-dark); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; }
.footer-mark { height: 38px; width: auto; }
.footer-word { height: 17px; width: auto; }
.footer-grid p + p { margin-top: 0.35rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 0.3rem 0; }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1fr auto; }
}

/* Rechtliche Entwurfsseiten */
.legal { padding: clamp(3rem, 8vw, 6rem) 0 var(--section); }
.legal h1 { font-family: var(--serif); color: var(--taupe); font-size: clamp(1.75rem, 7vw, 3.25rem); line-height: 1.15; margin-bottom: 2rem; overflow-wrap: break-word; hyphens: auto; }
.legal h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { max-width: 40rem; color: var(--muted); }
.legal p + p { margin-top: 0.75rem; }
.header-row .text-link { color: inherit; font-weight: 500; }
.draft-banner {
  background: #fff4d6; color: #4a3a05; border: 1px solid #c9a227;
  padding: 1rem 1.25rem; border-radius: 3px; margin-bottom: 2rem; max-width: 40rem;
}
.draft-banner strong { color: #3a2d00; }
.missing { background: #fff4d6; color: #4a3a05; padding: 0 0.25rem; }

/* Fehlerseite */
.notfound { padding: var(--section) 0; }
.notfound img { height: 7rem; width: auto; margin-bottom: 2rem; }
.notfound h1 { font-family: var(--serif); color: var(--taupe); font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 1rem; }
.notfound p { color: var(--muted); max-width: var(--measure); margin-bottom: 2rem; }
.legal a { overflow-wrap: anywhere; }

/* Kontaktformular */
.contact-form { margin: 2.5rem auto 0; max-width: 34rem; display: grid; gap: 1.25rem; text-align: left; }
.form-anliegen { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.form-anliegen legend { font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; padding: 0; }
.form-wahl { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; cursor: pointer; }
.form-wahl input { width: 1.15rem; height: 1.15rem; accent-color: var(--taupe); margin: 0; }
.form-feld { display: grid; gap: 0.4rem; }
.form-feld label { font-weight: 600; color: var(--ink); }
.form-optional { font-weight: 400; color: var(--muted); }
.form-feld input, .form-feld textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fffdf9;
  border: 1px solid #b9a898; border-radius: 3px; padding: 0.7rem 0.85rem; min-height: 48px;
}
.form-feld textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.form-feld input:focus-visible, .form-feld textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.form-feld [aria-invalid="true"] { border-color: #9b2c1f; border-width: 2px; }
.form-hilfe { font-size: 0.9375rem; color: var(--muted); }
.form-fehler { font-size: 0.9375rem; color: #8a2417; font-weight: 600; }
.form-falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-datenschutz { font-size: 0.9375rem; color: var(--muted); }
.contact-form .button { justify-self: start; }
.contact-form .button:disabled { opacity: 0.7; cursor: progress; }
.form-meldung { padding: 0.9rem 1.1rem; border-radius: 3px; border: 1px solid; }
.form-meldung--erfolg { background: #eef4e8; border-color: #6f8a55; color: #2f3f1f; }
.form-meldung--fehler { background: #fbecea; border-color: #b0493b; color: #6e1d12; }
.form-meldung--hinweis { background: #fff4d6; border-color: #c9a227; color: #4a3a05; }
.section--contact .contact-address { margin-top: 2rem; }
