/* Feed-Posts quadratisch und kleiner */
/* Nur Post-Bilder/Videos quadratisch */
    padding: 0 0.5em;
    vertical-align: middle;
    pointer-events: none;
}
/* Roter Badge für ungelesene Nachrichten in der Bottom-Bar */
#msg-notify-dot-bottom {
    display: none;
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 15px;
    height: 15px;
    background: #ff2d2d;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
    box-shadow: 0 0 6px #ff2d2d99;
    font-size: 0.95em;
    color: #fff;
    text-align: center;
    line-height: 15px;
    font-weight: 700;
    pointer-events: none;
}
/* --- Light/Darkmode überall identisch: Blau-Weiß, modern --- */
/* --- Hafribook-Design: Immer Blau-Weiß, überall gleich, kein Dark/Lightmode mehr --- */
:root, html, body {
    --primary: #1e90ff;
    --primary-dark: #1e90ff;
    --accent: #eaf6ff;
    --danger: #ff6b81;
    --bg: #10171d;
    --bg-card: #181f25;
    --text: #eaf6ff;
    --text-light: #eaf6ff;
    --text-contrast: #1e90ff;
    --text-strong: #fff;
    --text-invert: #1e90ff;
    background: #14213d !important;
    color: var(--text) !important;
}
.hafribook-logo-main {
    font-family: 'Inter',sans-serif;
    font-size: 2.5em;
    font-weight: 900;
        background: none !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1e90ff;
    letter-spacing: 2.5px;
        filter: none !important;
    transition: color 0.2s, background 0.2s;
}

.logo-mobile-margin {
    height: calc(0.9rem + env(safe-area-inset-top, 0px));
}

.feed-logo-wrap {
    padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
}

.feed-page-logo {
    margin: 1rem auto 0.3rem auto !important;
}

.feed-page-container {
    padding-top: 0.12rem !important;
}
.button, button {
    background: #10171d !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(30,144,255,0.10) !important;
}
.button:hover, button:hover {
    background: #10171d !important;
    color: #fff !important;
    box-shadow: 0 4px 16px #1e90ff33 !important;
}
.button:active, button:active {
    background: #10171d !important;
    color: #fff !important;
    box-shadow: 0 2px 8px #1e90ff33 !important;
}

