/* Design "Magazin" - warmes Familienmagazin */
@font-face { font-family: "Figtree"; src: url(fonts/figtree-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Young Serif"; src: url(fonts/youngserif-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --grund: #f7f1ea;
  --weiss: #ffffff;
  --tinte: #1c1814;
  --grau: #6f675f;
  --linie: #ece4da;
  --akzent: #c8432b;
  --akzent-hell: #fbe4dd;
  --breite: 1200px;
  --rund: 18px;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --serif: "Young Serif", Georgia, serif;
}

body { background: var(--grund); color: var(--tinte); font: 400 18px/1.7 var(--sans); }
a { color: inherit; }
.rahmen { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kopf-innen { display: flex; align-items: center; gap: 44px; min-height: 80px; padding-top: 8px; padding-bottom: 8px; }
/* Logo: "Kinder" + gelbe Sprechblase "tipps", rechts daneben "WIEN" im selben Gelb */
:root { --blase: #f4b73f; }
.marke { display: inline-flex; align-items: baseline; font: 400 1.7rem/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; color: var(--tinte); }
.marke-oben { display: flex; align-items: center; }
.logo-h1 { margin: 0; font: inherit; line-height: 1; }
.marke-blase {
  position: relative; margin-left: 0.1em; padding: 0.16em 0.36em 0.26em; border-radius: 0.45em;
  background: var(--blase); color: var(--tinte);
}
.marke-blase::after {
  content: ""; position: absolute; left: 0.42em; bottom: -0.3em;
  border-style: solid; border-width: 0.34em 0.34em 0 0.14em; border-color: var(--blase) transparent transparent;
}
.marke-ort { margin-left: 0.6em; font: 700 0.8rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--blase); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a { display: block; padding: 8px 12px; text-decoration: none; font-weight: 500; font-size: 0.98rem; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--grund); }
.nav a[aria-current="page"] { color: var(--akzent); font-weight: 700; }

/* Mobiles Menü (nur unter 1020 px und nur mit JavaScript) */
.menue-knopf, .menue { display: none; }
.menue-knopf {
  margin-left: auto; align-items: center; gap: 10px; padding: 9px 14px 9px 12px;
  border: 1px solid var(--linie); border-radius: 999px; background: var(--weiss); color: var(--tinte);
  font: 600 0.95rem/1 var(--sans); cursor: pointer;
}
.menue-striche { display: grid; gap: 4px; width: 18px; }
.menue-striche span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menue-knopf[aria-expanded="true"] .menue-striche span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-striche span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] .menue-striche span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menue {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid var(--linie);
  box-shadow: 0 24px 40px -24px rgba(28,24,20,.35); max-height: calc(100vh - 68px); overflow-y: auto; padding: 16px 0 22px;
}
.menue-rubriken { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menue-rubriken a {
  display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: var(--flaeche); text-decoration: none;
}
.menue-rubriken .icon { grid-row: span 2; width: 38px; }
.menue-rubriken span { font-weight: 700; font-size: 1.02rem; align-self: end; line-height: 1.2; }
.menue-rubriken small { color: var(--grau); font-size: 0.82rem; align-self: start; }
.menue-rubriken a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--akzent); }
.menue-unten { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; }
.menue-unten a { color: var(--grau); }

/* Weiße Blätter */
main { padding: 24px 0 8px; }
.blatt { background: var(--weiss); border-radius: var(--rund); padding: 48px 56px; margin-bottom: 24px; }
.blatt-titel { font-size: 1.75rem; margin-bottom: 26px; }
.blatt-titel a { text-decoration: none; }
.blatt-titel a span { display: inline-block; transition: transform .2s; }
.blatt-titel a:hover span { transform: translateX(4px); }


.dachzeile { margin: 0 0 6px; color: var(--akzent); font-size: 0.95rem; font-weight: 500; line-height: 1.35; }

/* Raster und Karten */
.raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; }
.karte-bild {
  display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden;
  background: var(--flaeche); margin-bottom: 14px;
}
.karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.karte:hover .karte-bild img { transform: scale(1.04); }
.karte h3 { font-size: 1.12rem; line-height: 1.3; }
.karte h3 a { text-decoration: none; }
.karte h3 a:hover { text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.karte-auszug { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--grau); }

