/*
 * MatchTogether – gemeinsam genutztes CSS
 * ------------------------------------------------------------
 *
 * Enthält AUSSCHLIESSLICH Regeln, die in mehreren PHP-Seiten
 * identisch vorkamen (oder deren gemeinsamer Eigenschafts-Anteil
 * nachweislich identisch ist, siehe Kommentare unten).
 *
 * Seitenspezifische Werte (Innenabstände, Ränder, Farben, die
 * NICHT überall gleich waren) bleiben bewusst in den jeweiligen
 * <style>-Blöcken der Seiten stehen und ergänzen diese Datei dort
 * als lokale Ergänzung/Override.
 *
 * Diese Datei verändert für sich genommen nichts am Aussehen,
 * solange sie nach den Regeln unten in exakt der bestehenden
 * Reihenfolge (dieser Link vor dem Seiten-<style>) eingebunden wird.
 */

/*
 * ------------------------------------------------------------
 * Reset
 * ------------------------------------------------------------
 * Identisch in allen 10 Style-Blöcken.
 */
* {
    box-sizing: border-box;
}

/*
 * ------------------------------------------------------------
 * Nie horizontal scrollen (projektweit, seit 2026-10-02)
 * ------------------------------------------------------------
 * Was über den rechten Rand ragt (z. B. .app-nav::before mit 100vw –
 * 100vw zählt die senkrechte Scrollleiste mit), wird abgeschnitten.
 * NUR auf html (wirkt dort auf das ganze Fenster), NIE auf body:
 * - body hat auf vielen Seiten eine max-width (z. B. 680px) – clip auf
 *   body würde den Navigationshintergrund auf diese Breite beschneiden.
 * - hidden auf body macht body zum Scroll-Container, dann bleibt die
 *   Navigation (position: sticky) nicht mehr stehen.
 * hidden davor nur als Rückfall für Browser ohne clip.
 */
html {
    overflow-x: hidden;
    overflow-x: clip;
    /* Seit 2026-10-04: senkrechte Scrollleiste immer sichtbar (SaM: lieber der graue Balken als ein
       „vergessener“ leerer Rand) – sonst springt der Inhalt (z. B. Einstellungen beim Aufklappen),
       sobald die Leiste erscheint. Mobil ohne Wirkung (dort liegt die Leiste über dem Inhalt). */
    overflow-y: scroll;
}

/*
 * ------------------------------------------------------------
 * Grundgerüst der Seite (body)
 * ------------------------------------------------------------
 * font-family/margin/background/color sind in ALLEN 10
 * Vorkommen identisch. max-width und padding unterscheiden sich
 * zwischen den Seiten und bleiben deshalb lokal.
 */
body {
    font-family: system-ui, sans-serif;
    margin: auto;
    background: #10283B;
    color: #FAFAF8;
}

/*
 * ------------------------------------------------------------
 * Wortmarke „MatchTogether“ (src/Brand.php, seit 2026-10-03)
 * ------------------------------------------------------------
 * Immer fett, „Match“ weiß, „Together“ orange (wie auf dem OnePager),
 * nie getrennt oder umbrochen. Auf farbigen Buttons: --on-accent.
 */
.mt-brand {
    font-weight: 700;
    color: #FAFAF8;
    white-space: nowrap;
    -webkit-hyphens: none;
    hyphens: none;
}

.mt-brand-together {
    color: #ff7900;
}

.mt-brand--on-accent,
.mt-brand--on-accent .mt-brand-together {
    color: inherit;
}

/*
 * ------------------------------------------------------------
 * Intro-Text unter der Überschrift
 * ------------------------------------------------------------
 * Farbe identisch überall, margin unterscheidet sich
 * (Login/Togethers/Together-Auswahl vs. Briefkasten/Bewertet/Gesendet)
 * und bleibt lokal.
 */
.intro {
    color: #9eacbb;
}