/* --- Buttons: Einfarbig, modern, keine braunen Schatten --- */
.button, button {
    background: linear-gradient(90deg, #1e90ff 0%, #eaf6ff 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.8em 2.1em;
    font-size: 1.13em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(30,144,255,0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    outline: none;
    margin: 0.3em 0.1em;
    letter-spacing: 0.01em;
    min-width: 36px;
    min-height: 36px;
}
.button:hover, button:hover {
    background: linear-gradient(90deg, #1e90ff 0%, #eaf6ff 100%);
    color: #fff;
    box-shadow: 0 4px 16px #1e90ff33;
    transform: translateY(-2px) scale(1.04);
}
.button:active, button:active {
    background: #1e90ff;
    color: #fff;
    box-shadow: 0 2px 8px #1e90ff33;
}
/* --- Responsive Fixes für Überlappungen und Buttons --- */
.container, .card, .bottom-bar, .fab, input, textarea, button, .button {
    min-width: 0;
    box-sizing: border-box;
}
.card, .feed-post {
    word-break: break-word;
}
.bottom-bar {
    max-width: 100vw !important;
    min-width: 0 !important;
    flex-wrap: wrap;
         background: #000 !important;
            background: #000000 !important;
    gap: 0.2em;
}
.fab {
    min-width: 0;
    width: 54px;
    height: 54px;
    right: 1.2em;
    bottom: 5.2em;
    font-size: 2em;
}
@media (max-width: 600px) {
    .container { max-width: 100vw; width: 100vw; }
    .fab { right: 0.7em; bottom: 4.2em; width: 44px; height: 44px; font-size: 1.2em; }
    .bottom-bar { max-width: 100vw; min-width: 0; }
         background: #000 !important;
    button, .button { min-width: 36px; }
}

/* --- Kompakte, elegante Story-Leiste & korrekte Positionierung --- */
.storybar {
    display: flex !important;
    gap: 0.5em !important;
    overflow-x: auto !important;
    align-items: center !important;
    padding: 0.3em 0 0.7em 0 !important;
    min-height: 68px !important;
    max-width: 100vw !important;
    margin-bottom: 0.5em !important;
}
.story-link {
         background: #000 !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 60px !important;
    max-width: 72px !important;
    text-decoration: none !important;
    margin: 0 0.2em !important;
}
.story-ring {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--primary, #6ee7ff, 0.13);
    margin-bottom: 0.1em;
    width: 54px;
    height: 54px;
    overflow: hidden;
}
.fab-plus {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--primary-dark);
    font-size: 1.4em;
    font-weight: 700;
    box-shadow: 0 2px 8px var(--primary, #7ee7d6, 0.13);
    border: 2px solid var(--primary);
    margin: 0;
    padding: 0;
    transition: background var(--transition), color var(--transition);
}
@media (max-width: 600px) {
    .storybar {
        gap: 0.2em !important;
        padding: 0.1em 0 0.4em 0 !important;
        min-height: 54px !important;
    }
    .story-link {
        min-width: 48px !important;
        max-width: 56px !important;
    }
    .story-ring {
        width: 40px !important;
        height: 40px !important;
        padding: 1.5px !important;
    }
    .fab-plus {
        width: 22px !important;
        height: 22px !important;
        font-size: 1em !important;
    }
}
/* Optische Markierung für Like/Dislike-Button */
.button.liked {
    box-shadow: 0 0 0 3px #2ecc40;
    border: 2px solid #2ecc40;
    background: #eaffea;
}
.button.disliked {
    box-shadow: 0 0 0 3px #ff4136;
    border: 2px solid #ff4136;
    background: #ffeaea;
}
/* Instagram-like SVG Pattern Background for Startseite */
.index-pattern-bg {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.index-bg {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #10171d !important;
    color: #eaf6ff !important;
}
html, body {
    background-color: #000 !important;
}
.container, .card, .feed-post, .bottom-bar, .fab, .profile-pic-large, .storybar, .story-ring {
    background-color: #000 !important;
}
html {
    background: #10171d !important;
}
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
.index-hero {
    position: relative;
    z-index: 2;
    margin-top: 7vh;
    margin-bottom: 7vh;
    background: var(--bg-card);
    border-radius: 32px;
    box-shadow: 0 4px 32px #7ee7d633;
    padding: 2.5em 2em 2.5em 2em;
    max-width: 520px;
    width: 98vw;
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.index-desc {
    text-align: center;
    margin: 0 auto 2em auto;
    font-size: 1.35em;
    color: var(--text-strong);
    max-width: 440px;
    line-height: 1.7;
    font-weight: 500;
}
@media (max-width: 700px) {
    .index-hero {
        max-width: 99vw;
        padding: 1.5em 0.5em;
    }
    .index-desc {
        font-size: 1.1em;
        max-width: 98vw;
        padding: 0 0.2em;
    }
}
/* Hafribook-typischer Text-Overlay-Hintergrund */
.hafribook-bg {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-invert);
    border: 2.5px solid var(--accent);
    box-shadow: 0 2px 12px rgba(30,200,180,0.18);
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    padding: 0.3em 0.7em;
    border-radius: 1em;
    opacity: 0.97;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
/* --- Story Editor (Instagram-like) --- */
.story-editor-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin: 1.2em auto 0 auto;
    aspect-ratio: 9/16;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.story-editor-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 9/16;
}
.story-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 40%;
    min-height: 2em;
    padding: 0.3em 0.7em;
    background: rgba(0,0,0,0.35);
    color: var(--text-invert);
    font-size: 1.5em;
    border-radius: 1em;
    text-align: center;
    outline: none;
    cursor: move;
    user-select: text;
    max-width: 90%;
    max-height: 60%;
    overflow: auto;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.story-text-overlay:focus {
    background: rgba(0,0,0,0.55);
    color: var(--accent);
    box-shadow: 0 4px 24px var(--primary, #7ee7d6, 0.18);
}
@media (max-width: 600px) {
    .story-editor-preview {
        max-width: 98vw;
        aspect-ratio: 9/16;
    }
    .story-text-overlay {
        font-size: 1.1em;
        min-width: 60%;
        max-width: 98%;
        padding: 0.2em 0.4em;
    }
}
.fab-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--primary-dark);
    font-size: 1.6em;
    font-weight: 700;
    box-shadow: 0 2px 8px var(--primary, #7ee7d6, 0.13);
    border: 2px solid var(--primary);
    margin: 0;
    padding: 0;
    transition: background var(--transition), color var(--transition);
}
.fab-plus:hover {
    background: var(--primary);
    color: var(--text-contrast);
}
.button, button {
    /* ...existing code... */
    min-width: 36px;
    min-height: 36px;
    padding: 0.5em 1.2em;
    font-size: 1.08em;
}
.button:active, button:active {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-dark, #1bbfa0, 0.13);
}
/* Hafribook Modern Global CSS - 2025
     Elegantes, responsives, animiertes Design mit Dark Mode
     Inspiriert von Instagram & WhatsApp
*/
/* WhatsApp-like Soft Messenger Theme */
:root {
    --primary: #7ee7d6;
    --primary-dark: #1bbfa0;
    --accent: #ffe6a7;
    --danger: #ff6b81;
    --bg: #f6fcfa;
    --bg-card: #fff;
    --bg-dark: #181c1f;
    --text: #181c1f;
    --text-light: #23272b;
    --text-contrast: #181c1f;
    --text-strong: #111;
    --text-invert: #fff;
    --shadow: 0 4px 32px rgba(30,200,180,0.10);
    --radius: 28px;
    --transition: 0.22s cubic-bezier(.4,0,.2,1);
    --blur: blur(12px);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #181c1f;
        --bg-card: #23272b;
        --text: #f8ffff;
        --text-light: #fff;
        --text-contrast: #fff;
        --text-strong: #fff;
        --text-invert: #23272b;
        --shadow: 0 2px 16px rgba(0,0,0,0.32);
    }
}
html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 16px;
    transition: background var(--transition), color var(--transition);
}
.container {
    max-width: 540px;
    margin: 0 auto;
    padding: 1.2em 0.7em 5em 0.7em;
}
h1, h2, h3 {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    margin: 0.5em 0 0.7em 0;
}
.button, button {
    background: linear-gradient(90deg, var(--primary) 80%, var(--accent) 100%);
        color: var(--text-contrast);
    border: none;
    border-radius: 999px;
    padding: 0.8em 2.1em;
    font-size: 1.13em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 16px rgba(30,200,180,0.10);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    outline: none;
    margin: 0.3em 0.1em;
    letter-spacing: 0.01em;
}
input:focus, textarea:focus {
    border-color: var(--accent);
    background: #eafffa;
}
.card {
    background: var(--bg-card);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(30,200,180,0.10), 0 1.5px 8px rgba(0,0,0,0.04);
    padding: 1.3em 1.3em 1.2em 1.3em;
    margin-bottom: 1.5em;
    transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
    animation: fadein 0.7s;
    border: 1.5px solid #e0f7f3;
    position: relative;
}
.card:hover {
    box-shadow: 0 16px 48px 0 var(--primary-dark, #1bbfa0, 0.13);
    transform: translateY(-4px) scale(1.018);
    background: var(--bg-card);
.card:hover {
    box-shadow: 0 10px 36px var(--primary-dark, #1bbfa0, 0.16);
    transform: translateY(-3px) scale(1.015);
    background: var(--bg-card);
}
@keyframes fadein {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.storybar {
    display: flex;
    gap: 1em;
    overflow-x: auto;
    align-items: flex-end;
    padding: 0.7em 0 1.2em 0;
}
.profile-pic-large {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 2px 12px var(--primary, #7ee7d6, 0.13);
    margin-bottom: 0.7em;
    background: #fff;
    position: relative;
    transition: box-shadow var(--transition), border var(--transition);
}
.profile-pic-large::after {
    content: '';
    display: block;
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 2.5px solid var(--accent);
    opacity: 0.7;
    z-index: 1;
}
.story-link:hover {
    transform: scale(1.08);
}
.story-ring {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--primary, #6ee7ff, 0.13);
    margin-bottom: 0.2em;
    width: 56px;
    height: 56px;
    overflow: hidden;
}
/* WhatsApp-like Buttons */
.button, button {
    background: linear-gradient(90deg, var(--primary) 80%, var(--accent) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 999px;
    padding: 0.6em 1.5em;
    font-size: 1.08em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(30,200,180,0.10);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    outline: none;
    margin: 0.18em 0.08em;
    letter-spacing: 0.01em;
    min-width: 36px;
    min-height: 36px;
}
}
.button:hover, button:hover {
    background: linear-gradient(90deg, var(--primary-dark) 80%, var(--accent) 100%);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 32px var(--primary-dark, #1bbfa0, 0.16);
        color: var(--text-contrast);
}
.fab {
    position: fixed;
    right: 2.2em;
    bottom: 5.2em;
    background: var(--accent);
    color: var(--text-strong);
    border-radius: 50%;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    box-shadow: 0 4px 18px var(--primary-dark, #009ec3, 0.13);
    z-index: 1200;
    border: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.fab:hover {
    background: linear-gradient(90deg, var(--primary-dark) 80%, var(--accent) 100%);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 32px var(--primary-dark, #1bbfa0, 0.13);
}
input, textarea {
    border-radius: 999px;
    border: 2px solid #d2f7ee;
    padding: 1em 1.2em 1em 2.8em;
    font-size: 1.13em;
    background: var(--bg-card);
    color: var(--text-strong);
    margin-bottom: 0.7em;
    transition: border var(--transition), background var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 16px rgba(30,200,180,0.07);
    outline: none;
    position: relative;
}
input:focus, textarea:focus {
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 3px var(--primary, #7ee7d6, 0.13);
}
/* WhatsApp-like Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0; left: 0; width: 100vw;
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    padding: 0.9em 0 0.7em 0;
    z-index: 1000;
    box-shadow: 0 -4px 32px rgba(30,200,180,0.10);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin: 0 auto;
    max-width: 540px;
    left: 50%;
    transform: translateX(-50%);
}
.bottom-bar a {
    font-size: 2.1em;
    text-decoration: none;
    color: var(--text-strong);
    position: relative;
    transition: color var(--transition), transform var(--transition), background var(--transition);
    border-radius: 50%;
    padding: 0.2em 0.4em;
    background: none;
}
.bottom-bar a.active, .bottom-bar a:hover {
    color: var(--primary-dark);
    background: var(--accent);
    transform: scale(1.18);
    box-shadow: 0 2px 12px var(--primary-dark, #1bbfa0, 0.10);
}
::-webkit-scrollbar {
    width: 8px;
    background: #eafffa;
}
::-webkit-scrollbar-thumb {
    background: var(--primary, #6ee7ff, 0.13);
    border-radius: 8px;
    .bottom-bar a {
        font-size: 2.1em;
        text-decoration: none;
        color: var(--text);
        position: relative;
        transition: color var(--transition), transform var(--transition), background var(--transition);
        border-radius: 50%;
        padding: 0.2em 0.4em;
        background: none;
    }
    .bottom-bar a.active, .bottom-bar a:hover {
        color: var(--primary-dark);
        background: #e0f7f3;
        transform: scale(1.18);
        box-shadow: 0 2px 12px var(--primary-dark, #1bbfa0, 0.10);
    }
}
@media (max-width: 600px) {
    .container { max-width: 100vw; padding: calc(1.35em + env(safe-area-inset-top, 0px)) 0.1em 5em 0.1em; }
    .profile-pic-large { width: 80px; height: 80px; }
    .fab { right: 1.2em; bottom: 4.2em; width: 52px; height: 52px; font-size: 1.5em; }
}

/* EINGABEFELDER */
::-webkit-scrollbar {
    width: 8px;
    background: #eafffa;
}
::-webkit-scrollbar-thumb {
    background: var(--primary, #7ee7d6, 0.13);
    border-radius: 8px;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
textarea:focus {
    border-color: #6ee7ff;
    background: #eafffa;
    color: #000;
}

/* MOBIL: Optimierung */
@media (max-width: 600px) {
    body {
        font-size: 1.1em;
    }
    .container {
        max-width: 99vw;
        padding: calc(1.5em + env(safe-area-inset-top, 0px)) 0.2em 5.1em 0.2em;
    }
    h1, h2, h3 {
        font-size: 1.8em;
    }
    .button, button {
        font-size: 1.1em;
        padding: 0.9em 1.8em;
    }
    input, textarea {
        font-size: 1.05em;
    }
}

/* Hafribook Startseiten-Post-Backgrounds */
.index-posts-bg {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    filter: blur(0.3px) brightness(1.05) saturate(1.05);
    opacity: 0.65;
}
    /* --- Raster Modal: Blockiert alles im Hintergrund --- */
    #raster-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0,0,0,0.85) !important;
        z-index: 9999 !important;
        display: none;
        align-items: center;
        justify-content: center;
        pointer-events: auto !important;
        overflow: hidden !important;
    }
    #raster-modal[style*="display: flex"] {
        display: flex !important;
    }
    #raster-modal * {
        pointer-events: auto !important;
    }
    body.raster-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100vw !important;
    }
    #raster-bg-container {
        width: 420px;
        height: 420px;
        position: relative;
        overflow: hidden;
        background: #222;
        border-radius: 18px;
        box-shadow: 0 2px 18px #1e90ff66;
        pointer-events: auto;
    }
    #raster-frame {
        position: absolute;
        top: 50px;
        left: 50px;
        width: 320px;
        height: 320px;
        border: 2px solid #1e90ff;
        border-radius: 18px;
        pointer-events: auto;
        cursor: move;
        background: rgba(0,0,0,0.08);
        z-index: 2;
    }
    #raster-ok, #raster-cancel, #raster-send {
        pointer-events: auto !important;
        z-index: 10;
    }
    #raster-message-container {
        display: none;
        margin-top: 1.2em;
        width: 100%;
    }
    #raster-message {
        width: 100%;
        height: 2.2em;
        border-radius: 12px;
        padding: 0.5em 0.7em;
        background: #222;
        color: #fff;
        border: 1.5px solid #1e90ff;
        font-size: 0.98em;
        line-height: 1.3;
        resize: vertical;
        overflow: auto;
    }
.index-post-card {
    width: 180px; height: 260px;
    margin: 1.2em;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 12px #7ee7d6aa, 0 0 0 2px #fff8;
    opacity: 0.93;
    border: 2px solid #fff8;
    transition: transform 0.22s, box-shadow 0.2s;
}
@media (max-width: 700px) {
    .index-post-card { width: 44vw; height: 28vw; min-width: 120px; min-height: 80px; margin: 0.5em; }
}

/* Hafribook Logo: Darkmode-Optimierung */
    .hafribook-logo-main {
        font-family: 'Inter',sans-serif;
        font-size: 2.5em;
        font-weight: 900;
        background: linear-gradient(90deg,#1bbfa0 0%, #7ee7d6 50%, #ffe6a7 90%, #222 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #222;
        letter-spacing: 2.5px;
        transition: color 0.2s, background 0.2s;
            filter: none !important;
    }
@media (prefers-color-scheme: dark) {
        .hafribook-logo-main {
            color: #fff;
                background: none !important;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
                filter: none !important;
        }
}

/* Buttons und Links: Keine Unterstreichung */
.button, button, a.button, .card a, .story-link, .profile-link, .feed-link, .user-name, .username-link {
  text-decoration: none !important;
}
.story-username, .story-link b, .feed-username, .comment-username {
  text-decoration: none !important;
}

/* Taskbar icon neon glow effect */
.taskbar-icon img {
    transition: filter 0.18s;
}
.taskbar-icon.active img {
    filter: drop-shadow(0 0 8px #1ee7ff) drop-shadow(0 0 16px #1ee7ff);
}
/* Taskbar icons: no glow, no animation, instant render */
.taskbar-icon img {
    height: 1.3em;
    filter: none;
    transition: none;
}
.taskbar-icon.active img {
    filter: none;
    box-shadow: none;
}
.taskbar-icon:active img,
.taskbar-icon:focus img {
    filter: brightness(0.85);
    box-shadow: none;
}

.bottom-bar a,
.bottom-bar a:focus,
.bottom-bar a:active,
.bottom-bar a:visited {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

html.is-transitioning body {
    opacity: 0.94;
    transition: opacity 0.16s ease;
}

body {
    line-height: 1.5;
}

.container {
    padding-top: calc(1.45rem + env(safe-area-inset-top, 0px));
}

.card,
.feed-post {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18) !important;
}

.card p,
.feed-post p,
.card div,
.feed-post div,
.card span,
.feed-post span {
    text-shadow: none;
}

.post-time {
    color: #c7d2e0 !important;
}

input,
textarea {
    color: #f7fbff !important;
    background: #0f1724 !important;
    border-color: rgba(110, 231, 255, 0.35) !important;
}

input::placeholder,
textarea::placeholder {
    color: #9bb0c7 !important;
}

.bottom-bar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(92vw, 460px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.62rem 0.8rem calc(0.62rem + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(10, 15, 24, 0.76);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.taskbar-icon {
    position: relative;
    min-width: 52px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), background-color 0.22s ease, opacity 0.18s ease;
}

.taskbar-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(110, 231, 255, 0.95), rgba(164, 240, 255, 0.75));
    transform: translateX(-50%) scaleX(0.35);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), opacity 0.18s ease;
}

.taskbar-icon img {
    height: 1.34em;
    opacity: 0.78;
    filter: saturate(0.92) brightness(0.96);
    transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), opacity 0.18s ease, filter 0.22s ease;
}

.bottom-bar .taskbar-icon:hover {
    background: rgba(110, 231, 255, 0.06);
    transform: translateY(-1px);
}

.bottom-bar .taskbar-icon:hover img {
    opacity: 0.94;
    filter: saturate(1.02) brightness(1.02);
}

.bottom-bar .taskbar-icon.active {
    background: linear-gradient(180deg, rgba(110, 231, 255, 0.1), rgba(110, 231, 255, 0.03));
    transform: translateY(-1px);
    box-shadow: none !important;
}

.bottom-bar .taskbar-icon.active::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.bottom-bar .taskbar-icon.active img {
    opacity: 1;
    filter: saturate(1.08) brightness(1.08);
    transform: translateY(-1px);
}

.bottom-bar .taskbar-icon:active {
    transform: scale(0.97);
    background: rgba(110, 231, 255, 0.04) !important;
    box-shadow: none !important;
}

.bottom-bar .taskbar-icon:active img {
    opacity: 0.88;
    filter: saturate(1) brightness(0.95);
    transform: scale(0.98);
}

.bottom-bar .taskbar-icon:focus,
.bottom-bar .taskbar-icon:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

@keyframes finnlyComposerIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
        box-shadow: 0 10px 22px rgba(6, 18, 34, 0.16);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 18px 34px rgba(6, 18, 34, 0.22);
    }
}

@keyframes finnlyPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(255, 88, 112, 0.42); }
    100% { box-shadow: 0 0 0 16px rgba(255, 88, 112, 0); }
}

