:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #142d48;
  background: #f5faff;
  line-height: 1.55;
  --navy: #102c4b;
  --blue: #085d83;
  --border: #dcebf3;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { width: min(100% - 48px, 1180px); margin-inline: auto; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #0774a2; outline-offset: 4px; }
.skip { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 10px; border-radius: 8px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--border); background: white; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 26px; padding: 4px 0; }
.logo { flex-shrink: 0; }
.logo img { display: block; width: min(255px, 65vw); height: auto; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(10px, 1.6vw, 25px); }
.site-header nav a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--navy); font-size: .9rem; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.site-header nav a[aria-current], .site-header nav a:hover { border-color: #087a95; }
.search-link svg { width: 18px; height: 18px; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .55em; }
h1 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); font-weight: 650; }
.hero h1 { max-width: 28ch; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
h2 { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.375rem); font-weight: 650; }
h3 { font-size: 1.0625rem; font-weight: 650; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
.hero { display: grid; grid-template-columns: 1fr .95fr; align-items: center; margin-top: 24px; background: #e3f4fe; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; }
.hero div { padding: clamp(20px, 3.5vw, 42px); }
.hero p, .intro p { max-width: 61ch; font-size: 1.1rem; }
.hero img { display: block; width: 100%; height: 100%; max-height: 355px; object-fit: cover; object-position: center 42%; }
.block { margin-block: 25px; }
.grid { display: grid; align-items: stretch; gap: 14px; }
.group-grid, .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group, .topic-card { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border-radius: 14px; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.group { align-items: center; justify-content: space-between; }
.group svg, .symbol svg, .button svg { flex-shrink: 0; }
.group strong, .topic-card strong { display: block; color: var(--navy); line-height: 1.3; font-size: 1.0625rem; font-weight: 650; }
.group span span, .desc, .topic-card small { display: block; margin-top: 5px; }
.group:hover, .topic-card:hover { border-color: #0784ac; }
.group:hover strong, .topic-card:hover strong { text-decoration: underline; }
.group[aria-current] { border: 2px solid var(--blue); }
.kinder { background: #dff2fd; }
.jugendliche { background: #e2f5eb; }
.eltern { background: #fff4d2; }
.topic-card, .content-panel { background: white; box-shadow: 0 2px 6px #102c4b08; }
.symbol { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 10px; background: #e8f5fc; color: var(--blue); }
.help-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: 26px 32px; padding: 19px 24px; border-radius: 14px; background: #deeffb; }
.help-banner h2 { margin-bottom: .25em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; background: #075d86; color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: #064766; }
.intro { padding: clamp(18px, 2.5vw, 30px); margin-top: 24px; border: 1px solid var(--border); border-radius: 20px; }
.intro:not(.kinder, .jugendliche, .eltern) { background: #e3f4fe; }
.breadcrumbs { margin-block: 15px; }
.content-panel { padding: clamp(17px, 3vw, 32px); border: 1px solid var(--border); border-radius: 14px; }
.content-panel p, .content-panel li { max-width: 72ch; }
.content-panel p + h2 { margin-top: 1.3em; }
.content-panel ol, .content-panel ul { padding-left: 1.4em; }
.content-panel li + li { margin-top: .5em; }
.urgent { margin-top: 24px; border-left: 5px solid #a66517; }
.portal-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.portal-search > div { display: flex; gap: 8px; max-width: 620px; }
.portal-search input { padding: 8px 12px; min-width: 0; width: 100%; border: 1px solid #6e899b; border-radius: 8px; background: white; }
#suchstatus { margin-top: 14px; }
.results:empty { display: none; }
.site-footer { margin-top: 18px; background: white; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-block: 15px; font-size: .93rem; }
.quiet { color: var(--blue); background: white; border: 1px solid #91b7cc; padding: 8px 14px; border-radius: 8px; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 0 20px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .hero, .group-grid, .topic-grid, .resource-grid { grid-template-columns: 1fr; }
  .hero img { height: auto; max-height: 260px; object-position: center 35%; }
  .help-banner { align-items: start; flex-direction: column; }
  .header-inner { padding-bottom: 8px; }
  .site-header nav a { min-height: 40px; }
}

.topic-grid-kinder .topic-card { flex-direction: column; }
.topic-grid-kinder .symbol, .kinder-leseansicht > .symbol { flex-basis: auto; width: 48px; height: 48px; }
.kinder-leseansicht > .symbol { background: #dff2fd; }
.topic-grid-eltern .topic-card { border-left-width: 4px; }
.kinder-leseansicht { max-width: 38rem; font-size: 1.16rem; }
.kinder-leseansicht > .symbol { margin-bottom: 14px; }
.kinder-leseansicht section { margin-top: 18px; padding: 16px; border-radius: 10px; background: #eaf6fd; }
.jugend-leseansicht { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jugend-leseansicht section + section { border-top: 4px solid #8fc3ab; }
.eltern-leseansicht { border-top: 4px solid #e9ce86; }
@media (max-width: 650px) {
  .jugend-leseansicht { grid-template-columns: 1fr; }
}

.topic-card {
  position: relative;
  isolation: isolate;
  background: var(--topic-surface, white);
  border-color: var(--topic-border, var(--border));
}
.topic-watermark {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  color: var(--topic-ink, #185b82);
  opacity: .10;
  pointer-events: none;
}
.topic-watermark svg {
  position: absolute;
  right: 8px;
  bottom: -12px;
  width: 108px;
  height: 108px;
  transform: rotate(-12deg);
  stroke-width: 1.15;
}

.topic-card:hover { border-color: var(--topic-ink, #0784ac); }
.topic-card .symbol {
  background: var(--topic-icon, #e8f5fc);
  color: var(--topic-ink, var(--blue));
}

.topic-card[data-topic="cybergrooming"] {
  --topic-surface: #eaf4ff;
  --topic-border: #c3dcf4;
  --topic-icon: #d5e9fb;
  --topic-ink: #246394;
}

.topic-card[data-topic="cybermobbing"] {
  --topic-surface: #f1edfb;
  --topic-border: #d9cdef;
  --topic-icon: #e7dcf7;
  --topic-ink: #685298;
}

.topic-card[data-topic="sextortion"] {
  --topic-surface: #fbecef;
  --topic-border: #ecc8d1;
  --topic-icon: #f5dce5;
  --topic-ink: #8a4661;
}

.topic-card[data-topic="online-challenges"] {
  --topic-surface: #fff1e1;
  --topic-border: #eed1a9;
  --topic-icon: #fae4c9;
  --topic-ink: #8a551f;
}

.topic-card[data-topic="datenschutz"] {
  --topic-surface: #e7f6ec;
  --topic-border: #bcdcc8;
  --topic-icon: #d2ebdc;
  --topic-ink: #326b50;
}

.topic-card[data-topic="soziale-medien"] {
  --topic-surface: #e6f5f5;
  --topic-border: #b9dddd;
  --topic-icon: #d0ebed;
  --topic-ink: #266a72;
}
