/* STAIDIUM Group – Entwurf Startseite mit Bereichs-Kacheln
   Layout: Vollbild-Bühne, Hintergrund wechselt mit der aktiven Kachel; darunter einfache Bereichsseiten. */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #0f1112;
    --ink-soft: #1b1e20;
    --paper: #f3f2ef;
    --white: #ffffff;
    --muted: #a9aeb1;
    --muted-dark: #5d6367;
    --line: rgba(255, 255, 255, 0.16);
    --red: #dd0b2f;
    --red-dark: #c60929;
    --font: "Inter", Arial, Helvetica, sans-serif;
    --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* Hinweis-Leiste: nur im Entwurf */
.draft-bar {
    position: relative;
    z-index: 30;
    padding: 7px 0;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Kopfzeile */
.site-header {
    position: relative;
    z-index: 20;
    padding-block: 22px;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { font-size: 15px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; }
.header-link { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.header-link:hover, .header-link:focus-visible { color: var(--white); }
.header-right { display: flex; align-items: center; gap: 24px; }

/* Sprachumschalter DE | EN */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.lang-switch a { padding: 6px 8px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--white); }
.lang-switch a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); }
@media (max-width: 480px) {
    .header-link { display: none; }
}

/* Bühne mit wechselndem Hintergrund */
.stage {
    position: relative;
    min-height: calc(100svh - 30px);
    display: flex;
    flex-direction: column;
    isolation: isolate;
    overflow: hidden;
}
.stage-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 6s ease;
}
.stage-bg.is-active { opacity: 1; transform: scale(1); }
.stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(10, 12, 13, 0.72) 0%, rgba(10, 12, 13, 0.25) 38%, rgba(10, 12, 13, 0.9) 100%),
        linear-gradient(90deg, rgba(10, 12, 13, 0.55) 0%, rgba(10, 12, 13, 0) 60%);
}

.stage-copy { flex: 1; display: flex; align-items: center; padding-block: 40px 48px; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--white);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.stage h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(40px, 6.2vw, 84px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.stage-intro { max-width: 560px; margin: 0; color: #dfe2e3; font-size: 18px; }
.stage-hint { margin: 22px 0 0; color: var(--muted); font-size: 13px; }

/* Kacheln */
.tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
}
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 210px;
    padding: 26px 26px 24px;
    background: rgba(12, 14, 15, 0.72);
    backdrop-filter: blur(6px);
    text-decoration: none;
    transition: background 0.25s ease;
}
.tile::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.tile:hover, .tile:focus-visible, .tile.is-active { background: rgba(12, 14, 15, 0.9); }
.tile:hover::before, .tile:focus-visible::before, .tile.is-active::before { transform: scaleX(1); }
.tile:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.tile-sports { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.tile h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.tile-products { margin: 0; color: #d5d8d9; font-size: 14px; }
.tile-go {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}
.tile-go span { transition: transform 0.25s ease; }
.tile:hover .tile-go span, .tile:focus-visible .tile-go span { transform: translateX(4px); }
.tile-thumb { display: none; }

/* Bereichsseiten */
.page-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    overflow: hidden;
    padding-block: 120px 56px;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.9s ease; }
.page-hero-bg.is-active { opacity: 1; }
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 12, 13, 0.55), rgba(10, 12, 13, 0.92));
}
.page-hero h1 { margin: 0 0 14px; font-size: clamp(38px, 5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.page-hero p { max-width: 640px; margin: 0; color: #dfe2e3; font-size: 18px; }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.back:hover, .back:focus-visible { color: var(--white); }

.products { background: var(--paper); color: var(--ink); padding-block: 72px 88px; }
.products h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.02em; }
.products > .wrap > p { margin: 0 0 34px; color: var(--muted-dark); max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 26px;
    background: var(--white);
    border-top: 3px solid var(--red);
}
.card h3 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted-dark); }
.card .status { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; }
.card a.status { color: var(--red-dark); text-decoration: none; }
.card a.status:hover, .card a.status:focus-visible { text-decoration: underline; }
.card span.status { color: var(--muted-dark); }

.placeholder-note {
    margin: 34px 0 0;
    padding: 14px 18px;
    background: #e6e4de;
    color: var(--muted-dark);
    font-size: 14px;
}


/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding-block: 26px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); }