.icon { width: 44%; max-width: 112px; height: auto; fill: none; stroke: var(--tinte); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Aufmacher in Pastellfläche */
.aufmacher {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--flaeche); border-radius: var(--rund); padding: 40px; margin-bottom: 40px;
}
.aufmacher-bild { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.55); }
.aufmacher-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aufmacher h3 { font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.18 var(--serif); letter-spacing: -0.01em; margin-bottom: 14px; }
.aufmacher h3 a { text-decoration: none; }
.aufmacher h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.aufmacher p:not(.dachzeile) { margin: 0; font-size: 1rem; line-height: 1.6; color: #3b352f; }

/* Themen */
.themen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.themen a {
  display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 18px 22px; border-radius: 14px; background: var(--flaeche); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.themen .icon { grid-row: span 2; width: 64px; }
.themen-name { font-size: 1.15rem; font-weight: 700; align-self: end; }
.themen-zahl { font-size: 0.9rem; color: var(--grau); align-self: start; }
.themen a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(28,24,20,.35); }

/* Rubrikseite */
.rubrik-kopf { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--flaeche); }
.rubrik-kopf h1 { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--serif); }
.rubrik-kopf .icon { width: 150px; max-width: none; flex: none; }
.rubrik-zahl { margin: 8px 0 0; color: #4c453e; }
.brotkrumen { margin: 0 0 14px; font-size: 0.9rem; color: var(--grau); }
.brotkrumen a { color: var(--grau); }

/* Beitrag */
.beitrag { padding-top: 40px; }
.beitrag-kopf { margin-bottom: 30px; }
.beitrag-kopf h1 { font: 400 clamp(2.1rem, 4.4vw, 3.3rem)/1.12 var(--serif); letter-spacing: -0.015em; max-width: 24ch; }
.beitrag-datum { margin: 14px 0 0; color: var(--grau); font-size: 0.95rem; }
.beitrag-bild { margin: 0 0 34px; border-radius: 12px; overflow: hidden; }
.beitrag-bild img { display: block; width: 100%; max-height: 560px; object-fit: cover; }

.text { font-size: 1.06rem; }
.text p, .text ul, .text ol { margin: 0 0 1.1em; }
.text li { margin-bottom: 0.4em; }
.text ul li::marker, .text ol li::marker { color: var(--akzent); }
.text a { text-decoration-color: var(--akzent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.text a:hover { color: var(--akzent); }
.text h2 { font-size: 1.65rem; margin: 1.8em 0 0.6em; }
.text h3 { font-size: 1.3rem; margin: 1.5em 0 0.5em; }
.text h4 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.text strong, .text b { font-weight: 700; }
.text img { border-radius: 10px; }
.text figure, .text .wp-caption { margin-top: 1.6em; margin-bottom: 1.6em; }
.text figcaption, .text .wp-caption-text { font-size: 0.88rem; color: var(--grau); margin-top: 8px; line-height: 1.45; }
.text blockquote { margin: 1.6em 0; padding: 20px 26px; background: var(--akzent-hell); border-radius: 12px; font-size: 1.05rem; }
.text blockquote p:last-child { margin-bottom: 0; }
.text table { margin: 1.7em 0; font-size: 0.94rem; border-radius: 10px; }
.text th, .text td { padding: 11px 14px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.text thead th, .text tr:first-child th:not([scope="row"]) { background: var(--grund); font-weight: 700; border-bottom: 2px solid var(--tinte); }
.text tbody tr:hover td { background: #fcfaf7; }
.text th[scope="row"] { font-weight: 700; white-space: nowrap; }
.text small { color: var(--grau); }
.text a[href^="http"] { overflow-wrap: anywhere; }  /* lange URLs als Linktext, bricht nur wenn nötig */
.text hr { border: 0; border-top: 1px solid var(--linie); margin: 2em 0; }
.embed-link a { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--akzent); color: #fff; text-decoration: none; font-weight: 600; }
.embed-link a:hover { background: #a93520; color: #fff; }

/* Fehlerseite */
.fehler { max-width: var(--breite); margin: 24px auto; padding: 60px 56px; background: var(--weiss); border-radius: var(--rund); }
.fehler h1 { font: 400 clamp(2.2rem, 5vw, 3.4rem)/1.1 var(--serif); margin-bottom: 12px; }
.fehler-link { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--akzent); color: #fff; text-decoration: none; font-weight: 600; }

/* Fuß */
.fuss { background: var(--tinte); color: #d8d1c8; margin-top: 40px; padding: 56px 0 30px; }
.fuss-oben { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fuss-logo { margin: 0; font-size: 1.9rem; color: #fff; }
.fuss-claim { margin: 0; }
.fuss-rubriken { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.fuss-rubriken a { color: #fff; text-decoration: none; font-weight: 600; }
.fuss-rubriken a:hover { text-decoration: underline; }
.fuss-recht { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #3a342e; font-size: 0.92rem; }
.fuss-recht a { color: #fff; }

/* Tablet */
@media (max-width: 1020px) {
  .kopf-innen { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 20px 8px; }
  .nav { width: 100%; overflow-x: auto; margin-left: -12px; }
  .nav a { white-space: nowrap; }
  /* mit JavaScript: Logo links, Menüknopf rechts, Leiste ausgeblendet */
  .js .kopf-innen { flex-direction: row; align-items: center; min-height: 68px; padding-top: 6px; padding-bottom: 6px; }
  .js .nav { display: none; }
  .js .menue-knopf { display: inline-flex; }
  .js .menue:not([hidden]) { display: block; }
  .kopf { position: sticky; }
  .raster { grid-template-columns: repeat(2, 1fr); }
  .themen { grid-template-columns: repeat(2, 1fr); }
  .aufmacher { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .blatt { padding: 36px 32px; }
}

/* Handy */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .rahmen { padding: 0 10px; }
  main { padding-top: 10px; }
  .blatt { padding: 28px 18px; border-radius: 14px; margin-bottom: 10px; }
  .blatt-titel { font-size: 1.45rem; margin-bottom: 20px; }
  .raster { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .karte h3 { font-size: 1rem; }
  .dachzeile { font-size: 0.85rem; }
  .themen { grid-template-columns: 1fr 1fr; gap: 10px; }
  .themen a { grid-template-columns: 36px 1fr; column-gap: 10px; padding: 12px; }
  .themen .icon { width: 36px; }
  .themen-name { font-size: 0.98rem; }
  .themen-zahl { font-size: 0.8rem; }
  .aufmacher { padding: 18px; margin-bottom: 26px; }
  .rubrik-kopf .icon { display: none; }
  .rubrik-kopf h1, .beitrag-kopf h1 { font-size: 1.85rem; }
  .text h2 { font-size: 1.4rem; }
  .fehler { padding: 36px 18px; margin: 10px; }
}
@media (max-width: 420px) {
  .marke.logo { font-size: 1.45rem; }
  .marke-ort { font-size: 0.72rem; }
  .menue-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menue-knopf { padding: 11px 12px; }
  .menue-rubriken { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .themen { grid-template-columns: 1fr; }
  .rubrik-kopf h1, .beitrag-kopf h1 { font-size: 1.6rem; }
}
@media (max-width: 380px) {
  .raster { grid-template-columns: 1fr; }
}
