/* =====================================================
   U960 DESIGN SYSTEM
   Marine · Einsatz · Klarheit
   ===================================================== */


/* =====================================================
   1. DESIGN-VARIABLEN
   Zentrale Steuerung von Farben & Effekten
   ===================================================== */

:root {
    /* Grundfarben */
    --u960-bg-main: #0b1e2d;
    --u960-bg-deep: #030c14;

    /* Karten / Flächen */
    --u960-panel-front: rgba(15, 55, 95, 0.92);
    --u960-panel-back:  rgba(0, 70, 130, 0.95);

    /* Text */
    --u960-text-main: #e4f1ff;
    --u960-text-soft: #eaf6ff;

    /* Akzente */
    --u960-accent: #48CAE4;
    --u960-accent-strong: #00b4d8;

    /* Status */
    --u960-warning: #FFC300;

    /* Sonar */
    --sonar-size: 20px;
    --sonar-duration: 4s;
}


/* =====================================================
   2. GLOBALER MARINE-HINTERGRUND
   Vollflächig, ruhig, ohne Kanten
   ===================================================== */

html {
    min-height: 100%;
    background:
        radial-gradient(
            1400px 700px at 50% -300px,
            rgba(120, 170, 200, 0.12),
            transparent 65%
        ),
        linear-gradient(
            180deg,
            var(--u960-bg-main),
            var(--u960-bg-deep)
        );
}

body {
    margin: 0;
    min-height: 100vh;
    background: transparent;
    color: var(--u960-text-main);
    font-family: "U960 DIN", Arial, sans-serif;
    letter-spacing: 0.02em;
}


/* =====================================================
   3. TYPOGRAFIE – DIN SYSTEM
   ===================================================== */

@font-face {
    font-family: "U960 DIN";
    src: url("../fonts/d-din.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "U960 DIN";
    src: url("../fonts/d-din-bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "U960 DIN Condensed";
    src: url("../fonts/d-dincondensed.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "U960 DIN Stencil";
    src: url("../fonts/din-stencil-cracked.woff2") format("woff2");
    font-display: swap;
}

h1, h2, h3 {
    font-family: "U960 DIN Condensed", "U960 DIN", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

p, li {
    color: var(--u960-text-soft);
    line-height: 1.65;
}

.u960-stencil {
    font-family: "U960 DIN Stencil", "U960 DIN Condensed", sans-serif;
    letter-spacing: 0.35em;
    color: var(--u960-accent);
}


/* =====================================================
   4. NAVIGATION
   ===================================================== */

.u960-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(
        180deg,
        rgba(8, 28, 45, 0.96),
        rgba(3, 14, 22, 0.96)
    );
    border-bottom: 1px solid rgba(72, 202, 228, 0.2);
}

.u960-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.u960-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.u960-menu a {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--u960-text-soft);
    opacity: 0.85;
}

.u960-menu a:hover,
.u960-menu .current-menu-item > a {
    color: var(--u960-accent);
    opacity: 1;
}

/* Standard: Burger ausblenden (Desktop) */
.u960-nav-toggle {
    display: none;
}

/* Burger nur auf Mobile anzeigen */
@media (max-width: 900px) {
    .u960-nav-toggle {
        display: block;
    }
}


/* =====================================================
   5. HERO-BEREICH
   ===================================================== */

.u960-hero {
    min-height: 100vh;
    background: url("../images/u960-hero-bg.png") center right / cover no-repeat;
    display: flex;
    /* align-items: center; */
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.u960-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 10, 20, 0.88),
        rgba(0, 8, 20, 0.6)
    );
}

.u960-hero-content {
    position: relative;
    max-width: 900px;
    padding: 40px;
    text-align: center;
}

/* Großes Stencil-Callsign */
.u960-hero .u960-stencil {
    position: relative;
    display: inline-block;
    font-size: clamp(5rem, 14vw, 9rem);
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    margin-bottom: 36px;
    text-shadow:
        0 0 18px rgba(72, 202, 228, 0.45),
        0 3px 12px rgba(0, 0, 0, 0.65);
}

/* Akzentlinie unter Callsign */
.u960-hero .u960-stencil::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(72, 202, 228, 0.75),
        transparent
    );
    opacity: 0.7;
}

.u960-hero h1 {
    color: var(--u960-accent);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}


/* =====================================================
   6. CONTENT-SEKTIONEN (MISSION / WARUM)
   ===================================================== */