/* Tablet */
@media (max-width: 1020px) {
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Handy: Kacheln untereinander, jede mit eigenem Bild */
@media (max-width: 640px) {
    .wrap { width: calc(100% - 32px); }
    .stage { min-height: 0; }
    .stage-copy { padding-block: 28px 36px; }
    .stage-intro { font-size: 16px; }
    .stage-hint { display: none; }
    .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 16px 24px; background: none; border: 0; }
    .tile { min-height: 190px; padding: 20px; justify-content: flex-end; overflow: hidden; isolation: isolate; backdrop-filter: none; background: var(--ink-soft); }
    .tile::before { top: 0; transform: scaleX(1); }
    .tile-thumb { display: block; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
    .tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 13, 0.5), rgba(10, 12, 13, 0.9)); }
    .tile-go { margin-top: 4px; }
    .cards { grid-template-columns: minmax(0, 1fr); }
    .page-hero { min-height: 380px; padding-block: 90px 40px; }
    .page-hero p { font-size: 16px; }
    .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .stage-bg, .tile, .tile::before, .tile-go span { transition: none; }
    .stage-bg { transform: none; }
}

.page-hero .site-header { position: absolute; top: 0; left: 0; right: 0; }

/* Bildleiste der Sportarten auf den Bereichsseiten */
.sports-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; background: var(--ink); }
.sports-strip-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sports-strip figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.sports-strip-2 figure { aspect-ratio: 16 / 7; }
.sports-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sports-strip figure:hover img { transform: scale(1.04); }
.sports-strip figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 16px 12px;
    background: linear-gradient(180deg, rgba(10, 12, 13, 0), rgba(10, 12, 13, 0.85));
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1020px) {
    .sports-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sports-strip figure:first-child { grid-column: span 3; aspect-ratio: 21 / 9; }
    .sports-strip-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sports-strip-2 figure:first-child { grid-column: auto; aspect-ratio: 16 / 7; }
    .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .sports-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sports-strip figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
    .sports-strip-2 { grid-template-columns: minmax(0, 1fr); }
    .sports-strip-2 figure, .sports-strip-2 figure:first-child { grid-column: auto; aspect-ratio: 16 / 9; }
    .cards-4 { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero-bg, .sports-strip img { transition: none; }
}

/* Motorsport-Seite: Bildleiste mit 4 Motiven und Schaltfläche zur Technologies-Seite */
.sports-strip-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.button-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 26px;
    padding: 0 22px;
    background: var(--red);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}
