body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Hausfarben & Variablen */
:root {
    --brand-blue: #283e5d;
    --brand-blue-dark: #1c2c44;
    --brand-orange: #e58c0a;
    --brand-orange-hover: #cc7a06;
    --bg-light: #f7f8fa;
    --surface-white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #5a6577;
    --border-subtle: rgba(40, 62, 93, 0.12);
}

/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

body.page-home {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #0b0b0b;
    color: #ffffff;
}

/* Navigation */
.navbar {
    position: relative;
    width: 100%;
    z-index: 100;
    padding: 14px 45px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid var(--brand-orange);
    box-shadow: 0 2px 16px rgba(40, 62, 93, 0.08);
    flex-shrink: 0;
}

.navbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.brand-logo:hover {
    opacity: 0.85;
}

.brand-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar nav a {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--brand-blue);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.25s ease;
    position: relative;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--brand-orange);
}

.navbar nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-orange);
}

/* Mobiles Menü-Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--brand-blue);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Startseite: Vertikaler Swipe-Container */
.snap-container {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.snap-container::-webkit-scrollbar {
    display: none;
}

.hero-section {
    position: relative;
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Textpositionierung auf Startseite: Unten Links */
.hero-content.bottom-left {
    position: absolute;
    bottom: 45px;
    left: 45px;
    z-index: 3;
    max-width: 680px;
    text-align: left;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.78);
}

.hero-meta-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hero-index {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 0.9;
}

.hero-headline {
    font-family: 'SF Mono', 'Roboto Mono', 'Cascadia Code', 'Segoe UI Mono', 'DejaVu Sans Mono', 'Liberation Mono', monospace;
    font-size: clamp(0.75rem, 0.95vw, 0.84rem);
    font-weight: 500;
    letter-spacing: 0.6px;
    line-height: 1.5;
    margin-bottom: 4px;
    color: #f7b84b;
}

.hero-headline:empty {
    display: none;
}

/* Info-Schalter */
.info-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(40, 62, 93, 0.72);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-family: 'SF Mono', 'Roboto Mono', 'Cascadia Code', 'Segoe UI Mono', 'DejaVu Sans Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.info-btn:hover,
.info-btn.active {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
    color: #ffffff;
}

.info-btn:hover {
    transform: scale(1.08);
}

.info-btn-dark {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: #ffffff;
}

/* Aufklappbares IPTC-Panel */
.iptc-details-panel {
    display: none;
    margin-top: 8px;
    padding: 10px 14px;
    border-left: 2px solid var(--brand-orange);
    background: rgba(24, 36, 54, 0.78);
    backdrop-filter: blur(8px);
    border-radius: 0 4px 4px 0;
}

.iptc-details-panel.visible {
    display: block;
}

.iptc-extra-fields {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
    font-family: 'SF Mono', 'Roboto Mono', 'Cascadia Code', 'Segoe UI Mono', 'DejaVu Sans Mono', 'Liberation Mono', monospace;
    font-size: clamp(0.75rem, 0.95vw, 0.84rem);
    letter-spacing: 0.6px;
    line-height: 1.5;
    color: var(--brand-orange);
}

.iptc-extra-fields:empty {
    display: none;
    margin-bottom: 0;
}

.iptc-extra-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.iptc-extra-label {
    color: #f7b84b;
}

.iptc-extra-value {
    color: #ffffff;
}

.hero-caption {
    font-family: 'SF Mono', 'Roboto Mono', 'Cascadia Code', 'Segoe UI Mono', 'DejaVu Sans Mono', 'Liberation Mono', monospace;
    font-size: clamp(0.75rem, 0.95vw, 0.84rem);
    letter-spacing: 0.6px;
    line-height: 1.5;
    color: #ffffff;
}

.hero-caption:empty {
    display: none;
}

.hero-caption::after,
.archive-caption::after {
    content: '▌';
    display: inline-block;
    margin-left: 3px;
    color: var(--brand-orange);
    animation: teleprinter-blink 0.9s steps(2, start) infinite;
}

@keyframes teleprinter-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Rechtliche Links auf der Startseite */
.hero-legal-links {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.hero-legal-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-legal-links a:hover {
    color: #f7b84b;
}

/* Copyright-Widget unten rechts */
.copyright-widget {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 10;
    display: flex;
    align-items: center;
    background: rgba(40, 62, 93, 0.86);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.copyright-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.copyright-btn:hover {
    transform: scale(1.1);
    color: #f7b84b;
}

.credit-text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #ffffff;
    transition: max-width 0.4s ease, padding 0.4s ease;
}

.copyright-widget.active .credit-text {
    max-width: 300px;
    padding: 0 12px 0 4px;
}

/* Unterseiten Layout (Helles Corporate Design) */
.subpage-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 45px 80px;
}

.page-text .section-eyebrow {
    color: var(--brand-orange);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 6px;
}

.page-text .page-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: -18px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--brand-orange);
}

.page-text .has-subtitle h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
}

/* Zweispaltiges Layout für Rechtliches (Impressum / Datenschutz) */
.legal-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 45px 80px;
}

.legal-two-col {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 40px;
}

.legal-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin-bottom: 10px;
}

.legal-sidebar h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1.15;
    margin-bottom: 12px;
}

.legal-sidebar p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-section {
    background-color: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--brand-orange);
    border-radius: 6px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(40, 62, 93, 0.04);
}

.legal-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--brand-blue);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--brand-orange);
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: var(--brand-orange);
}

.legal-footer {
    margin-top: 72px;
    padding-top: 24px;
    }
/* Textseiten im Stil der Startseite (horizontal zentriert, startet oben) */
.page-text .text-page-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7rem 1.5rem 5rem;
    box-sizing: border-box;
}

.page-text .centered-text-column {
    width: 100%;
    max-width: 640px;
    text-align: left;
    line-height: 1.65;
}

.page-text .centered-text-column h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.page-text .centered-text-column h2 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.page-text .centered-text-column p {
    margin-bottom: 1rem;
}

/* =========================================================
   Textseiten (Impressum, Datenschutz)
   ========================================================= */
.text-page-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

.page-text .centered-text-column {
    background-color: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 48px 52px;
    box-shadow: 0 4px 20px rgba(40, 62, 93, 0.04);
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 15.5px;
}

.page-text h1 {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--brand-blue);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--brand-orange);
}

.page-text h2 {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--brand-blue);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 28px;
    margin-bottom: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}

.page-text h1 + h2 {
    border-top: none;
    padding-top: 0;
    margin-top: 8px;
}

.page-text p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.page-text p:last-child {
    margin-bottom: 0;
}

.page-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.page-text address {
    font-style: normal;
}

.page-text .centered-text-column a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(40, 62, 93, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.page-text .centered-text-column a:hover {
    color: var(--brand-orange);
    border-bottom-color: var(--brand-orange);
}

/* Rechtliche Links unten auf hellen Textseiten sichtbar machen */
.page-text .hero-legal-links {
    margin-top: 28px;
    justify-content: center;
    color: var(--text-muted);
}

.page-text .hero-legal-links a {
    color: var(--text-muted);
}

.page-text .hero-legal-links a:hover,
.page-text .hero-legal-links a[aria-current="page"] {
    color: var(--brand-orange);
}

@media (max-width: 640px) {
    .text-page-container {
        padding: 36px 16px 56px;
    }

    .page-text .centered-text-column {
        padding: 28px 22px;
    }

    .page-text h1 {
        font-size: 1.65rem;
    }
    .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
}