@keyframes finnlyBadgePop {
    0% { transform: scale(0.7); opacity: 0.4; }
    60% { transform: scale(1.16); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.feed-composer-card {
    animation: finnlyComposerIn 0.52s cubic-bezier(.22,1,.36,1);
    transform-origin: center top;
}

.feed-composer-input {
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.feed-composer-input:focus {
    box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.14);
    transform: translateY(-1px);
}

.feed-composer-input::placeholder {
    color: #d7f3ff;
    letter-spacing: 0.01em;
}

#notifications-top-link {
    transition: transform 0.24s cubic-bezier(.22,1,.36,1), box-shadow 0.22s ease, background 0.22s ease;
}

#notifications-top-link.notif-pop {
    animation: finnlyPulseRing 0.7s ease-out;
    transform: scale(1.08);
    box-shadow: 0 14px 32px rgba(255, 61, 93, 0.24);
}

#notif-top-badge.notif-badge-pop {
    animation: finnlyBadgePop 0.38s cubic-bezier(.22,1,.36,1);
}

.explore-search-shell {
    padding: 0.42rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(110, 231, 255, 0.16), rgba(77, 163, 255, 0.08));
    border: 1px solid rgba(110, 231, 255, 0.16);
    box-shadow: 0 14px 32px rgba(6, 18, 34, 0.18);
    animation: finnlyComposerIn 0.46s cubic-bezier(.22,1,.36,1);
}