.u960-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.u960-section h2 {
    color: var(--u960-accent);
    border-left: 4px solid var(--u960-accent-strong);
    padding-left: 15px;
}

.u960-section p {
    max-width: 820px;
    background: linear-gradient(
        180deg,
        rgba(10, 40, 65, 0.65),
        rgba(5, 25, 40, 0.75)
    );
    padding: 20px 24px;
    border-left: 3px solid var(--u960-accent-strong);
    border-radius: 4px;
}


/* =====================================================
   7. EINSATZKARTEN (3D-FLIP)
   ===================================================== */

.u960-cards {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* 3D-Container */
.u960-flip-inner {
    position: relative;
    height: 460px; /* ⬅️ mehr Platz für Rückseitentexte */
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.u960-flip-card:hover .u960-flip-inner {
    transform: rotateY(180deg);
}

/* Gemeinsame Kartenflächen */
.u960-flip-front,
.u960-flip-back {
    position: absolute;
    inset: 0;
    padding: 28px;
    border-radius: 8px;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    display: flex;
    flex-direction: column;
}

/* -----------------------------
   Vorderseite
   ----------------------------- */
.u960-flip-front {
    justify-content: center;

    background: linear-gradient(
        180deg,
        var(--u960-panel-front),
        rgba(5, 30, 55, 0.95)
    );

    border: 1px solid rgba(72, 202, 228, 0.4);
}

/* -----------------------------
   Rückseite – TEXT OPTIMIERT
   ----------------------------- */
.u960-flip-back {
    justify-content: space-between; /* ⬅️ verteilt Inhalte sauber */
    gap: 10px;

    background: linear-gradient(
        180deg,
        var(--u960-panel-back),
        rgba(0, 20, 40, 0.98)
    );

    transform: rotateY(180deg);

    font-size: 0.88rem;
    line-height: 1.5;

    /* Fallback für sehr lange Inhalte */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(72, 202, 228, 0.4) transparent;
}

/* dezente Scrollbar */
.u960-flip-back::-webkit-scrollbar {
    width: 4px;
}
.u960-flip-back::-webkit-scrollbar-thumb {
    background: rgba(72, 202, 228, 0.4);
}

/* -----------------------------
   Typografie Rückseite
   ----------------------------- */

.u960-flip-back h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
    color: var(--u960-accent);
}

.u960-flip-back p {
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.u960-flip-back ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.u960-flip-back li {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 4px;
    padding-left: 14px;
    position: relative;
}

.u960-flip-back li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--u960-accent-strong);
}

/* -----------------------------
   Mobile Feinjustierung
   ----------------------------- */
@media (max-width: 768px) {
    .u960-flip-inner {
        height: 520px;
    }
}


/* =====================================================
   8. FOOTER – STATUSLEISTE
   ===================================================== */

.site-footer {
    padding: 24px 20px;
    background: linear-gradient(
        180deg,
        rgba(5, 20, 35, 0.98),
        rgba(2, 10, 18, 1)
    );
    border-top: 1px solid rgba(72, 202, 228, 0.15);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--u960-text-soft);
}


/* =====================================================
   9. SONAR
   ===================================================== */

.u960-sonar-wrapper {
    display: flex;
    justify-content: center;
    margin: 80px 0;
}

.u960-sonar {
    width: var(--sonar-size);
    height: var(--sonar-size);
    border-radius: 50%;
    background: var(--u960-accent-strong);
    animation: u960-sonar-pulse var(--sonar-duration) linear infinite;
}

@keyframes u960-sonar-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,180,216,0.6); }
    70%  { box-shadow: 0 0 0 50px rgba(0,180,216,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,180,216,0); }
}


/* =====================================================
   10. NOTFALL-BUTTON (NAVIGATION)
   ===================================================== */

.u960-btn-alert {
    padding: 8px 16px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--u960-warning);
    background: linear-gradient(
        180deg,
        rgba(255, 195, 0, 0.12),
        rgba(255, 195, 0, 0.05)
    );
    border: 1px solid rgba(255, 195, 0, 0.65);
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.u960-btn-alert:hover {
    background: rgba(255, 195, 0, 0.95);
    color: #000;
}

/* =====================================================
   IT-NOTFALL – SPEZIELLER SEITENSTIL
   ===================================================== */

.u960-it-emergency {
    background: transparent;
}

/* Hero */
.u960-emergency-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.u960-emergency-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(30, 0, 0, 0.75),
        rgba(0, 8, 20, 0.9)
    );
}