.button-cta:hover, .button-cta:focus-visible { background: var(--red-dark); }
.button-cta:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 34px;
    padding: 26px 28px;
    background: var(--ink);
    color: var(--white);
}
.cta-row p { flex: 1 1 320px; min-width: 0; margin: 0; color: #dfe2e3; }
.cta-row .button-cta { margin-top: 0; }
@media (max-width: 1020px) {
    .sports-strip-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sports-strip-4 figure:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
    .sports-strip-4 figure:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* Security-Seite: Bildleiste mit 3 Motiven */
.sports-strip-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sports-strip-3 figure { aspect-ratio: 16 / 10; }
@media (max-width: 1020px) {
    .sports-strip-3 figure:first-child { grid-column: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
    .sports-strip-3 { grid-template-columns: minmax(0, 1fr); }
    .sports-strip-3 figure:first-child { grid-column: auto; aspect-ratio: 16 / 10; }
}

/* STAIDIUM-GROUP-Logo (images/svg/staidium-group-logo-v3-white.svg): ST-Zeichen, STAIDIUM-Schriftzug, darunter GROUP */
.brand .brand-logo { width: auto; height: 44px; object-fit: contain; }
@media (max-width: 640px) {
    .brand .brand-logo { height: 36px; }
}

/* Logo-Platzhalter in der Bildleiste (z. B. SDC, bis ein Foto vorliegt) */
.sports-strip .logo-tile { display: flex; align-items: center; justify-content: center; background: var(--ink-soft); }
.sports-strip .logo-tile img { width: 46%; height: auto; object-fit: contain; }
.sports-strip .logo-tile:hover img { transform: none; }
/* Platz für die Beschriftung unten freihalten, damit sie das Logo nicht überdeckt */
.sports-strip .logo-tile { padding-bottom: 44px; }
@media (max-width: 640px) {
    .sports-strip .logo-tile { padding-bottom: 64px; }
    .sports-strip .logo-tile img { width: 38%; }
}

/* Markennamen in Überschriften nie automatisch trennen (z. B. nicht „STAI-DIUM“) */
.nohyph { -webkit-hyphens: manual; hyphens: manual; }

/* Kontakt: Menüpunkt in der Kopfzeile (auch auf dem Handy sichtbar) und Formular als Dialog (script/js/contact.js) */
@media (max-width: 480px) {
    .header-link[data-contact] { display: inline; }
    .header-right { gap: 14px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-dialog {
    width: min(640px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 36px 36px 32px;
    border: 0;
    border-top: 3px solid var(--red);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.contact-dialog::backdrop { background: rgba(10, 12, 13, 0.72); }
.contact-dialog .eyebrow { margin: 0 0 10px; color: var(--muted-dark); }
.contact-dialog h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.contact-intro { margin: 0 0 24px; color: #3a4044; font-size: 16px; }
.contact-close {
    position: absolute; top: 10px; right: 12px; width: 40px; height: 40px;
    border: 0; background: none; color: var(--muted-dark); font-size: 28px; line-height: 1; cursor: pointer;
}
.contact-close:hover, .contact-close:focus-visible { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.contact-field { display: grid; gap: 6px; }
.contact-field.is-wide { grid-column: 1 / -1; }
.contact-field label { font-size: 13px; font-weight: 700; }
.contact-req { color: var(--red); }
.contact-field input, .contact-field textarea {
    width: 100%; min-height: 46px; padding: 10px 12px;
    border: 1px solid #c4c7c9; border-radius: 0; background: var(--white); color: var(--ink);
    font: inherit; font-size: 15px;
}
.contact-field textarea { min-height: 120px; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-privacy { margin: 16px 0 0; color: var(--muted-dark); font-size: 13px; }
.contact-privacy a { color: var(--red-dark); }
.contact-status { margin: 12px 0 0; font-size: 14px; }
.contact-status:empty { display: none; }
.contact-status.is-error { color: var(--red-dark); font-weight: 600; }
.contact-status a { color: inherit; }
.contact-send { border: 0; cursor: pointer; font-family: inherit; margin-top: 18px; }
.contact-send[disabled] { opacity: 0.7; cursor: progress; }
@media (max-width: 560px) {
    .contact-dialog { padding: 30px 20px 24px; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* Bereich „Sicherheit“: vorerst ohne Link (Seiten nur nach Anmeldung, Wunsch Securitas 26.10.2026) */
.tile.is-soon { cursor: default; }
.tile.is-soon .tile-go { color: var(--muted); }

/* Login für den geschützten Securitas-Bereich (script/php/securitas.php) */
.login-hero { min-height: 100vh; min-height: 100svh; }
.login-card {
    width: min(460px, 100%);
    margin-top: 18px;
    padding: 32px 32px 28px;
    border-top: 3px solid var(--red);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.login-card .eyebrow { margin: 0 0 10px; color: var(--muted-dark); }
.login-card h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 36px); }
.page-hero .login-card p.login-intro { margin: 0 0 20px; color: #3a4044; font-size: 15px; }
.login-card .contact-field { margin-bottom: 14px; }
.page-hero .login-card p.login-error { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--red); background: rgba(221, 11, 47, 0.08); color: var(--red-dark); font-size: 14px; font-weight: 600; }
.login-submit { width: 100%; justify-content: center; border: 0; cursor: pointer; font-family: inherit; margin-top: 6px; }
@media (max-width: 560px) {
    .login-card { padding: 26px 20px 22px; }
}

/* Rechtliches (Impressum, Datenschutz, Platzhalter) wie bei technologies.staidium.org:
   schlichter dunkler Kopf ohne Bild, heller Textbereich mit Trennlinien */
.legal-hero { min-height: 0; padding-block: 140px 56px; background: var(--ink); }
.legal-hero::after { display: none; }
.legal-hero p { color: var(--muted); }
.legal { background: var(--paper); color: var(--ink); padding-block: 64px 96px; }
.legal .wrap > * { max-width: 780px; }
.legal h2 { margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid rgba(15, 17, 18, 0.12); font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p, .legal li { color: #2b2f31; }
.legal p { margin: 0; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 12px; padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--red-dark); overflow-wrap: anywhere; }
.legal strong { color: var(--ink); }
.legal .legal-date { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(15, 17, 18, 0.12); color: var(--muted-dark); font-size: 14px; }
.site-footer a[aria-current="page"] { color: var(--white); }
@media (max-width: 640px) {
    .legal-hero { min-height: 0; padding-block: 110px 40px; }
    .legal { padding-block: 44px 64px; }
}
