/* ============================================================
   SprachenPortal – Coming-Soon-Seite

   Farben, Schriften und Formen folgen dem Alpasana-Designsystem
   (assets/css/alpasana-design.css). Hier steht nur, was diese Seite
   eigenmächtig macht: der dunkle Verlauf, der Sternenhimmel und die
   Rakete.

   Der Verlauf ist der aus .alp-hero. Auf dunklem Grund gilt das helle
   Markenblau (--alp-blue-bright); das Blau der Knöpfe wäre zu dunkel.
   ============================================================ */

:root {
    --dunkel-1: #232434;
    --dunkel-2: #1b2b40;
    --dunkel-3: #14304a;
    --akzent:   #2ea3f2;
    --text:     #ffffff;
    /* Heller als --alp-muted: das erreicht auf #232434 nur 3.9:1. */
    --text-leise: #b9bdc7;
}

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

/* min-height statt height: Bei height:100% waere der Koerper auf die
   Fensterhoehe festgenagelt, und main { flex: 1 } rechnete gegen diese
   Hoehe statt gegen den tatsaechlichen Inhalt. */
html,
body {
    min-height: 100%;
}

/* Die Seite scrollt. Bis hierher war sie ein einziger Bildschirm mit
   overflow:hidden und zentriertem Inhalt - es stand ja auch nur «Coming
   Soon» darauf. Jetzt beschreibt sie das Produkt und braucht Platz. */
body {
    min-height: 100vh;
    font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    /* Grundfarbe als Netz: Sie steht auch dann, wenn die Verlaufsebene
       unten aus irgendeinem Grund nicht malt. */
    background: var(--dunkel-1);
    display: flex;
    flex-direction: column;
}

/* Der Verlauf als eigene feste Ebene und NICHT als
   background-attachment: fixed am Körper. Damit gezeichnet, blieb beim
   Scrollen eine weisse Fläche stehen - ein bekanntes Neuzeichnungsproblem
   dieser Eigenschaft, auf iOS-Safari besonders zuverlässig. Eine fixe
   Ebene hinter dem Inhalt macht dasselbe, ohne den Fehler. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(140deg, var(--dunkel-1) 0%, var(--dunkel-2) 55%, var(--dunkel-3) 100%);
    pointer-events: none;
}

/* Sprungziele nicht hart anspringen - der Verweis «Was Sie erwartet»
   führt sonst ohne Übergang mitten in den nächsten Abschnitt. */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

main {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
}