/*
 * ------------------------------------------------------------
 * Hauptnavigation
 * ------------------------------------------------------------
 *
 * .top-nav bleibt bewusst seitenspezifisch:
 * share-receiver.php verwendet dieselbe Klasse für einen
 * abweichenden Navigationscontainer.
 */

a {
    color: #FFD34A;
    text-decoration: none;
}

/* Nur die gemeinsame App-Navigation bleibt beim Scrollen sichtbar.
 * share-receiver.php nutzt .top-nav für einen anderen Container. */
.app-nav {
    position: sticky;
    top: 0;
    z-index: 100;

    /* env(): Abstand zur Statusleiste/Notch in der installierten App (viewport-fit=cover) */
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: 10px;

    background: transparent;
}

/*
 * Seit 2026-10-03: Seiten mit App-Navigation ohne oberes body-padding.
 * Sonst steht das sticky Menü anfangs um das (seitenweise unterschiedliche)
 * padding-top tiefer und „rutscht“ beim Scrollen erst an den Rand.
 * !important, weil jede Seite ihr body-padding lokal nach shared.css setzt.
 */
body:has(> .app-nav) {
    padding-top: 0 !important;
}

.app-nav::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: -25px;
    bottom: 0;
    left: 50%;

    width: 100vw;
    transform: translateX(-50%);

    background: rgba(16, 40, 59, 0.22);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.nav-together-switch {
    position: relative;
    flex: 0 0 30px;
}

/* Abzeichen neuer Shares aus anderen Togethers (seit 2026-10-07) – Optik wie .nav-station-count */
.nav-together-switch .nav-station-count {
    top: -4px;
    right: -6px;
}

/*
 * Reise-Stationen (seit 2026-10-05, partials/navigation.php): runde Stationen auf der gepunkteten
 * Goldlinie (wie Zeitstrahl und Liste der Sphere). Aktiv = goldener Punkt mit Glow wie der
 * Regler-Griff der Sphere, Wort daneben; die anderen nur Icon. Links nie unterstrichen.
 */
.nav-stations {
    --dot: 28px;
    --line: 26px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.nav-station {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: #9eacbb;
    text-decoration: none;
    border-radius: 999px;
}

.nav-station-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--dot);
    height: var(--dot);
    border: 1px solid #dfad7455;
    border-radius: 50%;
    background: #0b1f33cc;
    font-size: .8rem;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.nav-station:hover .nav-station-dot {
    border-color: #ffab48;
    color: #FAFAF8;
}

.nav-station:focus-visible {
    outline: 2px solid #FFD34A;
    outline-offset: 3px;
}

.nav-station.is-active .nav-station-dot {
    border-color: #071827;
    background: #ffab48;
    color: #071827;
    box-shadow: 0 0 0 1px #ffab4899, 0 0 16px #ffab48aa;
    animation: nav-station-glow 3.2s ease-in-out infinite alternate;
}

