/* Kieznah — Zeitungs-Look, hell, ein Rotton als Akzent */

:root {
  --paper: #FAF7F1;
  --paper-deep: #F1ECE2;
  --ink: #1C1B18;
  --muted: #6E675C;
  --line: #DDD5C7;
  --accent: #F7931A;      /* Bitcoin-Orange: Punkt, Linien, Rahmen */
  --accent-text: #A85400; /* dunkle Stufe fuer Schrift, Kontrast 5:1 auf Papier */
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

/* Sprachumschaltung: Standard DE, .lang-en blendet um */
.en { display: none; }
html.lang-en .de { display: none; }
html.lang-en .en { display: revert; }
html.lang-en span.en, html.lang-en a.en { display: inline; }

a { color: var(--ink); }
a:hover { color: var(--accent-text); }

/* Kopf */
header.masthead {
  border-bottom: 3px double var(--ink);
  padding: 28px 24px 18px;
  text-align: center;
  position: relative;
}
.masthead .dateline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.masthead h1.brand, .masthead .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 64px);
  letter-spacing: .01em;
  margin: 0;
  line-height: 1;
}
.masthead .brand a { text-decoration: none; color: var(--ink); }
.masthead .brand .dot { color: var(--accent); }
.masthead .claim {
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

#langToggle {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  padding: 6px 10px;
  cursor: pointer;
}
#langToggle:hover { border-color: var(--accent); color: var(--accent-text); }

nav.rubriken {
  border-bottom: 1px solid var(--ink);
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
nav.rubriken a { text-decoration: none; }

/* Layout */
main { max-width: 1060px; margin: 0 auto; padding: 0 24px 60px; }
article.single { max-width: 720px; }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 10px;
}

/* Aufmacher */
.lead {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}
.lead h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}
.lead h2 a { text-decoration: none; }
.lead p { max-width: 640px; margin: 0 0 8px; color: var(--muted); font-size: 19px; }
.mehr {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* Teaser-Raster */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 36px;
  padding: 8px 0;
}
.teaser {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.teaser h3 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.teaser h3 a { text-decoration: none; }
.teaser p { margin: 0; color: var(--muted); font-size: 16px; }
.teaser.bald h3 { color: var(--muted); }
.tag-bald {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--muted);
  border-radius: 2px;
  padding: 2px 7px;
  vertical-align: middle;
}

.section-title {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding: 34px 0 8px;
  margin: 0 0 4px;
}

/* Kiez-Leiste */
.kieze {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 22px 0 8px;
}
.kiez {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 14px 12px;
  background: var(--paper-deep);
  text-decoration: none;
  display: block;
}
.kiez b { display: block; font-size: 17px; margin-bottom: 4px; }
.kiez span { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.kiez:hover { border-color: var(--accent); }

/* Über */
.ueber {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 30px 0 0;
  max-width: 640px;
}
.ueber p { color: var(--muted); font-size: 16px; }

/* Artikelseiten */
.artikelkopf { padding: 48px 0 10px; }
.artikelkopf h2 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}
.vorspann { font-size: 20px; color: var(--muted); margin: 0 0 8px; }
.artikelmeta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  margin-bottom: 10px;
}
article .inhalt h3 {
  font-size: 24px;
  margin: 34px 0 10px;
  line-height: 1.25;
}
article .inhalt h3 .nr { color: var(--accent-text); font-variant-numeric: tabular-nums; margin-right: 6px; }
article .inhalt p { margin: 0 0 14px; }
article .inhalt ul { padding-left: 20px; margin: 0 0 14px; }
article .inhalt li { margin-bottom: 6px; }
.hinweis {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 8px 14px;
  margin: 26px 0;
  background: var(--paper-deep);
}

/* Markenzeichen: Klassiker und Kieznah-Tipp nebeneinander */
.paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px 0 30px;
}
.paar > div { border-radius: 8px; padding: 16px 18px 4px; }
.paar .klassiker { border: 1px solid var(--line); }
.paar .tipp {
  background: #FFF4E6;
  border: 2px solid var(--accent);
  box-shadow: 0 6px 18px rgba(247, 147, 26, .14);
}
.paar .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.paar .tipp .label { color: var(--accent-text); }
.paar .tipp .label::before { content: "\2665  "; color: var(--accent); }
.paar h4 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.paar p { font-size: 16px; margin: 0 0 12px; }
article .inhalt h3 .herz { color: var(--accent); margin-left: 4px; }
@media (max-width: 640px) { .paar { grid-template-columns: 1fr; } }

