/* Das Reise-Magazin (/tipps/...), aufbauend auf rechtliches.css.
   Gleiche Farbwelt wie die App: Bordeaux und Messing als Marke, ruhige
   Flaechen fuer den Text. Keine fremden Schriften (keine Anfrage an
   Google Fonts) - die Systemschrift ist schnell und datenschutzfreundlich. */
:root {
  /* Markenfarben wie in der App: Pass-Bordeaux + Messing */
  --plum: #6B1424; --lime: #E8B04B;
  --sunset: linear-gradient(135deg, #F2C46A 0%, #E8B04B 55%, #D69A2E 100%);
  --sunset-text: #8C1C2E;
  --shadow: 0 1px 2px rgba(16, 20, 28, .06), 0 8px 24px rgba(16, 20, 28, .08);
  --shadow-hover: 0 2px 4px rgba(16, 20, 28, .08), 0 18px 40px rgba(16, 20, 28, .14);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sunset-text: #E8B04B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] { --sunset-text: #E8B04B; }

.tipp-art { color: var(--text-dim); font-size: 0.85rem; text-transform: none; }
.tipp-entwurf {
  background: #d9573f; color: #fff; font-weight: 700; text-align: center;
  border-radius: 8px; padding: 0.4rem; margin: 0 0 1rem;
}
.tipp-stand { color: var(--text-dim); font-size: 0.88rem; }
.tipp-liste { list-style: none; padding: 0; }
.tipp-liste li { margin: 0 0 0.7rem; }
.tipp-liste a {
  display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem;
}
.tipp-liste a span:last-child { color: var(--text-dim); font-size: 0.92rem; }
.tipp-tabelle { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.95rem; }
.tipp-tabelle th, .tipp-tabelle td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); }
.tipp-tabelle th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.tipp-suche, .tipp-app a {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--sunset); color: #6B1424;
  font-weight: 700; text-decoration: none; border-radius: 999px; padding: 0.7rem 1.2rem;
  box-shadow: 0 10px 26px rgba(60, 18, 24, .22); transition: transform .15s ease, box-shadow .15s ease;
}
.tipp-suche:hover, .tipp-app a:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(60, 18, 24, .22); }
.tipp-text h2 { border-top: none; padding-top: 0; scroll-margin-top: 5rem; }

/* --- Diagramme ------------------------------------------------------------ */
.tipp-grafik {
  margin: 1.2rem 0; padding: 1rem 1rem .6rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; color: var(--text);
}
.tipp-grafik svg { display: block; width: 100%; height: auto; }
.tipp-grafik figcaption { color: var(--text-dim); font-size: .82rem; margin-top: .4rem; }