.u960-emergency-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px;
}

.u960-emergency-label {
    color: var(--u960-warning);
    font-size: 1.2rem;
}

/* Checkliste */
.u960-emergency-checklist {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.u960-emergency-checklist li {
    padding-left: 28px;
    margin-bottom: 14px;
    position: relative;
}

.u960-emergency-checklist li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

/* Kontakt */
.u960-emergency-contact {
    text-align: center;
}

.u960-emergency-note {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* =====================================================
   IT-NOTFALL – ERSTE-HILFE-CHECKLISTE
   ===================================================== */

.u960-emergency-check {
    margin-top: 40px;
}

.u960-emergency-intro {
    max-width: 820px;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Checkliste */
.u960-emergency-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    max-width: 820px;
}

.u960-emergency-checklist li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.u960-emergency-checklist li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--u960-warning);
    font-size: 1.1rem;
}

/* DSGVO Box */
.u960-dsgvo-hint {
    max-width: 820px;
    margin: 0 auto 40px auto; /* ⬅️ DAS ist der Fix */
    
    background: linear-gradient(
        180deg,
        rgba(80, 30, 0, 0.25),
        rgba(40, 20, 0, 0.35)
    );

    border-left: 4px solid var(--u960-warning);
    padding: 22px 24px;
    border-radius: 4px;
}

.u960-dsgvo-hint h3 {
    margin-top: 0;
    color: var(--u960-warning);
}

/* Download */
.u960-emergency-download {
    text-align: center;
}

.u960-download-note {
    margin-top: 12px;
    font-size: 0.8rem;
    opacity: 0.85;
}

/* =====================================================
   11. 72-STUNDEN TIMELINE (DSGVO)
   ===================================================== */

.u960-emergency-timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.u960-timeline {
    position: relative;
    max-width: 820px;
    margin: 40px auto 0;
    padding-left: 30px;
}

/* Vertikale Linie */
.u960-timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(72, 202, 228, 0.6),
        rgba(72, 202, 228, 0.1)
    );
}

/* Einzelner Abschnitt */
.u960-timeline-item {
    position: relative;
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* Marker */
.u960-timeline-marker {
    position: absolute;
    left: -4px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--u960-accent);
    box-shadow:
        0 0 0 4px rgba(72, 202, 228, 0.25),
        0 0 12px rgba(72, 202, 228, 0.6);
}

/* Inhalt */
.u960-timeline-content {
    background: linear-gradient(
        180deg,
        rgba(10, 40, 65, 0.65),
        rgba(5, 25, 40, 0.75)
    );
    padding: 20px 24px;
    border-left: 3px solid var(--u960-accent-strong);
    border-radius: 4px;
}

.u960-timeline-time {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--u960-accent);
}

.u960-timeline-content h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--u960-text-main);
}

.u960-timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =====================================================
   TIMELINE MARKER – ZEITLICHE POSITIONIERUNG
   ===================================================== */

.u960-timeline-marker {
    position: absolute;
    left: -4px;

    width: 16px;
    height: 16px;
    border-radius: 50%;

    background: var(--u960-accent);
    box-shadow:
        0 0 0 4px rgba(72, 202, 228, 0.25),
        0 0 12px rgba(72, 202, 228, 0.6);
}

.u960-timeline-item.step-start .u960-timeline-marker {
    top: 24px;
}

.u960-timeline-item.step-middle .u960-timeline-marker {
    top: 50%;
    transform: translateY(-50%);
}

.u960-timeline-item.step-end {
    position: relative; /* sicherstellen */
}

.u960-timeline-item.step-end .u960-timeline-marker {
    top: auto;        /* oben nicht blockieren */
    bottom: 24px;     /* 24px über Inhalt/Box-Rand */
    transform: none;  /* nichts mehr verschieben */
}

/* =====================================================
   TIMELINE MARKER – SONAR PULS
   ===================================================== */

@keyframes u960-sonar-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(72, 202, 228, 0.45),
            0 0 10px rgba(72, 202, 228, 0.6);
        transform: scale(1);
    }

    70% {
        box-shadow:
            0 0 0 14px rgba(72, 202, 228, 0),
            0 0 18px rgba(72, 202, 228, 0.4);
        transform: scale(1.05);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(72, 202, 228, 0),
            0 0 10px rgba(72, 202, 228, 0.6);
        transform: scale(1);
    }
}

