/* =========================================================
   medi cine — Redesign-Prototyp
   Editorial / Hell / Clean
   ========================================================= */

/* ---- 1. Design Tokens ---- */
:root {
    /* Brand — Werte aus Original-Logo entnommen */
    --brand-red:        #9e1d31;
    --brand-red-dark:   #7a162a;
    --brand-red-soft:   #f5e8eb;
    --brand-silver:     #adb2b6;   /* Sekundärton aus Logo */

    /* Neutral */
    --ink:              #14110F;
    --ink-2:            #3A3631;
    --ink-3:            #6B6660;
    --paper:            #FAF8F4;
    --paper-2:          #F1ECE3;
    --line:             #E5DFD3;
    --white:            #FFFFFF;

    /* Typo */
    --font-display: "Fraunces", "Times New Roman", serif;
    --font-sans:    "Inter Tight", -apple-system, "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --maxw: 1240px;
    --gutter: 32px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
}

/* ---- 2. Reset & Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-red); }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
}

/* ---- 3. Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.3; }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--brand-red);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: var(--brand-red);
    display: inline-block;
}

.lede {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 60ch;
}

/* ---- 4. Header / Navigation ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

/* Logo — Original SVG, ersetzt den vorherigen Schriftzug-Platzhalter. */
.logo {
    display: inline-block;
    width: 130px;
    height: 38px;
    background-image: url('../img/logo.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    line-height: 0;
    vertical-align: middle;
}
.logo .logo-accent,
.logo .logo-tag {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}
.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    position: relative;
    padding: 4px 0;
}
.nav-menu a.is-active { color: var(--ink); }
.nav-menu a.is-active::after {
    content: ""; position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--brand-red);
}
.nav-menu .btn-contact {
    background: var(--ink);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    transition: background .2s ease;
}
.nav-menu .btn-contact:hover { background: var(--brand-red); color: var(--white); }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
}

/* ---- 5. Image-Clip Section (Home only) ---- */
.image-clip {
    position: relative;
    background: var(--ink);
    overflow: hidden;
    height: clamp(360px, 50vh, 520px);
}
.image-clip video,
.image-clip .clip-poster {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.image-clip .clip-poster {
    background:
        linear-gradient(135deg, #1a1a1a 0%, #2c2624 50%, #1a1a1a 100%);
    display: flex; align-items: center; justify-content: center;
}
.image-clip .clip-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(158,29,49,0.45) 0%, transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(158,29,49,0.22) 0%, transparent 50%);
}

.image-clip .clip-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--gutter) 48px;
    max-width: var(--maxw);
    margin: 0 auto;
}
.image-clip .clip-eyebrow {
    color: var(--white);
    opacity: 0.85;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-flex; align-items: center; gap: 12px;
}
.image-clip .clip-eyebrow::before {
    content: ""; width: 28px; height: 1px; background: var(--brand-red);
}
.image-clip h1 {
    color: var(--white);
    max-width: 18ch;
    font-style: italic;
}
.image-clip h1 .accent { color: var(--brand-red); font-style: normal; }

