/* ==========================================================================
   Ask! Wissens[wirk]stadt Davos
   Farben und Schriften über die Variablen in :root anpassen.
   Mobile first: Grundstyles gelten fürs Handy, grössere Bildschirme
   über min-width Media Queries.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-dark: #1b3a45;
  --color-darker: #142d36;
  --color-green: #1de9a0;
  --color-green-dark: #0b6e4f;
  --color-light: #eef8f4;
  --color-white: #ffffff;

  --color-bg: var(--color-light);
  --color-text: var(--color-dark);
  --color-muted: #4a6670;
  --color-primary: var(--color-green);
  --color-primary-contrast: var(--color-dark);

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 58rem;
  --gutter: 1.25rem;
  --radius: 1rem;
  --radius-pill: 999px;
  --space-section: 4rem;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
    --space-section: 6rem;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }
p { margin: 0 0 1em; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 3px;
}

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

.section { padding-block: var(--space-section); }
.section--dark { background: var(--color-dark); color: var(--color-light); }
.section--light { background: var(--color-light); }
.section--green { background: var(--color-green); color: var(--color-dark); }
.section--white { background: var(--color-white); }

.lead { font-size: 1.15rem; max-width: 26em; }
.section h2 { max-width: 15em; }
.section--flush-top { padding-top: 0; }
.text { max-width: 34em; }

.accent { color: var(--color-green); }
.wirk { color: var(--color-green); font-weight: 400; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  margin: 0 0 0.75rem;
}
.section--dark .eyebrow { color: var(--color-green); }
.section--green .eyebrow { color: var(--color-dark); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Spam-Schutz für Formspark: für Menschen unsichtbar */
.honeypot { display: none !important; }

/* ---------- Header ---------- */
.site-header { background: var(--color-dark); color: var(--color-light); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-light);
}
.logo strong { font-weight: 700; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  color: var(--color-dark);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button--small { font-size: 0.85rem; padding: 0.55rem 1rem; }

/* ---------- Hero ---------- */
.hero { padding-block: 3rem 4.5rem; }
.hero h1 { margin-bottom: 0.45em; max-width: 9em; }
.hero .lead { margin-bottom: 2.75rem; }

/* ---------- Sprechblasen ---------- */
.bubbles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0.75rem;
  align-items: start;
}

.bubble {
  position: relative;
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  bottom: -0.6rem;
  border-style: solid;
  border-width: 0.65rem 0.75rem 0 0;
  border-color: var(--color-white) transparent transparent transparent;
}
.bubble--dark { background: var(--color-dark); color: var(--color-light); }
.bubble--dark::after { border-top-color: var(--color-dark); }

.bubble__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}
.bubble__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

/* Klickbare Fragen (details/summary, funktioniert auch ohne JavaScript) */
.question { transition: background-color 0.2s ease, transform 0.2s ease; }
.question::after { transition: border-color 0.2s ease; }
.question summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 0.9;
  color: var(--color-green-dark);
  transition: transform 0.2s ease;
}
.question:hover { transform: translateY(-2px); }
.question[open] { background: var(--color-green); }
.question[open]::after { border-top-color: var(--color-green); }
.question[open] summary::after { transform: rotate(45deg); color: var(--color-dark); }
.question__answer {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0.6rem 0 0;
  animation: fade-in 0.25s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 48rem) {
  .bubbles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .bubble__title { font-size: 1.15rem; }
}

/* ---------- Name ist Programm ---------- */
.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--color-white);
  border-radius: 1.25rem;
  padding: 1.6rem 1.6rem 1.8rem;
}
.card p:last-child { margin-bottom: 0; }
.card--dark { background: var(--color-dark); color: var(--color-light); }
.card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.card__title--big { font-size: 3.2rem; line-height: 1; }
.card__title--acronym { font-size: 1.35rem; line-height: 1.3; }
.card__text { font-size: 0.95rem; }

.nowrap { white-space: nowrap; }
.letter {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-dark);
  border-radius: 0.2rem;
  padding: 0 0.15em;
  margin-right: 0.05em;
}

@media (min-width: 48rem) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card__title--big { font-size: 3.4rem; }
}

/* ---------- Konzept ---------- */
.places { margin-top: 2.5rem; }

/* ---------- Jahresthema ---------- */
.big-title { font-size: clamp(2.8rem, 10vw, 5.4rem); margin-bottom: 0.3em; }

/* ---------- Fragen sammeln / Formular ---------- */
.ask {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.ask p:last-child { margin-bottom: 0; }

@media (min-width: 48rem) {
  .ask { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; }
.form input, .form textarea, .form select {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--color-green);
  border-radius: 0.75rem;
  background: var(--color-white);
  color: var(--color-dark);
}
.form input::placeholder { color: #6d838b; }
.form .button { justify-self: start; padding-inline: 1.2rem; }

/* ---------- Inhaltsseiten (Impressum, Danke, 404) ---------- */
.page { padding-block: var(--space-section); min-height: 50vh; }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page a { color: var(--color-green-dark); }
.page address { font-style: normal; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-darker);
  color: var(--color-light);
  padding-block: 1.5rem;
  font-size: 0.85rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--color-green); }
.site-footer p { margin: 0; }

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