.explore-search-input {
    min-height: 48px;
    border: 0 !important;
    background: rgba(8, 17, 28, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.explore-search-input:focus {
    box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.14), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

.explore-search-button {
    min-width: 48px !important;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 12px 24px rgba(77, 163, 255, 0.2) !important;
}

.comment-preview-card,
.comment-modal-card {
    margin-bottom: 0.45rem;
    padding: 0.62rem 0.78rem;
    border-radius: 18px;
    color: #f8fbff;
}

.comment-preview-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 0.16rem;
    font-size: 0.88rem;
}

.comment-preview-time {
    color: #c8d4e3;
    font-size: 0.74rem;
}

.comment-preview-body {
    line-height: 1.34;
    font-size: 0.92rem;
    word-break: break-word;
}

.comment-preview-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.34rem;
    flex-wrap: wrap;
}

.comment-vote-chip,
.comment-reply-chip {
    border: 0;
    border-radius: 999px;
    padding: 0.1rem 0.42rem;
    font-size: 0.72rem;
    min-height: 22px;
    line-height: 1;
    cursor: pointer;
}

.comment-vote-chip:hover,
.comment-reply-chip:hover,
.comment-vote-chip:active,
.comment-reply-chip:active,
.comment-vote-chip:focus,
.comment-reply-chip:focus,
.comment-vote-chip:focus-visible,
.comment-reply-chip:focus-visible {
    transform: none !important;
    box-shadow: none !important;
}