.play-badge {
    position: absolute;
    top: 32px; right: var(--gutter);
    z-index: 3;
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 12px;
    letter-spacing: 0.05em;
}
.play-badge .play-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--brand-red);
    display: inline-flex; align-items: center; justify-content: center;
}
.play-badge .play-icon::after {
    content: "";
    width: 0; height: 0;
    border-left: 8px solid var(--white);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

/* ---- 5b. Page Hero (für Unterseiten ohne Video) ---- */
.page-hero {
    padding: 96px 0 56px;
    border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 {
    color: var(--ink);
    font-style: italic;
    max-width: 18ch;
    margin-bottom: 24px;
}
.page-hero h1 em {
    font-style: normal;
    color: var(--brand-red);
}
.page-hero-lede {
    color: var(--ink-2);
    font-size: 1.125rem;
    max-width: 50ch;
    line-height: 1.65;
}

/* ---- 6. Intro / Company Info ---- */
.intro {
    padding: 96px 0 80px;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}
.intro-grid .intro-left .eyebrow { margin-bottom: 16px; }
.intro-grid h2 {
    font-style: italic;
    color: var(--ink);
}
.intro-grid h2 em {
    font-style: normal;
    color: var(--brand-red);
}
.intro-grid .intro-right p {
    color: var(--ink-2);
    font-size: 1.0625rem;
    line-height: 1.75;
}
.intro-grid .intro-right p + p { margin-top: 1em; }

/* About-Variante: erstes Absatz größer / als Lead */
.about .intro-right p.lead {
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 1.1em;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.stat .stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--ink);
    display: block;
    margin-bottom: 8px;
}
.stat .stat-num .unit { color: var(--brand-red); }
.stat .stat-label {
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.5;
}

/* ---- 6b. Section Header (gemeinsam für Team, Jobs etc.) ---- */
.section-header {
    max-width: 640px;
    margin-bottom: 56px;
}
.section-header .eyebrow { margin-bottom: 14px; }
.section-header h2 {
    font-style: italic;
    color: var(--ink);
}
.section-header h2 em {
    font-style: normal;
    color: var(--brand-red);
}
.section-header .lede {
    margin-top: 18px;
}
.section-header .lede a {
    color: var(--brand-red);
    font-weight: 500;
    border-bottom: 1px solid currentColor;
}

/* ---- 7. Broadcaster Strip ---- */
.broadcasters {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
    background: var(--paper-2);
}
.broadcasters-inner {
    display: flex; align-items: center;
    gap: 48px; flex-wrap: wrap;
}
.broadcasters .label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.broadcasters .logos {
    display: flex;
    align-items: center;
    gap: 44px;
    flex-wrap: wrap;
}
.broadcasters .logos .broadcaster-logo {
    height: 30px;
    width: auto;
    opacity: 0.75;
    transition: opacity .25s ease;
}
.broadcasters .logos .broadcaster-logo:hover {
    opacity: 1;
}
.broadcasters .logos img[alt="ProSieben"] { height: 34px; }
.broadcasters .logos img[alt="arte"],
.broadcasters .logos img[alt="3sat"] { height: 24px; }

/* ---- 8. Project Highlights ---- */
.highlights {
    padding: 96px 0 80px;
}
.highlights-head {
    display: flex; align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 32px;
    flex-wrap: wrap;
}
.highlights-head .eyebrow { margin-bottom: 12px; }
.highlights-head h2 { font-style: italic; max-width: 18ch; }
.highlights-head h2 em { font-style: normal; color: var(--brand-red); }
.highlights-head .view-all {
    font-size: 14px; font-weight: 500;
    color: var(--ink);
    display: inline-flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}

.filter-bar {
    display: flex; gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.filter-bar button {
    font-size: 13px; font-weight: 500;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-2);
    background: transparent;
    transition: all .2s ease;
}
.filter-bar button:hover { border-color: var(--ink); }
.filter-bar button.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.project-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink-3);
    box-shadow: 0 12px 32px -16px rgba(20,17,15,0.18);
}
.project-card .card-media {
    aspect-ratio: 16 / 10;
    background: var(--paper-2);
    position: relative;
    overflow: hidden;
}
.project-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.project-card:hover .card-media img {
    transform: scale(1.04);
}
.project-card .card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(20,17,15,0.12) 100%);
    pointer-events: none;
}
.project-card .card-body { padding: 22px 24px 26px; }
.project-card .card-cat {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-red);
    font-weight: 500;
}
.project-card h3 {
    font-style: italic;
    margin-top: 8px;
    color: var(--ink);
}
.project-card .card-meta {
    font-size: 13px;
    color: var(--ink-3);
    margin-top: 6px;
}

/* ---- 8b. Team (Über uns) ---- */
.team {
    padding: 96px 0;
    background: var(--paper-2);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
}
.team-member {
    cursor: default;
}
.team-photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--paper);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, filter .4s ease;
    filter: grayscale(0.25) brightness(0.97);
}
.team-member:hover .team-photo img {
    transform: scale(1.04);
    filter: grayscale(0) brightness(1);
}
.team-member h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ink);
    line-height: 1.2;
}
.team-role {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-red);
    font-weight: 500;
}

/* ---- 8c. Jobs ---- */
.jobs {
    padding: 96px 0;
}
.jobs-list {
    border-top: 1px solid var(--line);
}
.job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    gap: 24px;
    transition: padding-left .25s ease, border-bottom-color .25s ease;
}
.job-item:hover {
    padding-left: 12px;
    border-bottom-color: var(--brand-red);
    color: var(--ink);
}
.job-item:hover .job-action {
    gap: 14px;
}
.job-meta {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-3);
    font-weight: 500;
    margin-bottom: 8px;
}
.job-item h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1.25;
}
.job-action {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-red);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap .25s ease;
}
.job-action svg {
    width: 18px;
    height: 18px;
}