/* --- Seitengeruest ---------------------------------------------------------- */
body.magazin main { max-width: 72rem; padding-top: 0.5rem; }
.mag-kopf {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: .7rem max(16px, calc((100% - 72rem) / 2 + 16px));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.mag-marke svg { flex: 0 0 auto; width: 2rem; height: 2rem; align-self: center; }
.mag-marke b { font-weight: 900; letter-spacing: -0.03em; }
.mag-marke b i { font-style: normal; font-weight: 500; }
.mag-marke { display: flex; align-items: baseline; gap: .5rem; font-weight: 800; font-size: 1.15rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em; min-width: 0; white-space: nowrap; }
@media (max-width: 480px) { .mag-marke span { display: none; } }
.mag-marke span { font-weight: 600; font-size: .85rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mag-app {
  flex: 0 0 auto; background: var(--sunset); color: #6B1424; font-weight: 700; font-size: .88rem;
  text-decoration: none; border-radius: 999px; padding: .45rem .95rem;
}

/* --- Startseite --------------------------------------------------------------- */
.mag-titel {
  font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.04; letter-spacing: -0.04em;
  font-weight: 900; margin: 1.6rem 0 .7rem; border: none; padding: 0; color: var(--text);
}
/* Das Markenzeichen: Limette wie ein Textmarker */
.mag-titel span, .mag-artikel h1 span {
  background: linear-gradient(transparent 64%, rgba(232, 176, 75, .85) 64%, rgba(232, 176, 75, .85) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em;
}
.mag-intro { font-size: 1.08rem; color: var(--text-dim); max-width: 40rem; margin: 0 0 1.2rem; }
.mag-rubriken { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 1rem; scrollbar-width: none; }
.mag-rubriken::-webkit-scrollbar { display: none; }
.mag-rubriken a {
  flex: 0 0 auto; text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem;
  transition: border-color .15s, color .15s;
}
.mag-rubriken a:hover { border-color: var(--sunset-text); color: var(--sunset-text); }
.mag-rubrik {
  border: none; padding: 0; margin: 2.6rem 0 1rem; font-size: 1.45rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: .6rem;
}
.mag-rubrik::before { content: ""; flex: 0 0 auto; width: .35rem; height: 1.3rem; border-radius: 4px; background: var(--sunset); }
section[id] { scroll-margin-top: 4.5rem; }

.mag-raster { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 640px) { .mag-raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .mag-raster { grid-template-columns: repeat(3, 1fr); } }

.mag-karte {
  display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
  padding-bottom: 1rem;
}
.mag-karte:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mag-karte img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin-bottom: .5rem; }
.mag-karte > :not(img) { padding: 0 1.05rem; }
.mag-karte strong { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
.mag-kat {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sunset-text);
}
.mag-kat a { color: inherit; text-decoration: none; }
.mag-sum { color: var(--text-dim); font-size: .93rem; line-height: 1.5; }
.mag-meta { color: var(--text-dim); font-size: .8rem; margin-top: auto; }

/* Titelgeschichte: Bild gross, Text darueber */
.mag-karte.mag-gross { position: relative; padding: 0; margin: .4rem 0 0; min-height: 24rem; justify-content: flex-end; }
.mag-karte.mag-gross img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; margin: 0; }
.mag-karte.mag-gross::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(60, 18, 24, .9) 100%);
}
.mag-karte.mag-gross > :not(img) { position: relative; z-index: 1; color: #fff; padding: 0 1.4rem; }
.mag-karte.mag-gross .mag-kat { color: var(--plum); background: var(--lime); align-self: flex-start; margin-left: 1.4rem; padding: .2rem .6rem; border-radius: 999px; }
.mag-karte.mag-gross strong { font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; }
.mag-karte.mag-gross .mag-sum, .mag-karte.mag-gross .mag-meta { color: rgba(255, 255, 255, .85); }
.mag-karte.mag-gross .mag-meta { padding-bottom: 1.4rem; margin-top: .2rem; }
@media (min-width: 800px) { .mag-karte.mag-gross { min-height: 30rem; } }

/* --- Artikel ------------------------------------------------------------------ */
.mag-artikel { max-width: 46rem; margin: 0 auto; }
.mag-artikel > .mag-kat { margin: 1.4rem 0 .4rem; }
.mag-artikel h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 850; margin: 0 0 .6rem; }
.mag-artikel > .mag-meta { margin: 0 0 1.1rem; }
.mag-hero {
  display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow);
  margin: 0 0 1.4rem;
}
.mag-toc {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.1rem;
  margin: 0 0 1.6rem;
}
.mag-toc strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.mag-toc ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.mag-toc a { color: var(--text); text-decoration: none; }
.mag-toc a:hover { color: var(--sunset-text); }
.tipp-text { font-size: 1.06rem; line-height: 1.72; }
.tipp-text h2 { font-size: 1.4rem; letter-spacing: -0.015em; margin: 2.2rem 0 .5rem; }
.tipp-text ul { padding-left: 1.3rem; }
.tipp-text li { margin: .35rem 0; }

