/* =============================================
   fobotogo – Haupt-Stylesheet
   Mobile-First, kein Responsive für Desktop
   ============================================= */

:root {
    --accent: #cd2d22;
    --accent-light: #fdf0ef;
    --black: #111111;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --nav-height: 68px;
    --header-height: 64px;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-700);
    overscroll-behavior: none;
}

a { text-decoration: none; color: inherit; }

/* ─── Desktop-Hinweis ─────────────────────── */
.desktop-hint {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background: var(--white);
}
.desktop-hint i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.desktop-hint p {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Auf Desktop: hint anzeigen, mobile content verstecken */
@media (min-width: 600px) {
    .desktop-hint { display: flex; }
    .mobile-content { display: none !important; }
}

/* ─── START PAGE ──────────────────────────── */
.start-page {
    background: linear-gradient(160deg, #fdf0ef 0%, #f9fafb 60%);
    min-height: 100vh;
}

.mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2.5rem 1.25rem 2rem;
}

.start-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}
.start-logo i {
    font-size: 2rem;
    color: var(--accent);
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--black);
    letter-spacing: -0.5px;
}
.logo-text strong {
    font-weight: 800;
    color: var(--accent);
}

.start-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 360px;
}

.start-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.4rem;
}
.start-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

/* ─── Code-Eingabe ────────────────────────── */
.code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.code-box {
    width: 44px;
    height: 54px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    background: var(--gray-50);
    outline: none;
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
    text-transform: uppercase;
    caret-color: transparent;
}
.code-box:focus {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: scale(1.05);
}
.code-box.filled {
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── Buttons ─────────────────────────────── */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:disabled {
    opacity: 0.4;
    cursor: default;
}
.btn-primary:not(:disabled):active {
    transform: scale(0.97);
}

.btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    background: transparent;
    color: var(--gray-500);
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:active {
    border-color: var(--accent);
    color: var(--accent);
}

.start-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--gray-300);
    font-size: 0.85rem;
}
.start-divider::before,
.start-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}
.start-divider span { color: var(--gray-500); }

/* ─── APP SHELL ───────────────────────────── */
.app-page {
    background: var(--gray-50);
}

/* Header */
.app-header {
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-header .logo-text {
    font-size: 1.2rem;
}
.app-header .logo-text i {
    font-size: 1.1rem;
}
.event-badge {
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    caret-color: transparent;
}

/* Content Area */
.app-content {
    padding: 1.25rem;
    padding-top: calc(var(--nav-height) + 1.25rem);
    min-height: 100vh;
}

/* Module (Panels) */
.module {
    display: none;
}
.module.active {
    display: block;
}

/* ─── BOTTOM NAV ──────────────────────────── */
.bottom-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 200;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.nav-item i {
    font-size: 1.3rem;
    transition: transform 0.2s;
}
.nav-item span {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.nav-item.active {
    color: var(--white);
}
.nav-item.active i {
    transform: translateY(2px);
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

/* ─── MODULE: HOME ────────────────────────── */
.home-hero {
    background: linear-gradient(135deg, var(--accent) 0%, #e85d55 100%);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    color: var(--white);
    margin-bottom: 1.25rem;
    text-align: center;
}
.home-hero h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.home-hero p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-card .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.3rem;
}

/* ─── MODULE: Placeholder ─────────────────── */
.module-placeholder {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--gray-500);
}
.module-placeholder i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}
.module-placeholder h3 {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}
.module-placeholder p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ─── QR-Code (Desktop-Hint) ─────────────── */
#qrcode {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    display: inline-block;
}
#qrcode img,
#qrcode canvas {
    display: block;
    border-radius: 4px;
}
.qr-label {
    margin-top: 0.75rem !important;
    font-size: 0.8rem !important;
    color: var(--gray-500) !important;
}

/* ─── Logo-Bilder ────────────────────────── */
.desktop-logo {
    width: 220px;
    max-width: 80%;
    margin-bottom: 2rem;
}
.mobile-logo-OLD {
    width: 200px;
    max-width: 80%;
    margin-bottom: 0;
}
.header-logo {
    height: 32px;
    width: auto;
}

/* ─── Logo volle Breite mobil ────────────── */
.mobile-logo {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-bottom: 0;
}

.start-logo {
    width: 100%;
    padding: 0;
    margin-bottom: 1.5rem;
}

/* ─── Desktop-Hint max-width ─────────────── */
@media (min-width: 600px) {
    .desktop-hint {
        max-width: 500px;
        margin: 0 auto;
        min-height: 100vh;
    }
}

@media (min-width: 600px) {
    body { background: var(--white); }
}

/* ─── Vertikale Zentrierung Start-Page ───── */
.start-page .mobile-content {
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ─── Code-Input: Single-Input-Overlay ───── */
.code-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}
.real-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    z-index: 10;
    font-size: 16px; /* verhindert iOS-Zoom */
    border: none;
    background: transparent;
}
.code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    pointer-events: none;
}
.code-box {
    width: 44px;
    height: 54px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    background: var(--gray-50);
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    user-select: none;
}
.code-box.filled {
    border-color: var(--accent);
    color: var(--accent);
}
.code-box.active {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: scale(1.05);
}

