:root {
  color-scheme: light;
  --ink: #162338;
  --muted: #4e5c70;
  --blue: #164cce;
  --line: #dce3ed;
  --soft: #f3f6fc;
  --paper: #fff;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: var(--blue); text-underline-offset: .18em; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #5882ff;
  outline-offset: 4px;
}
.wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }
.skip { position: fixed; inset: .5rem auto auto .5rem; z-index: 2; padding: .5rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.bar { border-bottom: 1px solid var(--line); background: white; }
.bar-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 15px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.13rem; font-weight: 750; color: var(--ink); text-decoration: none; }
.portal { font-weight: 650; font-size: .93rem; text-decoration: none; }
.hero { background: #eaf0ff; border-bottom: 1px solid #dce5fb; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 88px); padding-block: clamp(34px, 5.6vw, 82px); }
.eyebrow { color: #214ab4; font-weight: 750; font-size: .89rem; }
h1 { margin: .23em 0 .27em; font-size: clamp(2.6rem, 5.1vw, 5rem); font-weight: 800; line-height: 1.01; letter-spacing: -.065em; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.22rem); }
.search { margin-top: 24px; }
.search label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 720; }
.search-box { display: flex; align-items: center; min-height: 54px; gap: 13px; padding-inline: 14px; background: white; border: 1px solid #adbfe8; border-radius: 11px; }
.search-box:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-icon { width: 15px; height: 15px; border: 2px solid #35539e; border-radius: 50%; position: relative; flex: none; margin-right: 3px; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; background: #35539e; right: -5px; bottom: -2px; transform: rotate(45deg); }
.search input { width: 100%; min-width: 0; padding: 12px 0; border: 0; color: var(--ink); background: transparent; outline: none; }
.search input:focus-visible { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { background: var(--soft); border: 0; border-radius: 5px; color: var(--blue); padding: 4px 7px; font-size: .83rem; cursor: pointer; }
.hero-image img, .screenshot img { display: block; width: 100%; height: auto; border: 1px solid #c7d1e3; border-radius: 10px; background: #f4f7fd; }
.hero-image img { aspect-ratio: 16 / 8; object-fit: cover; object-position: top; box-shadow: 0 16px 35px #123b7a25; }
.hero-image figcaption, .guide figcaption { margin-top: 8px; color: var(--muted); font-size: .83rem; }
body:has(#suchbereich:not([hidden])) .hero-image { display: none; }
body:has(#suchbereich:not([hidden])) .hero-inner { grid-template-columns: minmax(0, 600px); padding-block: 20px 24px; }
body:has(#suchbereich:not([hidden])) .hero h1,
body:has(#suchbereich:not([hidden])) .hero .lede { display: none; }
body:has(#suchbereich:not([hidden])) .hero .search { margin-top: 8px; }
.browse, .results { padding-block: 31px; }
.browse h2, .results h2 { font-size: 1.26rem; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.cards a { position: relative; padding: 14px 35px 14px 15px; display: grid; align-content: start; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: var(--ink); }
.cards a::after { content: "↗"; position: absolute; top: 14px; right: 14px; color: var(--blue); }
.cards a:hover { background: var(--soft); border-color: #b9c8e6; }
.cards span { margin-top: 2px; color: var(--muted); font-size: .86rem; }
.handbook { display: grid; grid-template-columns: minmax(0, 245px) minmax(0, 1fr); align-items: start; gap: clamp(26px, 4vw, 64px); padding-block: 12px 64px; }
.sidebar { position: sticky; top: 18px; max-height: calc(100dvh - 36px); overflow: auto; scrollbar-width: thin; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.sidebar p { margin: 0 0 8px; color: var(--muted); font-size: .85rem; font-weight: 650; }
.sidebar details { border-top: 1px solid var(--line); padding: 8px 0; }
.sidebar summary { cursor: pointer; font-size: .94rem; font-weight: 700; }
.sidebar ul { margin: 4px 0 0; padding: 0 0 0 17px; list-style: none; }
.sidebar a { display: block; padding: 4px 0; font-size: .85rem; line-height: 1.4; text-decoration: none; }
.sidebar a:hover, .article-link:hover { text-decoration: underline; }
.context-note { padding: 12px 16px; background: var(--soft); border-left: 3px solid #8baaff; border-radius: 0 8px 8px 0; color: var(--muted); }
.topic { margin-top: 38px; scroll-margin-top: 18px; }
.topic h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.035em; padding-bottom: 8px; border-bottom: 2px solid #b7c8f0; }
.guide { padding-block: 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; overflow-wrap: anywhere; }
.guide h3 { font-size: clamp(1.27rem, 2.1vw, 1.65rem); letter-spacing: -.025em; line-height: 1.27; }
.guide h4 { margin-top: 1em; font-size: 1rem; }
.article-link { color: var(--ink); text-decoration: none; }
.guide p, .guide ol { margin: .55em 0 0; }
.guide ol { padding-left: 1.55em; }
.guide li + li { margin-top: .32em; }
.guide .path { color: #214ab4; font-size: .88rem; font-weight: 700; }
.guide figure { margin: 16px 0 0; }
.guide img { width: auto; max-width: 100%; max-height: 510px; }
.guide figcaption a { margin-left: .35em; white-space: normal; }
#smartwatch figure { display: inline-block; width: min(100%, 210px); margin-right: 12px; vertical-align: top; }
#smartwatch figure img { width: 100%; }
.results ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.results li { border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; }
.results a { font-weight: 700; }
.results li p { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
footer { background: var(--soft); border-top: 1px solid var(--line); }
.footer-inner { justify-content: flex-start; flex-wrap: wrap; padding-block: 22px; font-size: .86rem; }
@media (max-width: 810px) {
  .hero-inner { gap: 24px; }
  .handbook { grid-template-columns: minmax(0, 185px) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner, .handbook { grid-template-columns: minmax(0, 1fr); }
  .hero-image { max-width: 420px; }
  .sidebar { position: static; max-height: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards a { padding-right: 27px; }
  .cards a::after { right: 9px; }
}
@media (max-width: 365px) { .cards { grid-template-columns: 1fr; } }