.comment-vote-chip.good {
    background: rgba(40, 201, 103, 0.18);
    color: #69f0a2;
}

.comment-vote-chip.bad {
    background: rgba(255, 69, 58, 0.16);
    color: #ff8b84;
}

.comment-vote-chip.active.good {
    background: rgba(40, 201, 103, 0.3);
}

.comment-vote-chip.active.bad {
    background: rgba(255, 69, 58, 0.28);
}

.comment-reply-chip {
    background: rgba(126, 231, 255, 0.12);
    color: #b8f4ff;
}

.comment-replies {
    margin-top: 0.42rem;
    padding-left: 0.7rem;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.comment-reply-row {
    display: flex;
    gap: 0.34rem;
    flex-wrap: wrap;
    margin-top: 0.24rem;
    font-size: 0.84rem;
}

.comments-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
}

.comments-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 16, 0.72);
    backdrop-filter: blur(10px);
}

.comments-modal-sheet {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 680px);
    max-height: min(78vh, 760px);
    background: rgba(9, 14, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px 28px 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
}

.comments-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    color: #f8fbff;
}

.comments-modal-close {
    border: 0;
    background: transparent;
    color: #d8e4ef;
    font-size: 1.8rem;
    cursor: pointer;
}

.comments-modal-list {
    overflow-y: auto;
    padding-right: 0.2rem;
}

