/* Schriften: Archivo (variabel) für Text und Überschriften, Plex Mono für Code. Beide OFL, lokal eingebunden. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-600.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --bs-body-font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --bs-font-monospace: "Plex Mono", SFMono-Regular, Menlo, Consolas, monospace; --bs-body-font-size: 1.0625rem; }
h1, h2, h3, h4, .display-4, .display-5, .display-6 { letter-spacing: -.015em; }
h1, .display-4, .display-5 { font-weight: 700; }
h2, h3 { font-weight: 600; }

/* Entwurf: möglichst Standard-Bootstrap 5.3.3. Eigenes CSS nur für Weltkarte, Katze und kleine Anpassungen. */
.brand-mark { width: 32px; height: 32px; }
.hero { position: relative; overflow: hidden; }
.hero-map { position: absolute; width: 170%; left: -28%; top: 40%; aspect-ratio: 1000 / 497; transform: translateY(-33%); pointer-events: none; }
@media (max-width: 991.98px) { .hero-map { width: 360%; left: -130%; top: 30%; } }
.hero-map img { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(0) invert(1); opacity: .13; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bs-primary); }
.hero-in { position: relative; z-index: 1; }
.hero-cat { position: relative; max-width: 430px; margin-inline: auto; isolation: isolate; }
/* weicher, durchsichtiger Schatten unter dem Boden der Kiste */
.hero-cat::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -1%; width: 78%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(10px); }
.hero-cat svg { width: 100%; height: auto; display: block; }
.hero-cat svg [fill="#2b2c32"] { fill: #3f414b; }
.bubble-q { top: 1%; right: 0; }
.bubble-a { top: 14%; left: 0; }
/* Alle Folien liegen übereinander: die höchste bestimmt die Höhe, Text und Elemente darunter springen nicht */
.carousel-inner { display: grid; }
.carousel-inner::after { display: none; }
.carousel-inner .carousel-item { display: flex; flex-direction: column; justify-content: flex-end; grid-area: 1 / 1; float: none; margin-right: 0; }
.carousel-inner .carousel-item:not(.active) { pointer-events: none; }
.carousel-indicators { position: static; margin: 0 0 1.5rem; justify-content: flex-start; }
[data-bs-theme="dark"] .carousel .carousel-indicators [data-bs-target] { background-color: #fff; }
.icon svg { width: 1.6rem; height: 1.6rem; }
.account-number.is-empty { opacity: .5; }
.loc img { width: 20px; height: 15px; }
.card-img-top { height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.schema-shot img { max-width: 100%; height: auto; }
svg.icon { width: 1.1rem; height: 1.1rem; vertical-align: -.2em; fill: currentColor; }
.pay { color: #adb5bd; display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.pay svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
:root { --go: #198754; }

/* Hauptfarbe Orange (Mond-Logo) statt Bootstrap-Blau */
:root, [data-bs-theme="light"] { --bs-primary: #fd7e14; --bs-primary-rgb: 253, 126, 20; --bs-link-color: #b34700; --bs-link-color-rgb: 179, 71, 0; --bs-link-hover-color: #7a3000; --bs-link-hover-color-rgb: 122, 48, 0;
  --bs-primary-text-emphasis: #6a3300; --bs-primary-bg-subtle: #ffe8d4; --bs-primary-border-subtle: #fecba1; --bs-focus-ring-color: rgba(253, 126, 20, .3); }
[data-bs-theme="dark"] { --bs-primary: #fd7e14; --bs-primary-rgb: 253, 126, 20; --bs-link-color: #ffa05c; --bs-link-color-rgb: 255, 160, 92; --bs-link-hover-color: #ffc59b; --bs-link-hover-color-rgb: 255, 197, 155;
  --bs-primary-text-emphasis: #ffc59b; --bs-primary-bg-subtle: #3d1f06; --bs-primary-border-subtle: #6a3300; }
.btn-primary { --bs-btn-color: #000; --bs-btn-bg: #fd7e14; --bs-btn-border-color: #fd7e14; --bs-btn-hover-color: #000; --bs-btn-hover-bg: #ff922b; --bs-btn-hover-border-color: #ff922b;
  --bs-btn-focus-shadow-rgb: 253, 126, 20; --bs-btn-active-color: #000; --bs-btn-active-bg: #e8710c; --bs-btn-active-border-color: #e8710c; --bs-btn-disabled-color: #000; --bs-btn-disabled-bg: #fd7e14; --bs-btn-disabled-border-color: #fd7e14; }
.nav-pills { --bs-nav-pills-link-active-bg: #fd7e14; --bs-nav-pills-link-active-color: #000; }
.nav-pills .nav-link:not(.active) { color: #ffa05c; }
.accordion { --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(253, 126, 20, .3); --bs-accordion-active-bg: #ffe8d4; --bs-accordion-active-color: #6a3300; }
.accordion-button:not(.collapsed)::after { filter: sepia(1) saturate(4) hue-rotate(-20deg); }
.hero-cat svg ellipse[fill="#000"] { display: none; }

.carousel .display-5 { font-size: clamp(1.9rem, 3.2vw, 2.35rem); margin-bottom: .75rem; }
.carousel-indicators { margin-top: .5rem !important; }

/* Icons (Bootstrap Icons, MIT), Auswahl, Fokus: Teile, die der Browser sonst im Standard lässt */
.bi { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.15em; }
.bg-price { background-color: var(--bs-primary); }
.bg-price .btn-light { font-weight: 600; }
::selection { background: #fd7e14; color: #000; }
:root { accent-color: #fd7e14; caret-color: #fd7e14; scrollbar-color: #6c757d transparent; }
.carousel-indicators { align-items: center; }
#hero-pause { text-decoration: none; }
#hero-pause:hover, #hero-pause:focus-visible { color: #fff !important; text-decoration: underline; }

/* Palette: Nachtviolett aus dem Mond-Logo und Orange als Hauptfarbe */
:root { --pv-violet: #2a2142; --pv-violet-deep: #1d1631; --pv-violet-line: #3b3256; --bs-tertiary-bg: #f3f1f8; --bs-tertiary-bg-rgb: 243, 241, 248; }
[data-bs-theme="dark"] { --bs-body-bg: #1d1631; --bs-body-bg-rgb: 29, 22, 49; --bs-border-color: #3b3256; --bs-tertiary-bg: #251c3d; --bs-tertiary-bg-rgb: 37, 28, 61; --bs-secondary-color: rgba(233, 228, 245, .72); }
.navbar.bg-dark, .hero.bg-dark { background-color: var(--pv-violet) !important; }
section.bg-dark { background-color: var(--pv-violet) !important; }
footer.bg-dark { background-color: var(--pv-violet-deep) !important; }
section.bg-dark .list-group { --bs-list-group-bg: transparent; --bs-list-group-border-color: var(--pv-violet-line); }
.hero-map img { opacity: .16; }
.badge.text-bg-secondary { background-color: #4a3d6a !important; color: #f1ecf8 !important; }
.hero .badge.text-bg-secondary { background-color: #4a3d6a !important; }

/* Abschluss-Aufruf: Hintergrundvideo (Testversion) unter einem violetten Schleier */
.cta-photo { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4rem, 9vw, 7rem); color: #f1ecf8; background: #1d1631; }
.cta-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(29, 22, 49, .18); }
.cta-photo .lead { color: rgba(241, 236, 248, .9); }
/* Ohren der Katze grau statt rosa */
.hero-cat svg [fill="#ff8fa3"][opacity] { fill: #7b7d8a; opacity: 1; }

/* Diagramm „Wer sieht was“: ein Server oder Multihop */
.flow-wrap { background: var(--pv-violet); color: #f1ecf8; border-radius: var(--bs-border-radius-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.flow { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 1rem; margin-top: 2rem; }
.flow[data-mode="multi"] { --cols: 5; }
.flow-node { position: relative; text-align: center; padding-inline: .4rem; font-size: .95rem; }
.flow-node strong { display: block; font-size: 1rem; }
.flow-ico { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-inline: auto; border-radius: 50%; border: 2px solid #4a3d6a; background: #231a3a; position: relative; z-index: 1; transition: border-color .25s, color .25s, opacity .25s; }
.flow-ico svg { width: 2.1rem; height: 2.1rem; }
.flow-node:not(:last-child)::after { content: ""; position: absolute; top: 2.25rem; left: calc(50% + 2.25rem); width: calc(100% - 4.5rem + 1rem); border-top: 3px dashed #5b4f7c; transition: border-color .25s; }
.flow[data-mode="single"] [data-when="multi"], .flow[data-mode="multi"] [data-when="single"] { display: none; }
.flow[data-mode="single"] [data-only="multi"] { display: none; }
.flow[data-mode="single"] .flow-node:nth-child(-n+2)::after { border-top-style: solid; border-color: var(--bs-primary); }
.flow[data-mode="multi"] .flow-node:nth-child(-n+3)::after { border-top-style: solid; border-color: var(--bs-primary); }
.flow-node:nth-child(2) .flow-ico { opacity: .55; }
.flow-node:nth-child(3) .flow-ico { border-color: var(--bs-primary); color: var(--bs-primary); }
.flow[data-mode="multi"] .flow-node:nth-child(4) .flow-ico { border-color: var(--bs-primary); color: var(--bs-primary); }
.flow-key { display: inline-block; width: 1.6rem; border-top: 3px solid var(--bs-primary); vertical-align: middle; margin-right: .35rem; }
.flow-wrap .form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.flow-wrap .form-check-input:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 .25rem rgba(253, 126, 20, .3); }
@media (max-width: 991.98px) { .flow, .flow[data-mode="multi"] { grid-template-columns: 1fr; } .flow-node:not(:last-child)::after { display: none; } }

/* Einheitliche Abschnittsköpfe und Rundungen */
:root { --bs-border-radius: .5rem; --bs-border-radius-lg: .5rem; }
.sec-lead { max-width: 46rem; }

/* Rechtstexte */
.legal-prose { max-width: 46rem; }
.legal-prose address { font-style: normal; margin-bottom: 1rem; }

/* Fußzeile am unteren Fensterrand, auch bei kurzen Seiten */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
