/* ==========================================================
   Klang-Chaode Gottenheim e.V.
   Direction: warm editorial / contemporary European
   Palette: paper cream, deep navy ink, clay accent
   ========================================================== */

:root {
  --paper: #f3eee4;
  --paper-2: #ebe3d4;
  --white: #fbf9f4;
  --ink: #1b2a41;
  --ink-2: #243754;
  --ink-soft: #4a5871;
  --clay: #c4572f;
  --clay-dark: #a54624;
  --peach: #e8a07c;
  --line: rgba(27, 42, 65, 0.16);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(72px, 9vw, 130px);
  --radius: 6px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  background: var(--clay);
  color: #fff;
  border: 2px solid var(--clay);
  border-radius: 999px;
  font: 600 0.95rem/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-small { padding: 11px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(243, 238, 228, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(27, 42, 65, 0.08); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.brand-text small { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 100px) 0 clamp(56px, 7vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--clay);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--clay); }

.hero-lead {
  max-width: 600px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-facts div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border: 0; margin: 0; padding: 0; }
.hero-facts dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.hero-facts dd { font-family: var(--font-display); font-size: 1.15rem; }

.hero-visual { position: relative; }
.arch {
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  aspect-ratio: 480 / 620;
  box-shadow: 18px 18px 0 var(--peach);
}
.arch svg { width: 100%; height: 100%; }

.hero-badge {
  position: absolute;
  left: -28px; bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Strip ---------- */
.strip { background: var(--ink); color: var(--paper); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
}
.strip span { color: var(--peach); }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 18px;
}
.section-label.light { color: var(--peach); }

.section h2 { font-size: clamp(2rem, 4vw, 3.3rem); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { margin-bottom: 20px; }
.section-intro { color: var(--ink-soft); font-size: 1.12rem; max-width: 640px; }
.section-intro.light { color: rgba(243, 238, 228, 0.78); }

/* ---------- About ---------- */
.about { background: var(--white); border-block: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}
.about-head { position: sticky; top: calc(var(--header-h) + 32px); }
.about-head h2 { margin-bottom: 36px; }

.about-art svg { width: 100%; height: auto; border-radius: var(--radius); }
.about-art figcaption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }

.about-body > * + * { margin-top: 22px; }
.about-body .lead { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.5; color: var(--ink); }
.about-body p { color: var(--ink-soft); }
.about-body .lead { color: var(--ink); }

.pull {
  margin-block: 38px !important;
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--clay);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

.about-panels { display: grid; gap: 16px; margin-top: 36px; }
.panel {
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  transition: transform .3s ease, border-color .3s ease;
}
.panel:hover { transform: translateX(6px); border-left-color: var(--clay); }
.panel h3 { font-size: 1.3rem; margin-bottom: 6px; }
.panel p { font-size: 1rem; }

/* ---------- Services (editorial list) ---------- */
.service-list { border-top: 1px solid var(--ink); }

.service {
  display: grid;
  grid-template-columns: 90px 1.4fr 0.8fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding: clamp(28px, 3.5vw, 44px) 12px;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding-left .3s ease;
}
.service:hover { background: var(--paper-2); padding-left: 24px; }

.service-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  color: var(--clay);
  line-height: 1;
}
.service h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.service p { color: var(--ink-soft); max-width: 620px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tags li {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Benefits (dark) ---------- */
.benefits { background: var(--ink); color: var(--paper); }

.benefits-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.benefit {
  grid-column: span 2;
  padding: 30px 28px 34px;
  border: 1px solid rgba(243, 238, 228, 0.22);
  border-radius: var(--radius);
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.benefit:nth-child(4) { grid-column: 2 / span 2; }
.benefit:nth-child(5) { grid-column: 4 / span 2; }
.benefit:hover { background: var(--ink-2); border-color: var(--peach); transform: translateY(-4px); }

.benefit-num { display: block; font-family: var(--font-display); font-style: italic; color: var(--peach); font-size: 1.1rem; margin-bottom: 18px; }
.benefit h3 { font-size: 1.45rem; margin-bottom: 10px; }
.benefit p { color: rgba(243, 238, 228, 0.76); font-size: 1rem; }

/* ---------- Involved ---------- */
.involved-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
}
.involved-intro h2 { margin-bottom: 20px; }
.involved-intro p:not(.section-label) { color: var(--ink-soft); margin-bottom: 30px; max-width: 520px; }

.steps { counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 28px 0 28px 84px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 24px;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.4rem;
  transition: background .3s ease;
}
.steps li:hover::before { background: var(--clay); }
.steps h3 { font-size: 1.5rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-info h2 { margin-bottom: 18px; }
.contact-info .section-intro { margin-bottom: 36px; }

.contact-card {
  font-style: normal;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--clay);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-card dl { display: grid; gap: 18px; }
.contact-card dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.contact-card a { color: var(--clay-dark); font-weight: 600; text-underline-offset: 3px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 10px 10px 0 var(--ink);
}
.contact-form h3 { font-size: 1.7rem; margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(27, 42, 65, 0.3);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(196, 87, 47, 0.2);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }

.field.check { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; }
.field.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--clay); }
.field.check label { font-weight: 400; margin: 0; font-size: 0.95rem; }
.field.check .error { grid-column: 1 / -1; }

.error { color: #b3261e; font-size: 0.85rem; min-height: 0; margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1f6b3a; }
.form-note { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(243, 238, 228, 0.82); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--paper); margin-bottom: 10px; }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); margin-bottom: 16px; }
.site-footer li + li { margin-top: 8px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--peach); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 22px;
  border-top: 1px solid rgba(243, 238, 228, 0.18);
  font-size: 0.88rem;
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit, .benefit:nth-child(4), .benefit:nth-child(5) { grid-column: auto; }
  .benefit:nth-child(5) { grid-column: 1 / -1; }
  .service { grid-template-columns: 70px 1fr; }
  .tags { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, max-height .3s ease, visibility .3s;
  }
  .main-nav.open { max-height: 480px; visibility: visible; opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 20px; }

  .hero-grid, .about-grid, .involved-grid, .contact-grid, .benefits-head { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-badge { left: -8px; }
  .about-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; }
  .hero-facts div { border: 0; margin: 0; padding: 0; }
  .strip-inner { justify-content: flex-start; font-size: 1rem; }
  .strip span { display: none; }
  .strip-inner p { padding-right: 12px; }
  .service { grid-template-columns: 1fr; padding-inline: 0; }
  .service:hover { padding-left: 0; }
  .tags { grid-column: auto; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit:nth-child(5) { grid-column: auto; }
  .steps li { padding-left: 70px; }
  .steps li::before { width: 46px; height: 46px; }
  .contact-form { box-shadow: 6px 6px 0 var(--ink); }
  .contact-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pull { font-size: 1.3rem; }
  .brand-text strong { font-size: 1.1rem; }
}
