/* ==========================================================================
   Cancer Social Club – Styles V1
   Farben und Schriften ausschließlich laut CI-Dokument.
   ========================================================================== */

/* ---------- Schriften (lokal, SIL Open Font License, siehe fonts/) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
}

/* ---------- CI-Farben ---------- */
:root {
  --coral: #E2694B;      /* Hauptakzent: Call-to-Actions */
  --teal: #213B3D;       /* Anker: Headlines, Text, dunkle Flächen */
  --ochre: #E8A94B;      /* sparsamer Akzent: Highlights, Tags */
  --sage: #8FA88A;       /* sparsamer Akzent: sekundäre Elemente */
  --cream: #F7EFE5;      /* Standard-Hintergrund */
  --white: #FFFFFF;

  --line: rgba(33, 59, 61, 0.18);        /* Deep Teal, transparent */
  --line-strong: rgba(33, 59, 61, 0.6);

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --max: 1040px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

/* Ausgeblendete Elemente bleiben immer ausgeblendet */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.875rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.1875rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: var(--gutter);
  top: 12px;
  background: var(--white);
  padding: 10px 16px;
  z-index: 10;
}

/* Kurze Labels/Kicker – einzige erlaubte Stelle für Versalien */
.kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}

/* ---------- Buttons ---------- */
/* Weiß auf Coral nur groß + fett (WCAG „große Schrift“) */
.button {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--white);
  background: var(--coral);
  border: 2px solid var(--coral);
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
}
.button:hover { background: #d45c3f; border-color: #d45c3f; text-decoration: none; }
.button:disabled { opacity: 0.55; cursor: not-allowed; }

.button--ghost {
  color: var(--teal);
  background: transparent;
  border-color: var(--teal);
}
.button--ghost:hover { background: var(--teal); border-color: var(--teal); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--teal);
}
.brand img { width: 40px; height: 40px; }

/* Smartphone: Menü in zwei ordentlichen Reihen à drei Punkte */
.site-nav ul {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; }

/* ---------- Abschnitte ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-intro { max-width: 680px; }

/* ---------- Einstieg ---------- */
.intro {
  text-align: center;
  padding: 56px 0 48px;
}
.intro-icon { width: 88px; height: 88px; margin: 0 auto 24px; }
.intro h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.intro .lead {
  max-width: 660px;
  margin: 0 auto 28px;
  font-size: 1.125rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid transparent;
}
.tag--teal  { background: var(--teal);  color: var(--cream); }
.tag--ochre { background: var(--ochre); color: var(--teal); }
.tag--sage  { background: var(--sage);  color: var(--teal); }

/* ---------- Nächstes Treffen ---------- */
.event {
  background: var(--teal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 28px;
}
.event .kicker { color: var(--ochre); }
.event h2 { color: var(--cream); }
.event-facts {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}
.event-facts div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.event-facts dt { font-family: var(--font-head); font-weight: 600; min-width: 5.5em; }
.event-facts dd { margin: 0; }

/* ---------- Karten ---------- */
.cards {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card-accent {
  display: block;
  width: 36px;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.card-accent--coral { background: var(--coral); }
.card-accent--ochre { background: var(--ochre); }
.card-accent--sage  { background: var(--sage); }
.card-accent--teal  { background: var(--teal); }

.news-date { font-size: 0.9375rem; margin-bottom: 0.4em; }
.more-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-head);
  font-weight: 600;
}

/* ---------- Platzhalter (bis finale Texte vorliegen) ---------- */
.placeholder {
  border: 2px dashed var(--ochre);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(232, 169, 75, 0.12);
}
.placeholder::before {
  content: "Platzhalter";
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.event .placeholder { background: rgba(232, 169, 75, 0.18); }

/* Platzhalter innerhalb eines Satzes */
.placeholder-inline {
  background: rgba(232, 169, 75, 0.35);
  border-radius: 4px;
  padding: 0 4px;
}

/* ---------- Formulare ---------- */
.form {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  gap: 18px;
}
.form h3 { margin: 0; }
.form-intro { margin: 0; }
.field { display: grid; gap: 6px; }
.field label {
  font-weight: 500;
}
.field .required { color: var(--teal); font-weight: 400; }
.field .hint { font-size: 0.9375rem; margin: 0; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--teal);
  background: var(--white);
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checkbox input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--teal);
}

.form-note { font-size: 0.9375rem; margin: 0; }

.form-row { display: grid; gap: 18px; } /* ab Tablet zweispaltig */

/* Fehlermeldungen und Rückmeldungen (Coral nur als Rahmen, Text in Deep Teal) */
.field-error {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-left: 10px;
  border-left: 4px solid var(--coral);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--coral); }