@keyframes nav-station-glow {
    from { box-shadow: 0 0 0 1px #ffab4899, 0 0 10px #ffab4877; }
    to { box-shadow: 0 0 0 1px #ffab48cc, 0 0 20px #ffab48cc; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-station.is-active .nav-station-dot { animation: none; }
}

.nav-station-label {
    color: #FFD34A;
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
}

/* gepunktete Goldlinie zwischen den Stationen (Punkte wie in der Sphere-Liste) */
.nav-station-line {
    flex: 0 0 var(--line);
    height: 4px;
    background: radial-gradient(circle, #f7b97299 1.1px, transparent 1.6px) left center / 6px 4px repeat-x;
}

/* offene Shares im Briefkasten: goldenes Abzeichen am Punkt */
.nav-station-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    border: 2px solid #0F2032;
    border-radius: 999px;
    background: #FFD34A;
    color: #071827;
    font-size: .62rem;
    font-weight: 800;
    line-height: 13px;
    text-align: center;
}

@media (max-width: 480px) {
    .app-nav .nav-links { gap: 9px; }
    .app-nav .nav-actions { gap: 0; }
    .nav-stations { --line: 16px; gap: 5px; }
    .nav-station-label { font-size: .88rem; }
}

@media (max-width: 400px) {
    .app-nav .nav-links { gap: 7px; }
    .app-nav .nav-together-switch { flex-basis: 22px; }
    .nav-stations { --dot: 26px; --line: 12px; gap: 4px; }
    .nav-station { gap: 6px; }
    .nav-station-label { font-size: .82rem; }
}

/* sehr schmal: nur noch die Stationen, das Wort steckt im Tooltip/aria-label */
@media (max-width: 359px) {
    .app-nav .nav-links { gap: 6px; }
    .nav-station-label { display: none; }
    .app-nav .nav-actions { padding-left: 6px; }
}

.nav-link {
    color: #9eacbb;
    text-decoration: none;
    font-size: .95rem;
}

.nav-link:hover {
    color: #FAFAF8;
}

.nav-link.active {
    color: #FFD34A;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* Suche und feste Seitennavigation für Gesendet und Bewertet. */
.share-search { margin: 0 0 22px; }
.share-search label { display: block; margin-bottom: 8px; color: #9eacbb; }
.share-search-controls { display: flex; gap: 8px; }
.share-search-controls input { min-width: 0; flex: 1; padding: 12px 14px;
    border: 1px solid #40546a; border-radius: 12px; background: #263b53;
    color: #FAFAF8; font: inherit; }
.share-search-controls button, .share-search-controls a { display: inline-flex;
    align-items: center; justify-content: center; width: 44px; min-height: 44px;
    border: 1px solid #40546a; border-radius: 12px; background: #263b53;
    color: #FAFAF8; font: inherit; cursor: pointer; }
.share-search-controls :focus-visible { outline: 2px solid #FFD34A; outline-offset: 2px; }
body.has-share-pagination { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.share-pagination { position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #10283B; border-top: 1px solid #40546a;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); }
.share-pagination-inner { max-width: 720px; margin: auto; display: flex;
    justify-content: space-between; align-items: center; gap: 2px;
    overflow-x: auto; scrollbar-width: thin; }
.share-page-arrow, .share-page-number, .share-page-ellipsis { display: inline-flex;
    flex: 0 0 auto; align-items: center; justify-content: center;
    min-width: 30px; min-height: 40px; padding: 0 3px; border-radius: 8px;
    color: #FAFAF8; text-decoration: none; }
.share-page-arrow { min-width: 38px; font-size: 1.15rem; }
.share-page-number.is-current { background: #FFD34A; color: #0F2032; font-weight: 700; }
.share-page-arrow.is-disabled { color: #66788a; }
.share-pagination a:hover { background: #40546a; color: #FAFAF8; }
.share-pagination a:focus-visible { outline: 2px solid #FFD34A; outline-offset: -2px; }

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #9eacbb;
    font: inherit;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.nav-icon.active {
    color: #FFD34A;
}

.nav-icon:hover {
    color: #FAFAF8;
}

.nav-icon:focus-visible {
    outline: 2px solid #FFD34A;
    outline-offset: 2px;
}

.logout-form {
    flex: 0 0 auto;
    margin: 0;
}

/*
 * ☰-Menü rechts (seit 2026-10-03, partials/navigation.php) – auf ALLEN Bildschirmgrößen
 * und auch im Auswahlmodus: Die Reise eines Moments, Administration, Einstellungen, Abmelden
 * stehen als beschriftetes Dropdown unter dem ☰ (Klick außerhalb / Esc schließt).
 */
.nav-actions {
    position: relative;
}

.nav-menu-toggle {
    position: relative;
    width: 38px;
    font-size: 1.2rem;
}

/* Neues für den Admin (seit 2026-10-08): Abzeichen am ☰ (Optik wie .nav-station-count) und am Menüpunkt */
.nav-menu-toggle .nav-menu-count {
    top: -2px;
    right: -4px;
}

.nav-admin-count {
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #FFD34A;
    color: #071827;
    font-size: .72rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 230px;
    padding: 6px;
    border: 1px solid #40546a;
    border-radius: 14px;
    background: #1b2d42;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.nav-menu.is-open {
    display: flex;
}

/* Offenes Menü liegt über allem – auch über Elementen, die bewusst über die Leiste ragen
   (z. B. das Logo auf togethers.php mit z-index 999, das sonst die Klicks schluckte) */
.app-nav:has(.nav-menu.is-open) {
    z-index: 1100;
}

.nav-menu .nav-icon {
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: #FAFAF8;
    font-size: .95rem;
    text-align: left;
    white-space: nowrap;
}

.nav-menu .nav-icon i {
    width: 20px;
    color: #9eacbb;
    text-align: center;
}

.nav-menu .nav-icon.active,
.nav-menu .nav-icon.active i {
    color: #FFD34A;
}

.nav-menu .nav-icon:hover {
    background: #263b53;
}

.nav-menu .logout-form {
    width: 100%;
}

/* Sprachwahl im ☰-Menü (seit 2026-10-06, partials/navigation.php): Flaggen nebeneinander,
   aktive Sprache mit goldenem Rahmen, die anderen leicht gedämpft. */
.nav-languages {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    padding: 8px 12px;
    border-top: 1px solid #2c4058;
    border-bottom: 1px solid #2c4058;
}

.nav-languages-label {
    width: 20px;
    margin-right: 4px;
    color: #9eacbb;
    text-align: center;
}

.nav-language {
    display: inline-flex;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    opacity: .6;
    transition: opacity .15s ease, border-color .15s ease;
}

.nav-language img {
    display: block;
    width: 28px;
    height: 19px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

.nav-language:hover,
.nav-language:focus-visible {
    opacity: 1;
    border-color: #40546a;
}

.nav-language:focus-visible {
    outline: 2px solid #FFD34A;
    outline-offset: 1px;
}

.nav-language.is-active {
    opacity: 1;
    border-color: #FFD34A;
    cursor: default;
}

/*
 * ------------------------------------------------------------
 * Karten-Container
 * ------------------------------------------------------------
 * border-radius/background identisch überall, padding (und ggf.
 * margin-bottom) unterscheiden sich je Seite und bleiben lokal.
 */
.card {
    border-radius: 20px;
    background: #1b2d42;
}

/* Share-Karten in Briefkasten (.share), Gesendet und Bewertet (.share-card), Share-Details
   (.detail-card) und Share-Ansicht (.card in share.php): weicher Schlagschatten, damit sie sich
   vom Hintergrundbild abheben (seit 2026-10-04) */
article.share,
article.share-card,
article.detail-card,
body.share-page .card {
    box-shadow:
        0 10px 28px rgba(0, 0, 0, .38),
        0 2px 6px rgba(0, 0, 0, .25);
}

/*
 * ------------------------------------------------------------
 * Fehlertext (nur die Textfarbe)
 * ------------------------------------------------------------
 * login.php und togethers.php haben eine eigenständige, umfangreichere
 * .error-Box (eigener Hintergrund etc.) und bleiben unberührt.
 */
.error {
    color: #ffb4ab;
}

/*
 * ------------------------------------------------------------
 * Kategorien-Badges (schreibgeschützte Anzeige)
 * ------------------------------------------------------------
 * Identisch in inbox.php, rated.php, sent.php, share.php.
 * Die AUSWAHL-Checkboxen in share-receiver.php heißen bewusst
 * anders (.category-option) und sind hier nicht gemeint.
 */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #263b53;
    color: #FFD34A;
    font-size: .78rem;
    font-weight: 600;
}

/*
 * ------------------------------------------------------------
 * Vorschau-Visual eines Shares (Icon/Bild/Marken-Icon)
 * ------------------------------------------------------------
 * Basis identisch in inbox.php, rated.php, sent.php, share.php.
 * margin/border-radius/width-Overrides unterscheiden sich je Seite
 * (z. B. der randlose "Bleed" in share.php) und bleiben lokal.
 */
.share-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: none;
    overflow: hidden;
    background: #263b53;
}

.share-visual img.preview {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.share-visual .platform-icon {
    font-size: 4.5rem;
    color: #FAFAF8;
}

.share-visual img.brand-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

/*
 * ------------------------------------------------------------
 * Meta-Text zum Inhalt (Künstler/Medientyp, Quell-Domain)
 * ------------------------------------------------------------
 * Identisch in inbox.php, rated.php, sent.php, share.php.
 * share-receiver.php nutzt für .source-domain eigene, abweichende
 * Werte (dort noch VOR dem eigentlichen Versand) und bleibt lokal.
 */
.content-details,
.source-domain {
    margin: 7px 0 0;
    color: #9eacbb;
    font-size: .88rem;
}

/*
 * ------------------------------------------------------------
 * Zitierte Nachricht
 * ------------------------------------------------------------
 * padding-left/border-left/line-height identisch, margin
 * unterscheidet sich (16px vs. 18px) und bleibt lokal.
 */
.message {
    padding-left: 14px;
    border-left: 3px solid #FFD34A;
    line-height: 1.5;
}

/*
 * ------------------------------------------------------------
 * Together-Auswahl (togethers.php und share-receiver.php)
 * ------------------------------------------------------------
 * In beiden Dateien byte-identisch, sonst nirgends verwendet.
 */
.together-list {
    display: grid;
    gap: 14px;
}

.together-button {
    width: 100%;
    padding: 20px;
    border: 1px solid #40546a;
    border-radius: 18px;
    background: #1b2d42;
    color: #FAFAF8;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.together-button:hover {
    background: #263b53;
}

.together-button:focus {
    outline: 2px solid #FFD34A;
    outline-offset: 2px;
}

.partner {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.hint {
    display: block;
    margin-top: 5px;
    color: #9eacbb;
    font-size: .85rem;
}

/* Together-Karte mit Avatar: Kreis links über beide Zeilen, Name + Hinweis rechts */
.together-button.has-avatar {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
}

.together-button.has-avatar > .user-avatar {
    grid-row: 1 / span 2;
}

/*
 * Kompakte Together-Liste (seit 2026-10-14, SaM: bei vielen Togethers zu viel Scrollen) – togethers.php und
 * Empfängerauswahl in share-receiver.php: eine Karte, schmale Zeilen mit Trennlinie, Avatar 38 px, rechts
 * Badge/Chevron bzw. Häkchen. Die Hinweiszeile unter dem Namen entfällt.
 */
.together-list--compact {
    gap: 0;
    border: 1px solid #40546a;
    border-radius: 18px;
    background: #1b2d42;
}

.together-list--compact .together-button {
    min-height: 58px;
    padding: 9px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.together-list--compact > form + form .together-button,
.together-list--compact > .together-button + .together-button {
    border-top: 1px solid #2c4058;
}

.together-list--compact > form:first-child .together-button,
.together-list--compact > .together-button:first-of-type {
    border-radius: 17px 17px 0 0;
}

.together-list--compact > form:last-child .together-button,
.together-list--compact > .together-button:last-of-type {
    border-radius: 0 0 17px 17px;
}

.together-list--compact > form:only-child .together-button,
.together-list--compact > .together-button:only-of-type {
    border-radius: 17px;
}

.together-list--compact .together-button:hover {
    background: #263b53;
}

.together-list--compact .together-button:focus-visible {
    outline: 2px solid #FFD34A;
    outline-offset: -2px;
}

.together-list--compact .together-button.has-avatar {
    grid-template-columns: auto 1fr auto;
}

.together-list--compact .together-button.has-avatar > .user-avatar {
    grid-row: auto;
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.together-list--compact .partner {
    font-size: 1rem;
}

.together-chevron {
    flex: 0 0 auto;
    color: #9eacbb;
    font-size: .85rem;
}

/*
 * ------------------------------------------------------------
 * User-Avatar (src/UserAvatar.php, seit 2026-10-03)
 * ------------------------------------------------------------
 * Runder Kreis mit Anfangsbuchstaben; Pastellfarbe pro Person aus
 * --avatar-bg (inline gesetzt). Größen: --sm 32 px, --md 44 px, --lg 64 px.
 */
.user-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--avatar-bg, #c9d6e3);
    color: #0F2032;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
    user-select: none;
}

.user-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: .85rem;
}

.user-avatar--lg {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
}

/* Profilbild-Vorschau in den Einstellungen (seit 2026-10-12) */
.user-avatar--xl {
    width: 96px;
    height: 96px;
    font-size: 2.4rem;
}

/* Profilbild statt Initiale (src/AvatarStore.php, seit 2026-10-12) */
.user-avatar.has-image {
    overflow: hidden;
}

.user-avatar.has-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
 * ------------------------------------------------------------
 * Formular-Bausteine (share-receiver.php Sendeformular
 * und share.php Reaktionsformular)
 * ------------------------------------------------------------
 */
.label {
    display: block;
    margin-bottom: 8px;
    color: #9eacbb;
    font-size: .85rem;
}

.vote-options {
    display: flex;
    gap: 12px;
}

.vote-option {
    flex: 1;
}

.vote-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vote-option span {
    display: block;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #263b53;
    text-align: center;
    font-size: 1.8rem;
    cursor: pointer;
}

.vote-option input:checked + span {
    border-color: #FFD34A;
    background: #304964;
}

/*
 * .heart-option span behält "cursor: pointer;" und die
 * :focus-visible-Regel bewusst nur lokal in share-receiver.php
 * (share.php hatte weder das eine noch das andere).
 */
.heart-option {
    display: block;
    cursor: pointer;
}

.heart-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.heart-option span {
    display: block;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #263b53;
    text-align: center;
    font-weight: 600;
}

.heart-option input:checked + span {
    border-color: #FFD34A;
    background: #304964;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 0;
    border-radius: 14px;
    resize: vertical;
    background: #263b53;
    color: #FAFAF8;
    font: inherit;
}

textarea::placeholder {
    color: #9eacbb;
}

/*
 * Nur login.php und share.php haben einen klassenlosen
 * <button>-Submit mit identischer Gestaltung. share-receiver.php
 * nutzt dafür bewusst die eigene .send-button-Klasse und bleibt
 * davon unberührt (höhere Spezifität, kein Konflikt).
 */
button {
    width: 100%;
    padding: 17px 20px;
    border: 0;
    border-radius: 16px;
    background: #FFD34A;
    color: #0F2032;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

/*
 * ------------------------------------------------------------
 * Lade-Overlay ("Moment wird vorbereitet/gesendet …")
 * ------------------------------------------------------------
 * Kommt zweimal in share-receiver.php vor (Together-Auswahl und
 * Sendeformular) und ist dort byte-identisch. Sonst nirgends
 * verwendet.
 */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #10283B;
}

.loading-overlay.is-visible {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-mark {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    animation: mtPulse 1.35s ease-in-out infinite;
}

.loading-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-text {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
}

.loading-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FFD34A;
    animation: mtDot 1.1s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: .15s;
}

.loading-dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes mtPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.07);
        opacity: .72;
    }
}

@keyframes mtDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: .35;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-mark,
    .loading-dots span {
        animation: none;
    }
}

/*
 * ------------------------------------------------------------
 * Herkunfts-Badge im Cover (Share-Details, Briefkasten, Gesendet, Bewertet)
 * ------------------------------------------------------------
 * Plattform-Icon oben rechts im Cover, damit man auf einen Blick sieht,
 * woher ein Share stammt (Icon: ShareVisual::platformIcon). Das Cover muss
 * position: relative haben. Eigene Medien zeigen kein Plattform-Badge.
 */
.source-platform-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(16, 40, 59, .78);
    color: #FAFAF8;
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

/* Eigene Videos: Inhaltskennzeichnung unabhängig vom WebP-Poster. */
.own-video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(16, 40, 59, .88);
    color: #FAFAF8;
    font-size: .85rem;
    line-height: 1.2;
    pointer-events: none;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