/* Lautstärke-Anzeige der Kieze: 5 Punkte im Bitcoin-Orange */
.laut { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 10px; }
.laut i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); }
.laut i.an { background: var(--accent); }
.kiez .laut { display: flex; margin: 2px 0 6px; }
.laut.klein { gap: 3px; margin-left: 4px; }
.laut.klein i { width: 7px; height: 7px; border-width: 1.2px; }

/* Kiez-Atlas */
.bezirk-titel { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 30px; }
.bezirk-intro { font-style: italic; color: var(--muted); }
.wertung { font-family: var(--sans); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 10px !important; }
.wertung .faktor { white-space: nowrap; }
.wertung-legende { font-family: var(--sans); font-size: 15px; }
.rangliste-wrap { overflow-x: auto; margin: 10px 0 26px; border: 1px solid var(--line); border-radius: 8px; }
.rangliste { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 14px; }
.rangliste th, .rangliste td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.rangliste tbody tr:last-child th, .rangliste tbody tr:last-child td { border-bottom: 0; }
.rangliste tbody th { font-weight: 600; min-width: 150px; }
.rangliste tbody th a { text-decoration: none; }
.rangliste .bezirk { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.rangliste thead th { background: var(--paper-deep); position: sticky; top: 0; }
.rangliste thead button {
  font: inherit; font-size: 12px; font-weight: 600; background: none; border: 0; padding: 0;
  color: var(--ink); cursor: pointer; text-align: left; white-space: nowrap;
}
.rangliste thead button::after { content: " \2195"; color: var(--muted); }
.rangliste thead button.aktiv { color: var(--accent-text); }
.rangliste td .laut { margin-left: 0; }
/* Kiez-Namen bleiben beim seitlichen Wischen stehen */
.rangliste tbody th, .rangliste thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); }
.rangliste thead th:first-child { background: var(--paper-deep); z-index: 2; }
@media (max-width: 640px) { .rangliste tbody th { min-width: 130px; box-shadow: 4px 0 6px -4px rgba(0, 0, 0, .15); } }

/* Signature: persönliche Empfehlung des Herausgebers */
.signature {
  border-top: 4px solid var(--accent);
  background: #FFF4E6;
  border-radius: 8px;
  padding: 22px 22px 8px;
  margin: 22px 0 30px;
}
.signature .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 8px;
}
.signature h3 { margin-top: 0 !important; }
.signature blockquote {
  margin: 0 0 16px;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  font-size: 19px;
}
.transparenz { font-family: var(--sans); font-size: 13px; color: var(--muted); }
/* Persönliche Erinnerung in Kiez-Geschichten */
.erinnerung {
  margin: 4px 0 22px;
  padding: 14px 18px;
  background: #FFF4E6;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.erinnerung::before { content: "Erinnerung · Memory"; display: block; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.foto { margin: 0 0 16px; }
.foto img { width: 100%; height: auto; border-radius: 6px; display: block; }
.foto figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Kontaktformular */
.formular { display: grid; gap: 6px; margin: 10px 0 18px; font-family: var(--sans); }
.formular label { font-size: 14px; font-weight: 600; margin-top: 10px; }
.formular input, .formular textarea {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.formular button {
  justify-self: start;
  margin-top: 6px;
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
}
.formular button:hover { background: #E8850F; }
.formular-hinweis { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { font-family: var(--sans); padding: 12px 14px; border-radius: 6px; background: #EAF6EC; border-left: 3px solid #2E7D32; }
.meldung.fehler { background: #FDECEA; border-left-color: #C62828; }

/* Weiterlesen */
.weiter {
  border-top: 2px solid var(--ink);
  margin-top: 46px;
  padding-top: 8px;
}

/* Fuß */
footer {
  border-top: 3px double var(--ink);
  padding: 26px 24px 40px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
footer nav { margin-bottom: 10px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .masthead { padding-top: 56px; }
}
