/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F5EEE1;
  --bg-alt: #EDE3D0;
  --surface: #FBF8F1;
  --text: #382F26;
  --text-soft: #6E6252;
  --accent: #74815E;
  --accent-dark: #5A6548;
  --accent-soft: #E1E5D5;
  --border: #DCD0B4;
  --shadow: 0 8px 24px rgba(56, 47, 38, 0.08);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", Arial, sans-serif;

  --max-width: 1080px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { padding-left: 0; margin: 0 0 1em; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; color: var(--text); }
a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 0.6em;
}
.center { text-align: center; }
.section-intro { color: var(--text-soft); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 238, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark { color: var(--accent); flex-shrink: 0; }
.logo-word {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo-word-accent { color: var(--accent-dark); }

.primary-nav {
  display: flex;
  gap: 28px;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.primary-nav a:hover { color: var(--accent-dark); border-color: var(--accent); }

.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark) !important;
}
.footer-social {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 5px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost {
  background: none;
  color: var(--accent-dark);
  padding: 14px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--text); }
.btn-outline {
  background: none;
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  padding: 12.5px 30px;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 92px;
  background: var(--bg);
  text-align: center;
}
.hero-inner { max-width: 720px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  margin-bottom: 0.4em;
}
.hero-subline {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-bottom: 2em;
}
.hero-meta { margin-bottom: 2.2em; }
.hero-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; margin: 0; }
.hero-role { color: var(--text-soft); margin: 0.15em 0; }
.hero-location { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin-bottom: 0.9em;
}
.hero-reassurance {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}
.about-image img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  filter: grayscale(1);
}
.about-text p { color: var(--text-soft); }
.about-text h2 { color: var(--text); }
.pull-quote {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent-dark);
  border-left: 3px solid var(--accent);
  padding: 0.1em 0 0.1em 22px;
  margin: 1.7em 0;
  line-height: 1.5;
}

/* ---------- Accordion ---------- */
.accordion {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.accordion-header { margin: 0; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.accordion-trigger:hover { color: var(--accent-dark); }
.accordion-trigger-label {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  text-align: left;
}
.accordion-faq .accordion-trigger { font-size: 1rem; }
.accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.accordion-icon::before { width: 18px; height: 2px; top: 8px; left: 0; }
.accordion-icon::after { width: 2px; height: 18px; top: 0; left: 8px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: rotate(90deg); opacity: 0; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel-inner {
  padding: 0 24px 22px;
  color: var(--text-soft);
}
.accordion-panel-inner ul { margin: 0.6em 0 1em; }
.accordion-panel-inner li {
  list-style: none;
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.accordion-panel-inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Manifesto (Arbeitsweise) ---------- */
.manifesto {
  max-width: 640px;
  margin: 40px auto 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
  text-align: left;
}
.manifesto::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.03em 0.08em 0 0;
  color: var(--accent-dark);
  font-weight: 600;
}

/* ---------- Catch-all CTA (end of Schwerpunkte) ---------- */
.catchall-cta {
  text-align: center;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.catchall-cta p {
  color: var(--text-soft);
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-style: italic;
}

.kontakt-process {
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto 1.6em;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 250;
  display: none;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sticky-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta .btn { box-shadow: 0 10px 26px rgba(56, 47, 38, 0.25); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Two column (für wen / ziel) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.two-col p { color: var(--text-soft); }
.check-list { margin-bottom: 1.2em; }
.check-list li {
  list-style: none;
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Confidentiality ---------- */
.confidentiality { text-align: center; }
.confidentiality p { max-width: 680px; margin-left: auto; margin-right: auto; }
.disclaimer {
  font-size: 0.92rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}

/* ---------- Kontakt ---------- */
.kontakt { background: var(--accent-soft); }
.kontakt-inner { max-width: 640px; text-align: center; }
.kontakt-role { color: var(--text-soft); margin-top: -0.4em; }
.kontakt-location { color: var(--text-soft); }
.kontakt-lead { margin: 1.4em 0; }
.kontakt-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 28px;
  display: inline-block;
}
.kontakt-details p { margin: 0; }
.kontakt-details span { font-weight: 600; }
.kontakt-details em { font-style: normal; color: var(--text-soft); }

.kontakt-professionals {
  max-width: 460px;
  margin: 28px auto 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #E9E2D2;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-logo { color: #E9E2D2; }
.footer-logo .logo-word-accent { color: #C9D2B7; }
.footer-inner p { margin: 0; font-size: 0.9rem; color: #C9BFA9; width: 100%; text-align: center; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  order: 3;
  width: 100%;
  justify-content: center;
  border-top: 1px solid rgba(233, 226, 210, 0.15);
  padding-top: 18px;
  margin-top: 4px;
}
.footer-links a, .footer-links-btn {
  color: #C9BFA9;
  text-decoration: none;
  font-size: 0.88rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.footer-links a:hover, .footer-links-btn:hover { color: #E9E2D2; text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-page h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 0.3em; }
.legal-page .legal-updated { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 2.5em; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-page h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal-page p, .legal-page li { color: var(--text-soft); }
.legal-page ul, .legal-page ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.legal-page li { margin-bottom: 0.4em; }
.legal-page a { color: var(--accent-dark); }
.legal-page .placeholder { color: #A0562F; background: #F3E2D6; padding: 0 5px; border-radius: 4px; font-style: normal; }
.legal-page .back-home {
  display: inline-block;
  margin-bottom: 2em;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.legal-page .back-home:hover { text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(56, 47, 38, 0.12);
  padding: 20px 24px;
}
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text { margin: 0; flex: 1 1 380px; font-size: 0.92rem; color: var(--text-soft); }
.cookie-banner-text a { color: var(--accent-dark); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-cookie-solid, .btn-cookie-outline, .btn-cookie-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-solid {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-cookie-solid:hover { background: var(--accent-dark); }
.btn-cookie-outline {
  background: none;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-cookie-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-cookie-text {
  background: none;
  border: none;
  color: var(--text-soft);
  text-decoration: underline;
  padding: 10px 4px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(56, 47, 38, 0.45);
}
.cookie-modal-panel {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow);
}
.cookie-modal-panel h2 { margin-top: 0; }
.cookie-modal-panel p { color: var(--text-soft); font-size: 0.94rem; }
.cookie-category {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}
.cookie-category p { margin: 0; font-size: 0.88rem; }
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.cookie-toggle.is-on { background: var(--accent); }
.cookie-toggle.is-on .cookie-toggle-dot { transform: translateX(18px); }
.cookie-toggle-locked {
  background: var(--accent-soft);
  cursor: default;
}
.cookie-toggle-locked .cookie-toggle-dot { transform: translateX(18px); background: var(--accent); }

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions button { flex: 1 1 auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 280px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px 0; }
  .nav-toggle { display: flex; }
  .hero { padding: 72px 0 66px; }
  .section { padding: 60px 0; }
  .manifesto { font-size: 1.08rem; }
  .manifesto::first-letter { font-size: 2.8em; }
  .sticky-cta { display: block; }
  body { padding-bottom: 78px; }
}