.mag-appbox {
  margin: 2.2rem 0 1.2rem; padding: 1.4rem; border-radius: var(--radius);
  background: radial-gradient(18rem 10rem at 100% 0%, rgba(232, 176, 75, .25), transparent 60%), linear-gradient(160deg, #8A2232, #6B1424);
  color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem;
  box-shadow: 0 10px 26px rgba(60, 18, 24, .22);
}
.mag-appbox p { margin: 0; font-weight: 650; font-size: 1.02rem; flex: 1 1 16rem; }
.mag-appbox a {
  background: var(--lime); color: var(--plum); text-decoration: none; font-weight: 700; border-radius: 999px;
  padding: .65rem 1.2rem; white-space: nowrap;
}
.mag-redaktion {
  display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); font-size: .9rem; color: var(--text-dim);
}
.mag-redaktion strong { color: var(--text); }
.mag-redaktion p { margin: 0; }

.mag-sprachen a { margin-right: .5rem; text-decoration: none; }
.mag-sprachen a[aria-current="page"] { font-weight: 800; color: var(--text); }
body.magazin footer { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .mag-karte, .tipp-suche, .tipp-app a { transition: none; }
  .mag-karte:hover { transform: none; }
}

/* Titelfoto mit Bildnachweis */
.mag-hero-fig { margin: 0 0 1.4rem; }
.mag-hero-fig .mag-hero { margin: 0; }
.mag-nachweis { color: var(--text-dim); font-size: .74rem; margin-top: .45rem; }
.mag-nachweis a { color: inherit; }
.mag-karte img { background: linear-gradient(160deg, #8A2232, #6B1424); }

/* Filter und Sortierung (Links, ohne Skript) */
.mag-filter { display: flex; flex-direction: column; gap: .55rem; margin: 0 0 1.2rem; }
.mag-chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .1rem 0; align-items: center; }
.mag-chips::-webkit-scrollbar { display: none; }
.mag-chips > span { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: var(--text-dim); }
.mag-chips a {
  flex: 0 0 auto; text-decoration: none; color: var(--text); font-weight: 650; font-size: .88rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .42rem .9rem;
}
.mag-chips a[aria-current="true"] { background: var(--plum); color: var(--lime); border-color: var(--plum); }
.mag-sort a { font-size: .8rem; padding: .32rem .75rem; }
.mag-laender summary { cursor: pointer; font-weight: 700; font-size: .9rem; padding: .3rem 0; }
.mag-laender .mag-chips { flex-wrap: wrap; overflow: visible; margin-top: .4rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mag-chips a[aria-current="true"] { background: var(--lime); color: var(--plum); border-color: var(--lime); }
}
:root[data-theme="dark"] .mag-chips a[aria-current="true"] { background: var(--lime); color: var(--plum); border-color: var(--lime); }

/* Markenschrift (docs/fonts.css) */
.mag-marke b, .mag-titel, .mag-rubrik, .mag-karte strong, .mag-artikel h1, .tipp-text h2,
.mag-appbox p, .mag-app, .mag-chips a, .mag-kat { font-family: var(--font-marke, system-ui); }
.mag-titel, .mag-artikel h1 { font-weight: 800; }
.mag-marke b { font-weight: 800; }
.mag-marke b i { font-weight: 400; }

/* Zurueck zur Magazin-Uebersicht (Stand 59) - ohne Skript, ein normaler Link */
.mag-zurueck {
  display: inline-flex; align-items: center; margin: 1.2rem 0 0; padding: .4rem .9rem; border-radius: 999px;
  font-weight: 750; font-size: .88rem; text-decoration: none; color: var(--accent);
  background: var(--card); border: 1px solid var(--line);
}
.mag-zurueck:hover { border-color: var(--accent); }
.mag-artikel > .mag-zurueck + .mag-kat { margin-top: .9rem; }

/* Videos (Stufe 2): Vorschaubild von unserem Server, Klick oeffnet YouTube */
.mag-videos { margin: 2rem 0 1rem; }
.mag-video-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.mag-video { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--text); }
.mag-video-bild { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--card); aspect-ratio: 16 / 9; }
.mag-video-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-video-bild > span { position: absolute; inset: 0; margin: auto; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.2rem; }
.mag-video strong { font-size: .9rem; line-height: 1.3; }
.mag-video > span:last-child { color: var(--text-dim); font-size: .8rem; }