.comments-modal-form {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.comments-modal-form input {
    flex: 1;
    border-radius: 999px;
    padding: 0.8rem 1rem;
}

.comments-empty {
    color: #c8d4e3;
    text-align: center;
    padding: 1.2rem 0.5rem;
}

body.comments-modal-open {
    overflow: hidden;
}

.chat-screen {
    padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.chat-shell {
    max-width: 760px;
    margin: 0 auto;
}

.chat-topbar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    margin-top: 0.45rem;
    margin-bottom: 0.9rem;
    border-radius: 24px;
    background: rgba(10, 15, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.chat-back {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #f7fbff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.45rem;
}

.chat-peer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.chat-peer-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6ee7ff;
}

.chat-peer-pic.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 231, 255, 0.18);
    color: #dff9ff;
    font-weight: 800;
}

.chat-peer-name {
    color: #f8fbff;
    font-size: 1.04rem;
    font-weight: 700;
}

.chat-peer-status {
    color: #97b2cb;
    font-size: 0.82rem;
}

.chat-thread {
    min-height: 340px;
    max-height: 68vh;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(110, 231, 255, 0.08), transparent 34%),
        rgba(9, 14, 24, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 34px rgba(0, 0, 0, 0.24);
}

.chat-row {
    display: flex;
    margin-bottom: 0.55rem;
}