/* --- Sternenhimmel ------------------------------------------------ */
.stars {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(1px 1px at 40% 70%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 60% 20%, #fff, transparent),
        radial-gradient(1px 1px at 80% 50%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 90% 80%, #fff, transparent),
        radial-gradient(1px 1px at 10% 90%, #fff, transparent),
        radial-gradient(1px 1px at 70% 85%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 30% 55%, #fff, transparent);
    background-repeat: repeat;
    background-size: 100% 100%;
    animation: twinkle 4s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes twinkle {
    from { opacity: 0.4; }
    to   { opacity: 1; }
}

/* Das Kontaktband aus kontaktband.css ist nicht positioniert. Verlaufs-
   ebene und Sternenhimmel sind es - und positionierte Elemente malen
   ueber nicht positionierten Inhalt, auch bei gleichem z-index. Ohne
   diese Zeile verschwaende das Band hinter dem Hintergrund. */
.kontaktband {
    position: relative;
    z-index: 5;
}

/* --- Kopfband: Wortmarke links, Verwaltungslink rechts ------------ */
/* Beide standen fest am Ansichtsfenster (position: fixed), weil die Seite
   ein einziger Bildschirm war. Jetzt scrollt sie - fest blieben sie ueber
   dem Text stehen, waehrend er darunter durchlaeuft. Sie liegen deshalb
   im Fluss und scrollen mit weg. Der Verwaltungslink steht dafuer
   zusaetzlich im Fuss. */
.kopfband {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 1.4rem 1.6rem 0;
}

.marke-oben {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.marke-oben img { display: block; }

.marke-oben span {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}

.marke-oben:focus-visible {
    outline: 3px solid var(--akzent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Zugang zur Verwaltung --------------------------------------- */
.admin-zugang a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.admin-zugang a:hover {
    background: var(--akzent);
    border-color: var(--akzent);
    color: var(--dunkel-1);
}

.admin-zugang a:focus-visible {
    outline: 3px solid var(--akzent);
    outline-offset: 2px;
}

.admin-zugang svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
}

/* Auf schmalen Bildschirmen weicht der Markentext, damit Marke und
   Verwaltungslink nicht ineinanderlaufen. Die Bildmarke bleibt. */
@media (max-width: 34rem) {
    .kopfband { padding: 1rem 1rem 0; }
    .marke-oben span { display: none; }
    .admin-zugang a { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
}

/* --- Hero -------------------------------------------------------- */
/* Fuellt den ersten Bildschirm, abzueglich Kontaktband und Kopfband -
   deshalb min-height und nicht 100vh. Der Rest der Seite folgt darunter. */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 2rem 3rem;
    max-width: 660px;
    margin: 0 auto;
    /* Gedeckelt: Auf einem sehr hohen Fenster stuende der Hero sonst
       als riesige leere Flaeche da. */
    min-height: min(calc(100vh - 9rem), 780px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Rakete + Start ---------------------------------------------- */
.launch {
    position: relative;
    width: 120px;
    height: 230px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.rocket {
    position: relative;
    z-index: 2;
    width: 120px;
    animation: fly 2.4s ease-in-out infinite;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
}

.rocket svg {
    width: 100%;
    height: auto;
    display: block;
}

.rocket .flame {
    transform-origin: 50% 118px;
    animation: burn 0.16s steps(2) infinite;
}

/* Kräftigeres "Fliegen": Steigen, leichtes Schaukeln und Rollen. */
@keyframes fly {
    0%   { transform: translateY(6px)   rotate(-3deg); }
    25%  { transform: translateY(-14px) rotate(2deg); }
    50%  { transform: translateY(-24px) rotate(-2deg); }
    75%  { transform: translateY(-14px) rotate(3deg); }
    100% { transform: translateY(6px)   rotate(-3deg); }
}

@keyframes burn {
    from { transform: scaleY(0.8); opacity: 0.85; }
    to   { transform: scaleY(1.2);  opacity: 1; }
}

/* --- Rauch-/Abgasspur unter der Rakete --------------------------- */
.trail {
    position: absolute;
    top: 128px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 120px;
    z-index: 1;
}

.trail span {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    filter: blur(2px);
    animation: smoke 1.4s linear infinite;
}

.trail span:nth-child(1) { animation-delay: 0s;    }
.trail span:nth-child(2) { animation-delay: 0.28s; }
.trail span:nth-child(3) { animation-delay: 0.56s; }
.trail span:nth-child(4) { animation-delay: 0.84s; }
.trail span:nth-child(5) { animation-delay: 1.12s; }

@keyframes smoke {
    0%   { transform: translate(-50%, 0)    scale(0.4); opacity: 0.7; }
    100% { transform: translate(-50%, 110px) scale(1.6); opacity: 0; }
}

/* --- Typografie -------------------------------------------------- */
/* Vorspann mit vorangestelltem «//», wie .alp-hero-label. */
.vorspann {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .9rem;
    color: var(--akzent);
    margin-bottom: .7rem;
}

.vorspann::before { content: '// '; }

.coming-soon {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem;
}

.brand {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 600;
    color: var(--akzent);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.lead {
    color: var(--text-leise);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 auto 2.2rem;
    max-width: 460px;
}

/* --- Spiel-Link -------------------------------------------------- */
/* Umriss-Knopf wie .alp-btn-outline, nur auf dunklem Grund. */
.play { margin-bottom: 2.4rem; }

.play a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 13px 30px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 2px solid var(--akzent);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.play a:hover {
    background: var(--akzent);
    color: var(--dunkel-1);
    transform: translateY(-2px);
}

.play a:focus-visible {
    outline: 3px solid var(--akzent);
    outline-offset: 3px;
}

/* --- Verweis vom Hero in den ersten Abschnitt --------------------- */
/* Ohne ihn wirkte die Seite unter dem Hero zu Ende - der Rest liegt
   unterhalb der Falz und wird sonst uebersehen. */
.weiter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    margin-top: 2.6rem;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-leise);
    text-decoration: none;
    transition: color .2s ease;
}

.weiter:hover { color: var(--akzent); }

.weiter svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    animation: winken 2s ease-in-out infinite;
}

@keyframes winken {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

.weiter:focus-visible {
    outline: 3px solid var(--akzent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Abschnitte unter dem Hero ------------------------------------ */
.abschnitt {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.6rem 2rem;
    /* Haarlinie statt Flaeche: Der Verlauf im Hintergrund soll
       durchlaufen, abgesetzte Kaesten zerschnitten ihn. */
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.abschnitt h2 {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #fff;
    margin-bottom: 1.4rem;
}

.fliess {
    color: var(--text-leise);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 62ch;
    margin-bottom: 1rem;
}

/* --- Die drei Schritte -------------------------------------------- */
/* Eine nummerierte Liste, weil es eine Reihenfolge ist: erst Konto,
   dann Zahlung, dann Freischaltung. Die Nummern stehen als Text da,
   damit sie auch beim Vorlesen ankommen. */
.karten {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.karte {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    padding: 1.6rem 1.5rem;
}

.karte__nummer {
    display: block;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--akzent);
    margin-bottom: .6rem;
}

.karte h3 {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}

.karte p {
    color: var(--text-leise);
    font-size: .95rem;
    line-height: 1.65;
}

/* --- Hinweisband fuer Team und Besuchervorschau ------------------- */
/* Amber wie .band in admin.css: Es sagt, dass die Seite fuer andere
   noch nicht so aussieht. Nicht positioniert waere es unter der
   Verlaufsebene - dieselbe Falle wie beim Kontaktband. */
.banner {
    position: relative;
    z-index: 5;
    background: #fdf1dd;
    color: #8a5600;
    padding: .8rem 1rem;
    text-align: center;
    font-size: .92rem;
}

.banner a { color: inherit; }

/* --- Einstiegsknoepfe im Hero der offenen Seite ------------------- */
/* Grundform wie .alp-btn im Designsystem, nur auf dunklem Grund. */
.einstieg {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0 0;
}

.einstieg a {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

/* --alp-blue-dark und nicht das helle Blau: Weisse Schrift darauf
   erreicht 4.61:1, auf dem hellen Blau nur 3.07:1. */
.einstieg a.voll { background: #1c7cb0; color: #fff; }
.einstieg a.voll:hover { background: #17688f; }

.einstieg a.umriss { color: #fff; border-color: var(--akzent); }
.einstieg a.umriss:hover { background: var(--akzent); color: var(--dunkel-1); }

.einstieg a:focus-visible {
    outline: 3px solid var(--akzent);
    outline-offset: 3px;
}

/* Der Hero der offenen Seite traegt keine Rakete und darf deshalb
   flacher sein - sonst stuende die Haelfte des Bildschirms leer. */
.hero--offen {
    min-height: min(calc(100vh - 12rem), 560px);
}

/* --- Kontaktangaben ----------------------------------------------- */
/* Eine Beschreibungsliste und keine Tabelle: Es sind Paare aus
   Bezeichnung und Wert, keine Zeilen und Spalten. */
.kontaktliste {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .5rem 1.6rem;
    margin: 1.6rem 0 2rem;
    font-size: .98rem;
}

.kontaktliste dt {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-leise);
    padding-top: .15rem;
}

.kontaktliste dd { color: #fff; }
.kontaktliste a { color: var(--akzent); text-decoration: none; }
.kontaktliste a:hover { text-decoration: underline; }

@media (max-width: 26rem) {
    .kontaktliste { grid-template-columns: 1fr; gap: .1rem 0; }
    .kontaktliste dd { margin-bottom: .8rem; }
}

/* --- Fuss --------------------------------------------------------- */
/* Der Standard-Fuss kommt aus alpasanaFuss() und traegt die Formen des
   Designsystems (.alp-footer). Er ist nicht positioniert und laege
   damit unter Verlaufsebene und Sternenhimmel - dieselbe Falle wie beim
   Kontaktband. */
.alp-footer {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .rocket,
    .rocket .flame,
    .trail span,
    .stars {
        animation: none;
    }
    .trail { display: none; }
    .play a:hover { transform: none; }
    .weiter svg { animation: none; }
}

/* ============================================================
   Verzeichnis

   Die einzige öffentliche Seite, die Personendaten zeigt. Sie liegt
   auf demselben dunklen Grund wie die Startseite und benutzt deren
   Bausteine, damit sie nicht wie ein Fremdkörper wirkt.
   ============================================================ */

.verzeichnis-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin: 2rem 0 2.5rem;
    padding: 1.3rem 1.4rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
}

.verzeichnis-filter__feld { flex: 1 1 11rem; }

.verzeichnis-filter label {
    display: block;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-leise);
    margin-bottom: .45rem;
}

.verzeichnis-filter input,
.verzeichnis-filter select {
    width: 100%;
    padding: .7rem .85rem;
    font-family: inherit;
    font-size: .95rem;
    color: var(--text);
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
}

.verzeichnis-filter input::placeholder { color: rgba(255, 255, 255, .38); }

.verzeichnis-filter input:focus,
.verzeichnis-filter select:focus {
    outline: 2px solid var(--akzent);
    outline-offset: 1px;
}

/* Das Auswahlfeld erbt auf dunklem Grund sonst die helle Liste des
   Betriebssystems, in der weisse Schrift auf Weiss steht. */
.verzeichnis-filter select option { color: #000; background: #fff; }

.verzeichnis-filter button {
    width: 100%;
    padding: .72rem 1.4rem;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    background: #1c7cb0;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.verzeichnis-filter button:hover { background: #17688f; }

.eintraege {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.eintrag {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    padding: 1.4rem 1.4rem 1.2rem;
}

.eintrag__name { font-size: 1.12rem; margin: 0 0 .5rem; }
.eintrag__name a { color: var(--text); text-decoration: none; }
.eintrag__name a:hover { color: var(--akzent); text-decoration: underline; }

.eintrag__zeile {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin: 0 0 .6rem;
}

.eintrag__zeile .marke {
    font-size: .72rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--akzent);
    border: 1px solid rgba(46, 163, 242, .45);
    border-radius: 999px;
    padding: .18rem .6rem;
}

.eintrag__zeile .ort { font-size: .86rem; color: var(--text-leise); }

.eintrag__sprachen { margin: 0 0 .55rem; font-size: .95rem; }
.eintrag__text { margin: 0; font-size: .9rem; color: var(--text-leise); }

/* Einzelansicht: Bezeichnung links, Wert rechts, bei schmalem Fenster
   untereinander. */
.eintrag-daten {
    display: grid;
    grid-template-columns: minmax(8rem, auto) 1fr;
    gap: .55rem 1.4rem;
    margin: 1.8rem 0 2.2rem;
    max-width: 46rem;
}

.eintrag-daten dt {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-leise);
    padding-top: .15rem;
}

.eintrag-daten dd { margin: 0; }

@media (max-width: 30rem) {
    .eintrag-daten { grid-template-columns: 1fr; gap: .15rem; }
    .eintrag-daten dd { margin-bottom: .8rem; }
}

/* Die Knopfform der Startseite, hier ausserhalb von .einstieg. */
a.umriss {
    display: inline-block;
    padding: .72rem 1.5rem;
    border: 2px solid var(--akzent);
    border-radius: 8px;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

a.umriss:hover { background: var(--akzent); color: var(--dunkel-1); }
