/* pdfsd.de – Gestaltung. Schriften liegen in assets/fonts. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/source-sans-3-400.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/source-sans-3-600.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/source-sans-3-700.woff2') format('woff2'); }

/* Himmel über der Oberpfalz: weißer Kopf, hellblauer Himmel als Seitenkopf, Bayernblau + Sonnengelb als Akzente */
:root {
  --navy: #1769C2; --navy-deep: #1A2B48; --on-navy: #FFFFFF; --on-navy-muted: #DCE9F8;
  --on-accent: #FFFFFF; --sky: #E6F2FC; --sky-2: #CFE5F8; --cloud: #FFFFFF; --hill: #BFDDB4; --hill-2: #9CCB8F; --ink: #1A2B48;
  --bg: #F7FAFD; --surface: #FFFFFF; --fg: #1A2B48; --muted: #4B5B73; --line: #E1E9F2; --line-strong: #C6D3E2;
  --accent: #1769C2; --accent-soft: #E6F0FB; --gold: #F5B82E; --gold-soft: #FFF4D6; --gold-ink: #7A5205;
  --warn-soft: #FCEBEB; --warn-ink: #9B2C2C; --ok-soft: #E4F3E9; --ok-ink: #1E6B45;
  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --navy: #1F4F8A; --navy-deep: #08111F; --on-navy: #FFFFFF; --on-navy-muted: #D3E1F3;
  --on-accent: #0B1322; --sky: #12243D; --sky-2: #1A3253; --cloud: #2A4268; --hill: #1F3B33; --hill-2: #29503F; --ink: #E8EDF5;
  --bg: #0B1322; --surface: #142038; --fg: #E8EDF5; --muted: #A9B4C6; --line: #24324D; --line-strong: #34456A;
  --accent: #82B5F2; --accent-soft: #1C3052; --gold: #F2C14E; --gold-soft: #33280F; --gold-ink: #F6D88F;
  --warn-soft: #3A1A1A; --warn-ink: #F3A5A5; --ok-soft: #12301F; --ok-ink: #8FD9AE; color-scheme: dark } }
:root[data-theme="dark"] {
  --navy: #1F4F8A; --navy-deep: #08111F; --on-navy: #FFFFFF; --on-navy-muted: #D3E1F3;
  --on-accent: #0B1322; --sky: #12243D; --sky-2: #1A3253; --cloud: #2A4268; --hill: #1F3B33; --hill-2: #29503F; --ink: #E8EDF5;
  --bg: #0B1322; --surface: #142038; --fg: #E8EDF5; --muted: #A9B4C6; --line: #24324D; --line-strong: #34456A;
  --accent: #82B5F2; --accent-soft: #1C3052; --gold: #F2C14E; --gold-soft: #33280F; --gold-ink: #F6D88F;
  --warn-soft: #3A1A1A; --warn-ink: #F3A5A5; --ok-soft: #12301F; --ok-ink: #8FD9AE; color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 17px; line-height: 1.55 }
a { color: var(--accent) }
a:hover { color: var(--fg) }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance }
p { margin: 0 }
button { font: inherit }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.num { font-variant-numeric: tabular-nums }

/* info bar */
.info { background: var(--gold-soft); color: var(--gold-ink); font-size: 15px }
.info .wrap { padding-block: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between }
.info button { border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 8px 0 }
.info-panel { background: var(--surface); border-bottom: 1px solid var(--line) }
.info-panel .wrap { padding-block: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px }
.info-panel h3 { font-size: 20px; margin-bottom: 4px }
.info-panel p { font-size: 15px; color: var(--muted) }

/* header */
.site-head { background: var(--surface); color: var(--fg); position: relative; z-index: 5; border-bottom: 1px solid var(--line) }
.site-head .wrap { padding-block: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.brand-logo { display: block; height: 52px; width: auto }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none }
.brand b { font-family: var(--f-display); font-size: 24px; letter-spacing: .04em; display: block; line-height: 1 }
.brand small { font-size: 14px; color: var(--muted) }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center }
.nav a { color: var(--fg); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px }
.nav a:hover { color: var(--accent); background: var(--accent-soft) }
.nav a.on { color: var(--accent); background: var(--accent-soft) }
.nav a.cta { background: var(--gold); color: #1A2B48; font-weight: 700; margin-left: 6px; padding-inline: 18px }
.nav a.cta:hover { filter: brightness(1.05) }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--accent-soft); color: var(--accent); cursor: pointer; align-items: center; justify-content: center }
@media (max-width: 860px) {
  .menu-btn { display: flex }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px }
  .nav.open { display: flex }
  .nav a { padding: 14px 12px; border-radius: 12px; font-size: 18px }
  .nav a.cta { margin: 14px 0 0; text-align: center; border-radius: 10px }
}

