/* ===== Minimal modernisiert – gleiches Layout und gleicher Inhalt wie die 1:1-Website, nur Feinschliff =====
   Wird nach style.css geladen. Computer-Regeln gelten ab 1200 px, darunter bleibt die Handy-Ansicht der 1:1-Website
   (Logo + «☰ Menü»), nur mit der neuen Optik (Rot, runde Ecken, Punkte, Pfeile, Symbole). */
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; src: url(../fonts/source-sans-3-400-normal.woff2) format('woff2'); }
:root { --rot: #E3001B; --footer-rot: #E3001B; --radius: 10px; --schatten: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05); }

/* ---------- Gemeinsame Optik (Computer und Handy) ---------- */
/* Bildleiste, Kästen, Fotos: abgerundete Ecken, sanfter Schatten */
.slider { border-radius: var(--radius); box-shadow: var(--schatten); }
.kasten, .kachel { border-radius: var(--radius); box-shadow: var(--schatten); }
.kasten-bild, .titelbild { border-radius: 6px; object-fit: cover; }
.titelbild { border-radius: var(--radius); box-shadow: var(--schatten); }
.karte { border-radius: 6px; }

/* Punkte unter den Bildern: aktiver Punkt rot und breit */
.punkte { gap: 8px; height: 30px; padding-top: 12px; align-items: center; }
.punkte label { width: 10px; height: 10px; border-radius: 999px; background: #c4c4c4; animation: punkt-m 17.75s linear infinite; transition: width .3s, background .3s; }
.punkte label:hover { background: #8a8a8a; }
@keyframes punkt-m {
  0%, 16.901% { width: 28px; background: var(--rot); }
  20%, 96.901% { width: 10px; background: #c4c4c4; }
  100% { width: 28px; background: var(--rot); }
}
.bild-wahl:checked ~ .punkte label { animation: none; width: 10px; background: #c4c4c4; }
.bild-wahl:checked ~ .punkte label:hover { background: #8a8a8a; }
#bild-1:checked ~ .punkte label[for="bild-1"], #bild-2:checked ~ .punkte label[for="bild-2"], #bild-3:checked ~ .punkte label[for="bild-3"],
#bild-4:checked ~ .punkte label[for="bild-4"], #bild-5:checked ~ .punkte label[for="bild-5"] { width: 28px; background: var(--rot); }
@media (prefers-reduced-motion: reduce) { .bildleiste:not(:has(.bild-wahl:checked)) .punkte label:first-child { width: 28px; background: var(--rot); } }

/* ▶-Pfeile rot und kleiner, rücken beim Darüberfahren leicht nach rechts */
.pfeile a::before { content: '\25B6\FE0E'; width: 20px; font-size: 11px; color: var(--rot); vertical-align: 2px; transition: transform .15s; }
.pfeile a.ohne::before { content: none; }
.pfeile a:hover::before { transform: translateX(3px); }

/* Neue PDF- und Glühbirnen-Symbole (SVG) */
.pdf { width: 14px; height: 17px; margin: 0 2px 0 6px; vertical-align: -2px; }
.inhalt .pdf, .inhalt-breit .pdf { margin: 0 2px 0 2px; }
.bulb { width: 12px; height: 17px; margin-left: 5px; vertical-align: -1px; }

/* Kacheln der Bereichsseiten: beim Darüberfahren leicht angehoben */
.kachel { transition: box-shadow .2s, transform .2s; }
.kachel:hover, .kachel:focus-within { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 10px 24px rgba(0,0,0,.08); transform: translateY(-1px); }

/* Tastatur: gut sichtbarer Fokus */
a:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; border-radius: 3px; }

/* Startseite: etwas mehr Innenabstand in den Kästen */
.startseite .kasten { padding: 16px 16px 30px; }
.startseite .sidebar { padding-left: 20px; }

/* ---------- Computer ab 1200 px ---------- */
@media (min-width: 1200px) {
  /* Kopf: Name als echte Schrift statt Bild */
  .header { box-shadow: none; border-bottom: 1px solid #e3e3e3; }
  .banner > img:first-child { display: none; }
  .banner { display: flex; align-items: center; gap: 12px; color: #1e1e1e; }
  .banner .marke-icon { display: block; width: 76px; height: 102px; flex: none; }
  .marke-text { display: block; padding-top: 4px; }
  .marke-text b { display: block; font-size: 23px; line-height: 1.2; font-weight: 700; color: #1e1e1e; letter-spacing: -.005em; }
  .marke-text small { display: block; margin-top: 3px; font-size: 18.5px; line-height: 1.3; font-weight: 300; color: #1e1e1e; }

  /* Navigation: normale Schrift, feiner roter Strich, Pfeil bei Untermenüs */
  .nav { top: 104px; right: 0; align-items: center; gap: 4px; }
  .nav li { position: relative; }
  .nav > li > a { position: relative; padding: 9px 14px 12px; font-size: 19.5px; line-height: 24px; font-weight: 400; color: #1e1e1e; border-bottom: 0; transition: color .2s; }
  .nav > li > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rot); transform: scaleX(0); transition: transform .2s ease; }
  .nav > li > a[aria-haspopup] { padding-right: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px; }
  .nav > li:hover > a[aria-haspopup], .nav > li:focus-within > a[aria-haspopup] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23E3001B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .nav > li > a:hover, .nav > li:hover > a, .nav > li:focus-within > a { color: var(--rot); border-bottom: 0; }
  .nav > li.aktiv > a { color: #1e1e1e; border-bottom: 0; }
  .nav > li.aktiv:hover > a { color: var(--rot); }
  .nav > li:hover > a::after, .nav > li:focus-within > a::after, .nav > li.aktiv > a::after { transform: scaleX(1); }
  /* Untermenü: eckig, feiner Rahmen, rote Oberkante bündig mit dem Strich */
  .nav ul { top: calc(100% - 2px); left: 0; width: auto; min-width: 240px; padding: 6px 0; background: #fff; border: 1px solid #e3e3e3; border-top: 2px solid var(--rot); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
  .nav ul li { width: auto; }
  .nav ul a { padding: 9px 20px; font-size: 16.5px; line-height: 24px; font-weight: 400; color: #1e1e1e; border: 0; white-space: nowrap; transition: background .15s, color .15s; }
  .nav ul a:hover, .nav ul a:focus-visible, .nav ul li.aktiv > a { color: var(--rot); background: #F7F7F7; border: 0; }
  .nav > li:hover > ul, .nav > li:focus-within > ul { animation: aufklappen .15s ease-out; }
  @keyframes aufklappen { from { opacity: 0; } to { opacity: 1; } }

  /* Abstände Bildleiste: Bilder → Punkte → erster Kasten je 16 px */
  .punkte { margin-bottom: 12px; }

  /* Fuss: etwas mehr Luft */
  .footer { padding: 30px 0 32px; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) { .nav > li:hover > ul, .nav > li:focus-within > ul { animation: none; } .nav > li > a::after { transition: none; } }

/* ---------- Ab 1440 px: Logo und Navigation in einer Zeile ---------- */
@media (min-width: 1440px) {
  .header, .header .container { height: 96px; }
  .header .container { width: min(1400px, 100% - 24px); display: flex; align-items: stretch; justify-content: space-between; gap: 20px; }
  .banner, .nav { position: static; }
  .banner { flex: 0 1 auto; min-width: 0; }
  .banner .marke-icon { width: 60px; height: 80px; }
  .marke-text { padding-top: 0; }
  .marke-text b { font-size: 21px; white-space: nowrap; }
  .marke-text small { font-size: 16px; margin-top: 3px; white-space: nowrap; }
  .nav { flex: none; gap: 0; align-items: stretch; }   /* Menüpunkte so hoch wie der Kopf → roter Strich am unteren Kopfrand */
  .nav > li { display: flex; align-items: stretch; }
  .nav > li > a { display: flex; align-items: center; padding: 0 8px; font-size: 16px; white-space: nowrap; }
  .nav > li > a[aria-haspopup] { padding-right: 22px; background-position: right 7px center; }
  .deko { top: 305px; }   /* Kopf 55 px niedriger → Herz-Grafik mitverschieben */
}

/* ---------- Handy und Tablet bis 1199 px: Ansicht der 1:1-Website, nur Feinschliff ---------- */
@media (max-width: 1199px) {
  .punkte { gap: 8px; height: 30px; padding-top: 12px; }
  .startseite .kasten { padding: 12px 14px 20px; }
  .startseite .sidebar { padding-left: 14px; }
}

/* ===== Feinschliff 24.11.2026 ===== */
/* Bilder in den Kästen «Unterstützen» und «Aortenkrankheiten»: zentriert, auf jeder Breite im Kasten */
.kasten-bild { display: block; width: 100%; max-width: 345px; height: auto; aspect-ratio: 345 / 250; margin-left: auto; margin-right: auto; }
@media (min-width: 1200px) { .kasten-bild { max-width: none; } }

/* Links beim Darüberfahren: rot mit feinem rotem Strich statt schwarzem Bodenstrich */
a:hover { color: var(--rot); text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pfeile a:hover { background: none; text-decoration: underline; text-decoration-color: var(--rot); }
.banner:hover, .nav a:hover, .seitennav a:hover, .kachel a:hover { text-decoration: none; }
.banner:hover { color: #1e1e1e; }

/* Rote Pfeile etwas grösser */
.pfeile a::before { width: 22px; font-size: 14px; vertical-align: 0; }

/* Fuss: grössere, normale Schrift (statt 13 px dünn), Links beim Darüberfahren weiss unterstrichen */
.footer { font-size: 15px; line-height: 24px; font-weight: 400; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: #fff; }
@media (min-width: 1200px) { .footer .container { grid-template-columns: 1.15fr 0.8fr 1.15fr 0.9fr; gap: 0 24px; } }
/* Pfeile bündig links, Abstand Pfeil → Text ca. 8 px */
.pfeile a::before { margin-left: 0; width: 20px; }