/* ─── Start-Center: Logo + Card als Einheit zentriert ── */
.start-page .mobile-content {
    justify-content: center;
    padding: 1.5rem 1.25rem;
}
.start-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ─── Desktop: kein weißer Kasten, Gradient durchgehend ── */
@media (min-width: 600px) {
    body { background: linear-gradient(160deg, #fdf0ef 0%, #f9fafb 60%); }
    .desktop-hint { background: transparent; }
}

/* ─── Logout-Button ──────────────────────── */
.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.85rem;
    background: transparent;
    color: var(--gray-500);
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.btn-logout:active {
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── Login-Page ─────────────────────────── */
.login-page {
    justify-content: flex-start;
    padding-top: 0;
}
.login-page .start-logo {
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}
.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 0.9rem;
}
.input-icon input {
    width: 100%;
    padding: 0.85rem 0.9rem 0.85rem 2.5rem;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--gray-50);
    color: var(--black);
    outline: none;
    transition: border-color 0.2s;
}
.input-icon input:focus {
    border-color: var(--accent);
    background: var(--white);
}
.form-group + .btn-primary {
    margin-top: 0.5rem;
}

.alert-error {
    background: #fff0ef;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Footer ─────────────────────────────── */
.app-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.8;
    padding-bottom: 1rem;
}
.app-footer a {
    color: var(--gray-500);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.app-footer a:active {
    color: var(--accent);
}

/* ─── Start-Page: kein vertikales Zentrieren mehr ── */
.start-page .mobile-content {
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 1.5rem;
}

/* ─── Gleicher Abstand oben wie Logo→Card ── */
.start-page .mobile-content {
    padding-top: 1.5rem;
}

/* ─── Header: Logo größer, weniger Padding ── */
.app-header {
    padding: 0.5rem 1rem;
}
.header-logo {
    height: 40px;
}

.header-logo { height: 48px; }

/* ─── Passwortfeld mit Auge ──────────────── */
.input-icon--eye input {
    padding-right: 3rem;
}
.toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}
.toggle-pw:active { color: var(--accent); }

/* ─── Auge innerhalb des Feldes ─────────── */
.input-icon--eye {
    position: relative;
}
.input-icon--eye .toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: transparent;
    pointer-events: all;
}
.input-icon--eye input {
    position: relative;
    z-index: 1;
    padding-right: 2.8rem;
    width: 100%;
}

/* ─── Fix: nur das linke Icon absolut, nicht das Auge ── */
.input-icon > i:first-child {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}
/* vorherigen generischen Selektor überschreiben */
.input-icon i { position: static; transform: none; }
.input-icon > i:first-child { position: absolute; transform: translateY(-50%); }
.toggle-pw i { position: static; transform: none; top: auto; left: auto; }

/* ─── Tage-Badge ─────────────────────────── */
.badge-days {
    display: inline-block;
    background: #fbbf24;
    color: #78350f;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 0.4rem;
    letter-spacing: 0.2px;
}

/* ─── Dashboard Titel-Bereich ────────────── */
.dashboard-code {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}
.dashboard-titel {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-edit-titel {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.btn-edit-titel:active { color: var(--accent); background: var(--accent-light); }

/* ─── Modal ──────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 500;
    align-items: flex-end;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 1.75rem 1.5rem 2rem;
    width: 100%;
    max-width: 500px;
}
.modal-box h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--black);
}
.modal-box input[type="text"] {
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--gray-50);
    outline: none;
    transition: border-color 0.2s;
}
.modal-box input[type="text"]:focus { border-color: var(--accent); }
.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.modal-actions .btn-ghost,
.modal-actions .btn-primary { flex: 1; }

/* ─── Modul-Box ──────────────────────────── */
.modul-box {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-100);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
}
.modul-box__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}
.modul-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
}
.modul-toggle:last-of-type { border-bottom: none; }
.modul-toggle input[type="checkbox"] { display: none; }
.modul-toggle__track {
    width: 40px;
    height: 23px;
    background: var(--gray-300);
    border-radius: 20px;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s;
}
.modul-toggle__track::after {
    content: '';
    position: absolute;
    width: 17px;
    height: 17px;
    background: var(--white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.modul-toggle input:checked ~ .modul-toggle__track {
    background: var(--accent);
}
.modul-toggle input:checked ~ .modul-toggle__track::after {
    transform: translateX(17px);
}
.modul-toggle__label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ─── Fotobox Modul ──────────────────────── */
.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.module-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}
.foto-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
}

/* Grid */
.foto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.foto-grid__loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}
.foto-grid__loading i { font-size: 1.8rem; color: var(--accent); }
.foto-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--gray-100);
    cursor: pointer;
}
.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}
.foto-item img:active { transform: scale(0.97); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}
.lightbox__img {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 88vh;
    border-radius: 8px;
    object-fit: contain;
}
.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Processing Modal zentriert */
.modal-box--center {
    border-radius: 20px;
    margin: 2rem;
    text-align: center;
}
.clock-anim {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.modal-box--center p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ─── Lightbox: Pfeile & Counter ─────────── */
.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.15s;
}
.lightbox__prev { left: 0.75rem; }
.lightbox__next { right: 0.75rem; }
.lightbox__prev:active,
.lightbox__next:active { background: rgba(255,255,255,0.3); }