.chat-row.me {
    justify-content: flex-end;
}

.chat-row.other {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: min(78%, 460px);
    padding: 0.78rem 0.92rem 0.62rem;
    border-radius: 22px;
    line-height: 1.45;
}

.chat-bubble.me {
    background: linear-gradient(135deg, rgba(110, 231, 255, 0.92), rgba(66, 184, 255, 0.9));
    color: #08111c;
    border-bottom-right-radius: 8px;
}

.chat-bubble.other {
    background: rgba(255, 255, 255, 0.06);
    color: #f4f9ff;
    border-bottom-left-radius: 8px;
}

.chat-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-time {
    margin-top: 0.28rem;
    font-size: 0.74rem;
    opacity: 0.72;
}

.chat-compose {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.9rem;
    padding: 0.7rem;
    border-radius: 24px;
    background: rgba(10, 15, 24, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-compose input {
    flex: 1;
    border-radius: 999px;
    padding: 0.85rem 1rem;
}

.chat-send {
    min-width: 42px;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    margin: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.chat-empty {
    color: #9db0c7;
    text-align: center;
    padding: 1.5rem 0.5rem;
}

html.is-transitioning body {
    opacity: 0.975;
    filter: saturate(0.985);
    transition: opacity 0.18s ease, filter 0.18s ease;
}

@media (max-width: 640px) {
    .feed-logo-wrap {
        padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
    }

    .feed-page-logo {
        margin-top: 1.25rem !important;
    }

    .feed-page-container {
        padding-top: 0 !important;
    }

    .bottom-bar {
        bottom: 10px;
        width: min(94vw, 420px);
        padding: 0.54rem 0.65rem calc(0.54rem + env(safe-area-inset-bottom, 0px));
        border-radius: 24px;
    }

    .taskbar-icon {
        min-width: 48px;
        min-height: 48px;
    }

    .button:hover,
    button:hover,
    .icon-button:hover,
    .compact-icon-button:hover,
    .comment-vote-chip:hover,
    .comment-reply-chip:hover,
    .comment-launch-button:hover {
        transform: none !important;
        box-shadow: none !important;
    }

}

.feed-media-stack {
    display: grid;
    gap: 0.75rem;
}

.feed-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #0b1220;
}

.post-card {
    text-align: left;
    background: linear-gradient(180deg, #16233d 0%, #101826 100%) !important;
    color: #f5fbff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(110, 231, 255, 0.16) !important;
    padding: 1rem !important;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.post-meta {
    margin-left: auto;
    font-size: 0.88rem;
    color: #a9bbcf;
}

.post-text {
    margin: 0;
    padding: 0.8rem 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    line-height: 1.55;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.compact-post-actions {
    gap: 0.45rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #eaf6ff;
    font-size: 0.94rem;
}

.compact-stat-pill {
    min-height: 30px;
    padding: 0 0.62rem;
    font-size: 0.82rem;
    gap: 0.24rem;
}

.icon-button {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
}

.compact-icon-button {
    min-width: 34px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    transform: none !important;
    box-shadow: none !important;
}

.compact-icon-button img {
    height: 0.96rem;
}

.icon-button img {
    height: 1.15rem;
}

.compact-icon-button:hover,
.compact-icon-button:active,
.compact-icon-button:focus,
.compact-icon-button:focus-visible,
.comment-launch-button:hover,
.comment-launch-button:active,
.comment-launch-button:focus,
.comment-launch-button:focus-visible {
    transform: none !important;
    box-shadow: none !important;
}

.comment-preview-card {
    cursor: pointer;
}

.delete-button {
    background: rgba(255, 107, 129, 0.18) !important;
}

.compact-time {
    color: #a9bbcf !important;
    font-size: 0.84rem !important;
}

.upload-progress {
    width: 100%;
    margin-top: 0.9rem;
    display: none;
    padding: 0.8rem 0.85rem 0.78rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(110, 231, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.upload-progress.is-visible {
    display: block;
    animation: uploadFadeIn 0.22s ease;
}

.upload-progress.is-finalizing .upload-progress-track {
    background: rgba(110, 231, 255, 0.16);
}

.upload-progress-track {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.upload-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8be9ff 0%, #42b8ff 48%, #1e90ff 100%);
    box-shadow: 0 0 18px rgba(110, 231, 255, 0.24);
    transition: width 0.24s ease;
}

.upload-progress.is-finalizing .upload-progress-bar {
    background: linear-gradient(90deg, #7ee7ff 0%, #b6f5ff 50%, #6ee7ff 100%);
    background-size: 200% 100%;
    animation: uploadShimmer 1.1s linear infinite;
}

.upload-progress-label {
    margin-top: 0.58rem;
    font-size: 0.92rem;
    color: #d9e6f3;
    text-align: center;
    letter-spacing: 0.01em;
}

@keyframes uploadShimmer {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
}

@keyframes uploadFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 820px) {
    input,
    textarea,
    select,
    input[type="text"],
    input[type="password"],
    input[type="search"],
    input[type="email"],
    input[type="tel"] {
        font-size: 16px !important;
    }
}