.u960-timeline-marker {
    position: absolute;
    left: -4px;

    width: 16px;
    height: 16px;
    border-radius: 50%;

    background: var(--u960-accent);

    animation: u960-sonar-pulse 2.6s ease-out infinite;
}

/* =====================================================
   LEGAL SEITEN – IMPRESSUM & DATENSCHUTZ
   Einheitliches Layout & Typografie
   ===================================================== */

.u960-legal {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Hauptüberschrift */
.u960-legal h1 {
    margin-bottom: 40px;
}

/* Abschnittsüberschriften */
.u960-legal h2 {
    margin: 30px 0 10px;
    font-size: 1rem;
    color: var(--u960-accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Unterüberschriften (Datenschutz) */
.u960-legal h3 {
    margin: 20px 0 8px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--u960-text-main);
}

/* Textblöcke */
.u960-legal p {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Boxen (z. B. Kontakt, Versicherung, Hinweise) */
.u960-legal-block {
    margin-bottom: 40px;
    padding: 22px 24px;
    background: linear-gradient(
        180deg,
        rgba(10, 40, 65, 0.6),
        rgba(5, 25, 40, 0.7)
    );
    border-left: 3px solid var(--u960-accent-strong);
    border-radius: 4px;
}

/* Warn-/Hinweisbox (z. B. DSGVO) */
.u960-legal-block.warning {
    border-left-color: var(--u960-warning);
    background: linear-gradient(
        180deg,
        rgba(80, 40, 0, 0.25),
        rgba(40, 25, 0, 0.35)
    );
}

/* Links */
.u960-legal a {
    color: var(--u960-accent);
    text-decoration: none;
}

.u960-legal a:hover {
    text-decoration: underline;
}

/* Quellen / Hinweise klein */
.u960-legal-source {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

/* =====================================================
   FOOTER – RECHTLICHE LINKS
   ===================================================== */

.u960-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.u960-footer-legal {
    margin-top: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.u960-footer-legal a {
    color: var(--u960-text-soft);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.u960-footer-legal a:hover {
    color: var(--u960-accent);
    opacity: 1;
}

/* =====================================================
   RESPONSIVE MEDIA QUERIES
   KEINE Design- oder Layoutänderung
   ===================================================== */


/* =====================================================
   DESKTOP LARGE (≥ 1400px)
   ===================================================== */

@media (min-width: 1400px) {
    .u960-nav-inner,
    .u960-section,
    .u960-emergency-timeline {
        max-width: 1400px;
    }
}


/* =====================================================
   DESKTOP / LAPTOP (1200px – 1399px)
   ===================================================== */

@media (max-width: 1399px) {
    .u960-nav-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* =====================================================
   TABLET LANDSCAPE (992px – 1199px)
   ===================================================== */

@media (max-width: 1199px) {

    .u960-hero-content {
        padding-left: 32px;
        padding-right: 32px;
    }

    .u960-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .u960-emergency-timeline {
        padding-left: 32px;
        padding-right: 32px;
    }
}


/* =====================================================
   TABLET PORTRAIT (768px – 991px)
   ===================================================== */

@media (max-width: 991px) {

    .u960-menu {
        gap: 20px;
    }

    .u960-hero-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .u960-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .u960-flip-inner {
        height: 520px;
    }

    .u960-timeline {
        padding-left: 26px;
    }
}


/* =====================================================
   MOBILE (≤ 767px)
   ===================================================== */

@media (max-width: 767px) {

    /* Navigation */
    .u960-nav-inner {
        padding: 12px 16px;
    }

    .u960-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Hero */
    .u960-hero-content {
        padding: 24px 16px;
    }

    /* Content */
    .u960-section {
        padding: 60px 16px;
    }

    /* Cards */
    .u960-cards {
        grid-template-columns: 1fr;
    }

    .u960-flip-inner {
        height: 560px;
    }

    /* Sonar */
    .u960-sonar-wrapper {
        margin: 60px 0;
    }

    /* Timeline */
    .u960-emergency-timeline {
        padding: 60px 16px;
    }

    .u960-timeline {
        padding-left: 22px;
    }
}

/* =====================================================
   SMALL MOBILE (≤ 480px)
   ===================================================== */

@media (max-width: 480px) {

    .u960-hero-content {
        padding: 20px 14px;
    }

    .u960-flip-inner {
        height: 600px;
    }

    .u960-timeline-marker {
        width: 14px;
        height: 14px;
        left: -3px;
    }
}