/* ---- 9. Services Strip ---- */
.services {
    background: var(--ink);
    color: var(--white);
    padding: 80px 0;
}
.services .eyebrow { color: var(--brand-red); margin-bottom: 16px; }
.services h2 { color: var(--white); font-style: italic; margin-bottom: 56px; max-width: 18ch; }
.services h2 em { font-style: normal; color: var(--brand-red); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.service-item {
    padding: 40px 32px 40px 0;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.service-item:last-child { border-right: none; padding-right: 0; }
.service-item:not(:first-child) { padding-left: 32px; }
.service-item .num {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--brand-red);
    font-size: 1.25rem;
    margin-bottom: 12px;
    display: block;
}
.service-item h3 {
    color: var(--white);
    font-style: italic;
    margin-bottom: 12px;
    font-size: 1.75rem;
}
.service-item p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.7;
}

/* ---- 10. Contact CTA ---- */
.cta {
    padding: 96px 0;
    background: var(--paper);
}
.cta-inner {
    background: var(--brand-red);
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    color: var(--white);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: "";
    position: absolute;
    top: -50%; right: -10%;
    width: 60%; height: 200%;
    background: rgba(255,255,255,0.06);
    transform: rotate(15deg);
    pointer-events: none;
}
.cta h2 {
    color: var(--white);
    font-style: italic;
    margin-bottom: 12px;
}
.cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    max-width: 38ch;
}
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cta-actions .btn-phone {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.875rem;
    color: var(--white);
    letter-spacing: -0.01em;
}
.cta-actions .btn-mail {
    color: var(--white);
    background: var(--ink);
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease;
}
.cta-actions .btn-mail:hover { background: var(--white); color: var(--brand-red); }

/* ---- 11. Footer (kompakt — horizontal) ---- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 22px 0 18px;
    font-size: 13px;
}
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}
.footer-row .logo {
    width: 92px;
    height: 27px;
}

.footer-address {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    flex: 1;
    min-width: 240px;
    line-height: 1.5;
}
.footer-address a { color: rgba(255, 255, 255, 0.9); }
.footer-address a:hover { color: var(--brand-red); }
.footer-address .sep {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 10px;
    display: inline-block;
}

.footer-social {
    display: flex;
    gap: 8px;
}
.footer-social a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.75);
    transition: border-color .2s ease, color .2s ease;
}
.footer-social a:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}
.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}
.footer-bottom .legal {
    display: flex;
    gap: 18px;
}
.footer-bottom a:hover { color: var(--brand-red); }

/* ---- 12. Responsive ---- */
@media (max-width: 960px) {
    .intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .service-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 32px 0; }
    .service-item:not(:first-child) { padding-left: 0; }
    .service-item:last-child { border-bottom: none; padding-bottom: 0; }
    .cta-inner { grid-template-columns: 1fr; padding: 48px 32px; }
    .cta-actions { align-items: flex-start; }
    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
}

@media (max-width: 640px) {
    :root { --gutter: 20px; }
    .nav-menu { display: none; }
    .nav-toggle { display: inline-flex; }
    .logo { width: 110px; height: 32px; }
    .page-hero { padding: 56px 0 36px; }
    .intro { padding: 64px 0 56px; }
    .intro-stats { grid-template-columns: 1fr; gap: 20px; }
    .highlights { padding: 64px 0 56px; }
    .project-grid { grid-template-columns: 1fr; }
    .broadcasters-inner { gap: 20px; }
    .broadcasters .logos { gap: 28px; }
    .broadcasters .logos .broadcaster-logo { height: 24px; }
    .broadcasters .logos img[alt="ProSieben"] { height: 28px; }
    .broadcasters .logos img[alt="arte"],
    .broadcasters .logos img[alt="3sat"] { height: 20px; }
    .team { padding: 56px 0; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .team-member h3 { font-size: 1.0625rem; }
    .jobs { padding: 56px 0; }
    .job-item { flex-direction: column; align-items: flex-start; padding: 24px 0; gap: 10px; }
    .job-item:hover { padding-left: 0; }
    .job-item h3 { font-size: 1.25rem; }
    .cta-inner { padding: 36px 24px; }
    .image-clip { height: 320px; }
    .image-clip .clip-overlay { padding-bottom: 32px; }
    .play-badge { top: 20px; right: 20px; padding: 6px 12px 6px 6px; font-size: 11px; }
    .footer-row { gap: 16px; }
    .footer-row .logo { width: 80px; height: 23px; }
    .footer-address { font-size: 12px; min-width: 100%; order: 3; }
    .footer-social { order: 2; }
}