.lightbox__counter {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(0,0,0,0.35);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* ─── Auth Wall ──────────────────────────── */
.auth-wall {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.auth-wall__icon {
    font-size: 2.5rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
    display: block;
}
.auth-wall__text {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.auth-wall__btns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ─── Terms Checkbox ─────────────────────── */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    cursor: pointer;
    line-height: 1.4;
    margin-top: 0.25rem;
}
.terms-check input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.terms-check a { color: var(--accent); }

/* ─── Fix: Input-Icon immer absolut, Input immer eingerückt ── */
.input-icon { position: relative; display: block; }
.input-icon > i:first-child {
    position: absolute !important;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%) !important;
    color: var(--gray-500);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}
.input-icon input {
    padding-left: 2.5rem !important;
}

/* ─── Upload-Form ────────────────────────── */
.upload-intro {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Foto-Picker */
.photo-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4/3;
    border: 2.5px dashed var(--gray-300);
    border-radius: 16px;
    background: var(--gray-50);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.photo-picker:active { border-color: var(--accent); background: var(--accent-light); }
.photo-picker__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray-500);
    pointer-events: none;
}
.photo-picker__empty i {
    font-size: 2.5rem;
    color: var(--gray-300);
}
.photo-picker__empty span {
    font-size: 0.95rem;
    font-weight: 600;
}
.photo-picker__empty small {
    font-size: 0.75rem;
    color: var(--gray-300);
}
.photo-picker__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* Textarea */
.upload-textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--gray-50);
    color: var(--black);
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}
.upload-textarea:focus { border-color: var(--accent); background: var(--white); }

/* ─── Dropzone: kompakt ──────────────────── */
.photo-picker {
    aspect-ratio: unset;
    padding: 1.1rem;
    min-height: unset;
}
.photo-picker__empty {
    flex-direction: row;
    gap: 0.75rem;
}
.photo-picker__empty i { font-size: 1.6rem; }
.photo-picker__empty span { font-size: 0.9rem; }
.photo-picker__empty small { display: none; }

.my-photo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 0.6rem;
}
.my-photo-item:last-child { margin-bottom: 0; }
.my-photo-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.my-photo-info {
    flex: 1;
    min-width: 0;
}
.my-photo-comment {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.my-photo-delete {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}
.my-photo-delete:hover { opacity: 0.85; }
.alert-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #dcfce7;
    color: #15803d;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ─── AUDIO RECORDER ─────────────────────────────── */
.audio-recorder-box {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.audio-viz-wrap {
    position: relative;
    width: 100%;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}
.audio-viz-idle {
    background: var(--accent);
    cursor: pointer;
}
.audio-viz-idle:active { opacity: 0.88; }
.audio-viz-recording { background: #1a1a1a; cursor: default; }
.audio-viz-done { background: var(--gray-50); cursor: default; }
.audio-wave-canvas {
    width: 100%;
    height: 72px;
    border-radius: 10px;
    background: #f0f0f0;
    display: block;
}
.audio-timer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.audio-timer span {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(205,45,34,0.18);
    letter-spacing: -2px;
}
.audio-idle-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
}
.audio-idle-btn i { font-size: 1.4rem; }
.audio-rec-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 2.5px solid var(--accent);
    border-radius: 50px;
    padding: 0.75rem 2.5rem;
    cursor: pointer;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.audio-rec-btn.active {
    background: var(--accent);
    color: #fff;
}
.audio-rec-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    display: block;
    transition: border-radius 0.2s, background 0.2s;
}
.audio-rec-btn.active .audio-rec-dot {
    border-radius: 3px;
    background: #fff;
}
.audio-rec-dot.recording {
    animation: pulse-dot 1s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ── Feed ────────────────────────────────────────────────────── */
.feed-card {
    background: #fff;
    border-radius: 14px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.feed-card__meta-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.1rem;
}
.feed-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gray-800);
}
.feed-time {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--gray-400);
}
.feed-audio-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #eff6ff;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
}
.feed-wave-canvas {
    flex: 1;
    min-width: 0;
    height: 44px;
    border-radius: 6px;
}
.feed-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem;
}

/* ── Feed Reaktionen ─────────────────────────────────────────── */
.feed-reaction-wrap {
    margin-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.65rem;
}
.feed-reaction-btns {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}
.feed-react-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    line-height: 1;
}
.feed-react-btn.active {
    border-color: var(--react-color, #eab308);
    background: color-mix(in srgb, var(--react-color, #eab308) 12%, #fff);
    transform: scale(1.12);
}
.feed-reaction-groups {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.feed-reaction-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--gray-500);
}
.feed-react-emoji { font-size: 0.95rem; flex-shrink: 0; }
.feed-react-names { color: var(--gray-600); }
