/* File: vid.klarikum.de/css/styles.css */
/* Zweck: Modernes, ruhiges Layout fuer medizinische Video-Seiten */

:root {
    --bg: #f4f7fa;

    --surface: rgba(255, 255, 255, 0.85);
    --surface-strong: #ffffff;

    --text: #0f1720;
    --text-soft: #5b6b75;

    --line: rgba(15, 23, 32, 0.08);

    /* Klarikum Farben */
    --primary: #1b8fbe;        /* Hauptlogo-Blau */
    --primary-soft: #e6f4fa;   /* sehr helles Blau */
    --primary-light: #7fbfd6;  /* helles Logo-Blau */

    --accent: #1583ad;         /* etwas dunkler für Hover */

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.04);

    --radius: 24px;
    --radius-small: 18px;

    --max-width: 960px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(27, 143, 190, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(127, 191, 214, 0.08), transparent 25%),
        var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--accent);
}

.container {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.page {
    padding: 28px 0 56px;
}

/* Header */

.site-header {
    margin-bottom: 28px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo {
    height: 90px;
    width: auto;
}

/* Trust Section - zentriert */

.trust-section {
    margin-top: 48px;
    padding: 40px 24px;
    border-radius: 24px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.trust-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.trust-logo {
    height: 90px;
    width: auto;
    opacity: 1;
}

.trust-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-item {
    font-size: 0.95rem;
    color: #4b5563;
    position: relative;
    padding-left: 0;
}

/* dezente Trenner statt Bulletpoints */
.trust-item::before {
    content: "•";
    margin-right: 8px;
    color: var(--primary);
}

/* Gemeinsame Kartenoptik */

.hero,
.video-card,
.card {
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Hero */

.hero {
    padding: 40px 40px 36px;
    margin-bottom: 24px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero p {
    margin: 0;
    max-width: 700px;
    font-size: 1.08rem;
    color: var(--text-soft);
}

/* Video */

.video-section {
    margin-bottom: 24px;
}

.video-card {
    padding: 24px;
}

.video-title {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    box-shadow: var(--shadow-soft);
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-note {
    margin: 16px 4px 0;
    font-size: 0.96rem;
    color: var(--text-soft);
}

/* Inhalt / Hinweise */

.card {
    padding: 28px;
    margin-bottom: 20px;
}

.card h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.card p {
    margin: 0;
    color: var(--text-soft);
}

.notice {
    background: var(--primary-soft);
    border: 1px solid rgba(27, 143, 190, 0.15);

    border-radius: var(--radius-small);
    padding: 18px 20px;
}

.notice p {
    margin: 0;
    color: #19433f;
}

/* Footer */

.site-footer {
    margin-top: 40px;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(22, 32, 42, 0.08);
    color: var(--text-soft);
    font-size: 0.94rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* Kleine optische Verfeinerung */

.hero,
.video-card,
.card,
.site-footer-inner {
    transform: translateZ(0);
}

/* Responsive */

@media (max-width: 720px) {
    .page {
        padding: 20px 0 40px;
    }

    .hero {
        padding: 28px 24px;
    }

    .video-card,
    .card {
        padding: 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: center;      /* horizontal zentrieren */
        text-align: center;       /* Text zentrieren */
        gap: 12px;
    }

    .footer-links {
        justify-content: center;  /* Links zentrieren */
    }
}

/* Legal pages */

.page-header {
    margin-bottom: 24px;
}

.page-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.page-logo {
    height: 70px;
    width: auto;
}

.legal-card {
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 40px;
}

.legal-card h1 {
    margin: 0 0 24px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.legal-card h2 {
    margin: 32px 0 12px;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
    color: var(--text-soft);
}

.legal-card p {
    margin: 0 0 14px;
}

.legal-card ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.legal-card a {
    word-break: break-word;
}

.legal-meta {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

@media (max-width: 720px) {
    .page-logo {
        height: 80px;
    }

    .legal-card {
        padding: 24px 20px;
    }

    .legal-card h1 {
        font-size: 2rem;
    }
}

blockquote {
    margin: 18px 0;
    padding: 18px 20px;
    background: var(--primary-soft);
    border: 1px solid rgba(27, 143, 190, 0.14);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-small);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

blockquote p {
    margin: 0;
}

blockquote + p {
    margin-top: 10px;
}

.quote-source {
    margin-top: 10px;
    font-size: 0.92rem;
    color: var(--text-soft);
}

/* Construction page */

.construction-card {
    text-align: center;
    padding: 56px 40px;
}

.construction-label {
    display: inline-block;
    margin: 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.construction-card h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.construction-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 1.08rem;
    color: var(--text-soft);
}

.construction-card .notice {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: left;
}

.construction-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0 28px;
}

.construction-point {
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    color: var(--text-soft);
    box-shadow: var(--shadow-soft);
}

.construction-contact {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 820px) {
    .construction-points {
        grid-template-columns: 1fr;
    }

    .construction-card {
        padding: 40px 24px;
    }
}

.matomo-opt-out {
    margin: 1.5rem 0 2rem 0;
    padding: 1.25rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.matomo-opt-out-status {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
}

.matomo-opt-out-button {
    appearance: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1f2937;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.matomo-opt-out-button:hover {
    background: #f3f4f6;
    border-color: #94a3b8;
}

.matomo-opt-out-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.matomo-opt-out-button.is-active {
    background: #ffffff;
    color: #1f2937;
}

.matomo-opt-out-button.is-inactive {
    background: #eef6ff;
    border-color: #bcd4f6;
    color: #163b66;
}