/* ===================================================================
   Christlicher Studentenkreis Köln — styles.css
   Farben stammen aus dem CSK-Logo. / Colours taken from the CSK logo.
   =================================================================== */

:root {
  --orange:      #e0603a;
  --orange-dark: #9c3a2c;
  --sage:        #8c9d83;
  --sage-dark:   #5f7355;
  --cream:       #fdf7f0;
  --paper:       #ffffff;
  --ink:         #2e2a27;
  --ink-soft:    #5f5751;
  --line:        #ead9c9;
  --radius:      14px;
  --maxw:        740px;
}

/* --- Sprachumschaltung: zeigt nur die aktive Sprache ---------------
   --- Language switching: only the active language is shown ------- */
html[lang="de"] [lang="en"] { display: none; }
html[lang="en"] [lang="de"] { display: none; }

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--orange-dark); }

h1, h2 { line-height: 1.25; }

/* --- Sprachumschalter / language switch --------------------------- */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
}
.langswitch {
  display: flex;
  gap: 4px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.langswitch button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.langswitch button:hover { color: var(--orange-dark); }
.langswitch button[aria-pressed="true"] {
  background: var(--orange);
  color: #fff;
}
.langswitch button:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 2px;
}

/* --- Kopfbereich / header ----------------------------------------- */
.hero {
  text-align: center;
  padding: 38px 20px 30px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  color: var(--orange-dark);
  letter-spacing: 0.01em;
}
.hero-sub {
  margin: 6px 0 0;
  color: var(--sage-dark);
  font-size: 1.05rem;
}

/* --- Abschnitte / sections ---------------------------------------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.section { margin: 38px 0; }
.section h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

.section-intro { margin-top: 32px; }
.lead {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  text-align: center;
  color: var(--ink);
}

/* Flex + gap statt Abständen: ausgeblendete Sprachblöcke erzeugen so
   keine Lücke. / Flex + gap instead of margins: hidden language blocks
   then produce no gap. */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-text { margin: 0; }

/* --- Fakten-Liste / facts list ------------------------------------ */
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  align-items: baseline;
}
.facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-dark);
  font-weight: 600;
  padding-top: 2px;
}
.facts dd { margin: 0; }

.dates {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.dates li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
}
.dates li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* --- Karte / map --------------------------------------------------- */
.map {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  line-height: 0;
}
.map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}
.map-link {
  margin: 10px 0 0;
  text-align: right;
  font-size: 0.95rem;
}

/* --- Kontakt / contact --------------------------------------------- */
.contact {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}
.contact-item:hover { color: var(--orange-dark); }
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Trägergemeinde / sponsoring church ---------------------------- */
.sponsor {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}
.sponsor:hover { border-color: var(--sage); }
.sponsor img {
  width: 84px;
  height: 84px;
  flex: none;
}
.sponsor p { margin: 0; }
.sponsor-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
}

/* --- Fuß / footer --------------------------------------------------- */
footer {
  margin-top: 48px;
  padding: 24px 20px 30px;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
footer p { margin: 2px 0; }
.footer-legal { margin-top: 10px; display: flex; gap: 18px; justify-content: center; }

/* --- Mobil / mobile ------------------------------------------------- */
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 28px 18px 24px; }
  .hero-logo { width: 118px; }
  .facts {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .facts dd { margin-bottom: 12px; }
  .facts dd:last-child { margin-bottom: 0; }
  .sponsor {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .map iframe { height: 240px; }
  .map-link { text-align: center; }
}
