/* teslafans.ch – News (Block „Aktuell“ auf der Startseite, Archiv, Einzelseiten)
   Farben und Knöpfe wie auf der Startseite. Stand: 22.11.2026 */

/* ---------- Gemeinsam: Post-Inhalt ---------- */
.post-bild {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #E4E4E7;
  margin: 0 0 12px;
}
.post-text p { margin: 0 0 14px; }
.post-text a, .zitiert a, .unterzeile a { color: #B8122B; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.post-text a:hover, .zitiert a:hover { color: #1C1C1E; }
.zitiert { color: #5A5A5F; font-size: 15px; margin: 0 0 14px; }
.knoepfe { display: grid; gap: 12px; margin-top: 18px; }
.btn.folgen { margin-top: 12px; }

/* ---------- Gemeinsam: Linkzeile im Kopf aller Seiten ---------- */
.kopflinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  font-size: 16px;
  font-weight: 600;
}
.kopflinks a { color: #1C1C1E; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.kopflinks a:hover { border-bottom-color: #E31937; }
.kopflinks a:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 3px; border-radius: 4px; }
/* Startseite: zwischen Motto und Block „Aktuell“, breiter als die schmale Spalte */
.wrap .kopflinks {
  width: 100vw;
  max-width: 680px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 16px;
  margin: 0 0 20px;
}
/* News-Seiten: eigene Zeile direkt unter dem roten Balken */
body.news > .kopflinks {
  padding: 12px 20px;
  border-bottom: 1px solid #E4E4E7;
  background: #F7F7F8;
}

/* ---------- Startseite: Block „Aktuell“ ---------- */
.aktuell {
  width: 100vw;
  max-width: 680px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 32px;
  padding: 20px 20px 22px;
  border: 1.5px solid #E4E4E7;
  border-radius: 18px;
  background: #F7F7F8;
}
@media (max-width: 720px) {
  /* schmal: normale Breite der Spalte, leicht über den Rand gezogen (kein 100vw, sonst Querscrollen) */
  .aktuell { width: auto; left: auto; transform: none; margin-left: -12px; margin-right: -12px; padding: 16px 16px 18px; }
  .wrap .kopflinks { width: auto; left: auto; transform: none; padding: 0; }
}
.aktuell-kicker {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #B8122B;
  text-transform: uppercase;
}
.aktuell h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 14px; }
.aktuell h2 a { color: inherit; text-decoration: none; }
.aktuell h2 a:hover { text-decoration: underline; }
.aktuell .post-bild { background: #fff; }
@media (min-width: 560px) {
  .aktuell .knoepfe { grid-template-columns: 1fr 1fr; }
}

/* ---------- News-Seiten ---------- */
body.news {
  --red: #E31937; --red-dark: #B8122B; --ink: #1C1C1E; --ink-soft: #5A5A5F;
  --line: #E4E4E7; --paper: #FFFFFF; --paper-soft: #F7F7F8; --focus: #1D4ED8;
  margin: 0;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.news * { box-sizing: border-box; }
.kopf {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(20px, calc((100vw - 680px) / 2));
}
.kopf a { color: #fff; text-decoration: none; font-weight: 700; }
.kopf a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
.marke { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.marke img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.seite { max-width: 680px; margin: 0 auto; padding: 28px 20px 48px; }
body.news h1 { font-size: 30px; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 18px; }
.post-meta { color: var(--ink-soft); font-size: 15px; margin: 0 0 6px; }
.unterzeile { color: var(--ink-soft); margin: -8px 0 24px; }
.post .post-bild { margin-bottom: 20px; }
@media (min-width: 560px) {
  .post .knoepfe { grid-template-columns: 1fr 1fr; }
}

body.news .btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 17px;
  transition: border-color 120ms ease, background 120ms ease;
}
body.news .btn:hover { border-color: var(--ink); }
body.news .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
body.news .btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
body.news .btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
body.news .btn svg { width: 26px; height: 26px; flex: 0 0 26px; fill: currentColor; }
body.news .btn small { display: block; font-weight: 400; font-size: 14px; opacity: 0.8; margin-top: 2px; }
body.news .btn .label { flex: 1; }
body.news .btn .arrow { opacity: 0.45; }
body.news .primary .arrow { opacity: 0.85; }

.blaettern { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.nav-link {
  display: block; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35;
}
.nav-link:hover { border-color: var(--ink); }
.nav-link small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-bottom: 2px; }
.nav-link.rechts { text-align: right; }

.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.karte {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start;
  padding: 12px; border: 1.5px solid var(--line); border-radius: 16px;
  color: var(--ink); text-decoration: none;
  transition: border-color 120ms ease;
}
.karte:hover { border-color: var(--ink); }
.karte:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.karte img { width: 100%; height: auto; border-radius: 10px; display: block; border: 1px solid var(--line); }
.karte-text { display: block; min-width: 0; }
.karte:not(:has(img)) { grid-template-columns: 1fr; }
.karte small { display: block; color: var(--ink-soft); font-size: 14px; }
.karte strong { display: block; font-size: 18px; line-height: 1.25; margin: 2px 0 6px; }
.karte-text > span { display: block; color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
@media (max-width: 560px) {
  .karte { grid-template-columns: 1fr; }
}

body.news footer {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft); text-align: center;
}
body.news footer p { margin: 0 0 8px; }
body.news footer a { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) {
  body.news .btn, .karte { transition: none; }
}