.checkbox .field-error { flex-basis: 100%; }
.checkbox:has(.field-error) { flex-wrap: wrap; }

.form-status { margin: 0; }
.form-status:empty { display: none; }
.form-status--error {
  padding: 12px 14px;
  border: 2px solid var(--coral);
  border-radius: 10px;
}

.form-success {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--sage);
  border-radius: var(--radius);
  padding: 24px;
}
.form-success h3 { margin-bottom: 0.4em; }
.form-success p { margin: 0; }

/* Honeypot gegen Bots – für Menschen unsichtbar */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Kontakt ---------- */
.contact-mail {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 0.9375rem;
}
.site-footer .container {
  display: grid;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a,
.link-button {
  display: inline-block;
  padding: 6px 0;
}
.link-button {
  font: inherit;
  color: var(--teal);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  margin: 0;
}

/* ---------- Unterseiten ---------- */
.page-head { padding: 48px 0 8px; }
.page-head .lead { max-width: 680px; font-size: 1.125rem; }

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-weight: 600;
}

/* Fließtext-Seiten (Newsbeitrag, Impressum, Datenschutz) */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.375rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- News ---------- */
.card h2,
.card h3 { font-size: 1.1875rem; font-weight: 600; margin-bottom: 0.4em; }
.card h2 a,
.card h3 a { text-decoration: none; }
.card h2 a:hover,
.card h3 a:hover { text-decoration: underline; }

.article-teaser { font-size: 1.1875rem; }
.article-images {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}
.article-images figure { margin: 0; }
.article-images img { border-radius: 12px; }
.article-images figcaption { font-size: 0.9375rem; margin-top: 6px; }

/* ---------- Partner ---------- */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
}
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.partner-logo--empty {
  font-family: var(--font-head);
  font-weight: 600;
  border: 2px dashed var(--line-strong);
}

/* Partner-Leiste auf der Startseite: Desktop nebeneinander, Smartphone wischbar (ohne JavaScript) */
.partner-strip {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 4px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.partner-strip__item {
  flex: 0 0 70%;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.partner-strip__item a { display: block; text-decoration: none; }
.partner-strip__item .partner-logo { margin-bottom: 10px; }
.partner-strip__name {
  font-family: var(--font-head);
  font-weight: 600;
}

/* ---------- Team ---------- */
.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.team-card h2 { font-size: 1.375rem; margin: 16px 0 12px; }
.team-card .placeholder { text-align: left; }
.team-photo {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  border: 6px solid var(--coral);
  object-fit: cover;
}
.team-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--teal);
}
.team-quote {
  margin: 0;
  padding: 0;
  font-size: 1.0625rem;
}
.team-quote p { margin: 0; }
.team-note { margin-top: 24px; }

/* ---------- Gruppenregeln ---------- */
.rules {
  list-style: none;
  counter-reset: rule;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.rules li {
  counter-increment: rule;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.rules h2 {
  margin-top: 0;
  font-size: 1.1875rem;
  font-weight: 600;
}
.rules h2::before {
  content: counter(rule) ".";
  color: var(--teal);
  margin-right: 0.4em;
}
.rules p:last-child { margin-bottom: 0; }

/* ---------- Sprachwechsel ---------- */
.lang-switch {
  order: 2;
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid var(--teal);
  border-radius: 999px;
  padding: 2px 10px;
}
.lang-switch:hover { background: var(--teal); color: var(--cream); }
.site-header .brand { order: 1; }
.site-nav { order: 3; width: 100%; }

/* ---------- Cookie-Banner ---------- */
.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 30px rgba(33, 59, 61, 0.2);
}
.consent h2 { font-size: 1.125rem; margin-bottom: 0.4em; }
.consent p { font-size: 0.9375rem; margin-bottom: 0.8em; }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Beide Buttons bewusst gleich gewichtet (keine Bevorzugung einer Wahl) */
.consent-actions .button {
  flex: 1 1 180px;
  font-size: 1rem;
  padding: 12px 18px;
}

/* ---------- Ab Tablet ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding: 72px 0; }
  .intro { padding: 72px 0 64px; }
  .event { padding: 40px; }
  .form { padding: 32px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .partner-strip__item { flex: 1 0 220px; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .page-head { padding-top: 64px; }
  .site-nav { order: 2; width: auto; margin-left: auto; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .site-nav a { font-size: 1rem; }
  .lang-switch { order: 3; margin-left: 0; }
  .article-images { grid-template-columns: repeat(2, 1fr); }
  .consent { left: 24px; right: auto; bottom: 24px; padding: 24px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