/* page head */
.page-head { background: var(--sky); color: var(--fg) }
.page-head .wrap { padding-block: 40px 0; display: flex; flex-direction: column; gap: 12px }
.page-head.pad .wrap { padding-block: 40px 56px }
.crumbs { font-size: 15px; color: var(--muted) }
.crumbs a { color: var(--accent) }
.page-head h1 { font-size: clamp(38px, 6vw, 56px) }
.lead { font-size: 19px; color: var(--muted); max-width: 640px }
.tabs { display: flex; gap: 4px; margin-top: 20px; overflow-x: auto; scrollbar-width: none }
.tabs a { flex: none; padding: 13px 18px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-radius: 14px 14px 0 0 }
.tabs a:hover { color: var(--accent) }
.tabs a.on { color: var(--accent); background: var(--bg); font-weight: 700 }

/* generic */
.eyebrow { font-size: 16px; font-weight: 700; color: var(--accent) }
.eyebrow.gold { color: var(--gold-ink) }
.card.dark .eyebrow, .card.dark .eyebrow.gold { color: var(--on-navy-muted) }
.section { padding-block: 48px }
.section h2 { font-size: clamp(30px, 4vw, 40px) }
.stack { display: flex; flex-direction: column; gap: 16px }
.row { display: flex; flex-wrap: wrap; gap: 24px }
.main-col { flex: 999 1 560px; min-width: 0 }
.side-col { flex: 1 1 300px; min-width: 0; align-self: flex-start }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 1px 2px rgba(26,43,72,.04) }
.card.dark { background: var(--navy); color: var(--on-navy); border-color: transparent }
.card.dark .muted { color: var(--on-navy-muted) }
.muted { color: var(--muted) }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px }
.pill { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink) }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink) }
.pill.ok { background: var(--ok-soft); color: var(--ok-ink) }
.pill.grey { background: var(--line); color: var(--muted) }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; background: var(--accent); color: var(--on-accent) }
.btn:hover { color: var(--on-accent); filter: brightness(1.08) }
.btn.gold { background: var(--gold); color: #1A2B48 }
.btn.gold:hover { color: #1A2B48 }
.btn.ghost { background: transparent; color: var(--on-navy); border: 1.5px solid rgba(255,255,255,.6) }
.btn.outline { background: var(--surface); color: var(--accent); border: 1.5px solid var(--line-strong) }
.btn.outline:hover { color: var(--accent); border-color: var(--accent) }
.btn.soft { background: var(--accent-soft); color: var(--accent); min-height: 44px; padding: 0 16px; font-size: 15px }
.btn.light { background: var(--surface); color: var(--fg) }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600 }
.linkrow:first-child { border-top: 0 }
.linkrow:hover { background: var(--accent-soft); color: var(--fg) }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden }
.footer { background: var(--navy-deep); color: #C9D6E8; margin-top: 24px }
.footer .wrap { padding-block: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px }
.footer a { color: #FFFFFF }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap }

/* start */
.hero .wrap { padding-block: 56px 104px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0 }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: .98; max-width: 11ch; hyphens: manual }
.hero .lead { font-size: 20px; max-width: 34ch }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 16px; box-shadow: 0 18px 40px rgba(26,43,72,.10) }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap }
.karte-kopf b { font-size: 18px }
.karte-kopf span { color: var(--muted); font-size: 15px }
.karte svg { display: block; width: 100%; height: auto; margin-top: 8px }
.karte .route { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .38 }
.karte .route.weit { opacity: .8; stroke-width: 2 }
.karte .ort { fill: var(--surface); stroke: var(--accent); stroke-width: 2 }
.karte .heim { fill: var(--gold); stroke: var(--fg); stroke-width: 2 }
.karte text { font-family: var(--f-body); font-size: 13px; fill: var(--muted) }
.karte text.gross { font-weight: 700; fill: var(--fg); font-size: 14px }
.karte-fuss { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-size: 15px; color: var(--muted) }
.karte-fuss b { color: var(--fg) }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 96px } }
.quick { margin-top: -56px; position: relative; z-index: 2 }
.quick .box { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px }
.quick a { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; color: var(--fg); text-decoration: none; box-shadow: 0 10px 28px rgba(26,43,72,.08) }
.quick a:hover { border-color: var(--accent); color: var(--fg) }
.quick i { flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent) }
.quick a:nth-child(2) i { background: var(--gold-soft); color: var(--gold-ink) }
.quick a:nth-child(3) i { background: var(--ok-soft); color: var(--ok-ink) }
.quick b { display: block; font-size: 18px; line-height: 1.2 }
.quick span span { display: block; color: var(--muted); font-size: 15px; line-height: 1.3 }

/* flights */
.flights { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden }
.flights li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-top: 1px solid var(--line) }
.flights li:first-child { border-top: 0 }
.fnr { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 20px }
.fnr.jung { background: var(--gold); color: #1A2B48 }
.fname { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; line-height: 1.3 }
.fname b { font-size: 19px }
.fname span { font-size: 15px; color: var(--muted) }
.placeholder { font-size: 15px; color: var(--muted) }
.ankuendigung { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 18, 36, .72) }
.ankuendigung[hidden] { display: none }
.ank-box { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); color: var(--fg); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); display: flex; flex-direction: column }
.ank-box a:has(img), .ank-box > img { display: block; background: #dcecf8; border-radius: 16px 16px 0 0 }
.ank-box img { display: block; max-width: 100%; max-height: 56dvh; width: auto; height: auto; margin: 0 auto }
@media (min-width: 760px) {
  .ank-box { width: min(860px, 100%); flex-direction: row; align-items: stretch }
  .ank-box a:has(img), .ank-box > img { flex: none; border-radius: 16px 0 0 16px }
  .ank-box img { max-height: calc(100dvh - 32px); max-width: 480px }
  .ank-text { justify-content: center; padding: 28px }
}
.ank-text { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px }
.ank-text h2 { font-size: 28px; margin: 0 }
.ank-text .row { gap: 10px; margin-top: 8px }
.ank-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #13213D; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25) }
.res { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.btn.mini { min-height: 40px; padding: 0 12px; font-size: 14px; background: transparent; color: var(--accent); border: 1px solid var(--line) }
.btn.mini:hover { border-color: var(--accent) }
.ds ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px }
.ds p { max-width: 68ch }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.note { padding: 14px 18px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); font-size: 15px }

/* tables */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px }
th, td { padding: 12px 14px; text-align: right }
th:first-child, td:first-child { text-align: left }
thead th { background: var(--bg); font-weight: 700 }
tbody tr { border-top: 1px solid var(--line) }
tbody th { font-weight: 600 }
tfoot th, tfoot td { border-top: 2px solid var(--fg); font-weight: 700; background: var(--bg) }
.bar { display: flex; align-items: center; gap: 10px; min-width: 180px }
.bar i { flex: 1; height: 10px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; display: block }
.bar i span { display: block; height: 100%; background: var(--accent); border-radius: 999px }

/* vereine */
.search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 0 14px; min-height: 52px; background: var(--surface) }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--fg); font: inherit; min-height: 48px }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 700 }

/* covers */
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 24px 20px }
.cover { display: flex; flex-direction: column; gap: 8px; color: var(--fg); text-decoration: none }
.cover > span:first-child { aspect-ratio: 3 / 4; max-width: 100%; border-radius: 3px 12px 12px 3px; background: var(--navy); box-shadow: inset 7px 0 0 rgba(0,0,0,.28), 0 10px 22px rgba(18,35,63,.22); display: flex; flex-direction: column; justify-content: space-between; padding: 14px 12px 12px 20px; color: #FFFFFF }
.cover small { display: block; max-width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; color: #FFE29A; overflow-wrap: anywhere; hyphens: manual }
.cover strong { font-family: var(--f-display); font-size: 36px; line-height: 1 }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; min-width: 0 }
.field label { font-weight: 700; font-size: 15px }
.field input, .field select, .field textarea { min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; font: inherit; color: var(--fg); background: var(--surface) }
.field textarea { padding: 12px 14px; resize: vertical }

/* pdf viewer */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(6,12,22,.92); display: flex; flex-direction: column }
.viewer-bar { flex: none; background: #12233F; color: #FFFFFF; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); padding-top: calc(10px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.viewer-bar .t { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; line-height: 1.25 }
.viewer-bar .t b { font-size: 17px }
.viewer-bar .t span { font-size: 13px; color: #C9D6E8 }
.viewer-bar .vb { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: rgba(255,255,255,.12); color: #FFFFFF; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer }
.viewer-bar .vb.close { background: #D9A441; color: #12233F }
.viewer-pages { flex: 1; overflow-y: auto; padding: 24px 16px calc(32px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 20px }
.viewer-pages figure { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px }
.viewer-pages img { width: 100%; height: auto; background: #FFFFFF; box-shadow: 0 12px 30px rgba(0,0,0,.5); border-radius: 2px }
.viewer-pages figcaption { font-size: 13px; color: #C9D6E8 }
@media (prefers-reduced-motion: no-preference) { .viewer { animation: fade .18s ease-out } @keyframes fade { from { opacity: .6 } } }
