/* Öffentliche Seiten: Startseite, Login, Impressum, Datenschutz und das gemeinsame Layout. */

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    /* Flächen */
    --bg-body: #0d1014;
    --bg-card: #14181e;
    --bg-card-hover: #1a1f27;
    --bg-input: #0d1014;
    --bg-subtle: rgba(255, 255, 255, 0.03);
    /* Text */
    --text-main: #e6e9ee;
    --text-muted: #8b95a5;
    --text-faint: #5d6675;
    /* Akzent & Status */
    --primary: #5b8def;
    --primary-hover: #4a7bdc;
    --primary-soft: rgba(91, 141, 239, 0.12);
    --success: #34b47d;
    --error: #e5534b;
    --warning: #d99a2b;
    --discord: #5865F2;
    --discord-hover: #4752C4;
    /* Struktur */
    --border-color: #232a34;
    --border-strong: #2f3846;
    --border-radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --transition: all 0.15s ease;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.55;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh; /* iPad/iPhone: Höhe ohne ein- und ausfahrende Safari-Leiste */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
main {
    flex: 1;
    width: 100%;
    /* Ohne min-width: 0 drücken breite Tabellen (min-width) die ganze Seite auf dem Handy breiter
    als den Bildschirm, statt nur in ihrem .table-wrap seitlich zu scrollen. */
    min-width: 0;
}
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    margin-bottom: 0.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
h1 {
    font-size: 1.5rem;
}
h2 {
    font-size: 1.2rem;
}
h3 {
    font-size: 1.05rem;
}
p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: #7fa6f5;
}
a:focus-visible,
.btn:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}
small {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: inline-block;
}
.mb-0 {
    margin-bottom: 0 !important;
}

/* Zwei Ebenen: [Logo | Discord · Glocke · Name] / darunter die Reiterzeile */
header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
    "logo util"
    "nav  nav";
    align-items: center;
    column-gap: 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 20px 0;
    margin-bottom: 24px;
}
header .logo {
    grid-area: logo;
}
.nav-util {
    grid-area: util;
    display: flex;
    align-items: center;
    gap: 8px;
}
header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    text-decoration: none;
    flex-shrink: 0;
}
header .logo:hover {
    color: var(--text-main); opacity: 0.85;
}
.nav-logo-title {
    color: var(--text-main);
}
header nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 12px -20px 0;
    padding: 6px 14px;
    border-top: 1px solid var(--border-color);
}
header nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
header nav a:hover {
    color: var(--text-main);
    background-color: var(--bg-card-hover);
}
header nav a.active {
    color: var(--text-main);
    font-weight: 600;
    background-color: var(--primary-soft);
    box-shadow: inset 0 -2px 0 var(--primary);
}
.nav-login-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
}
.nav-login-link:hover {
    color: var(--text-main); background: var(--bg-card-hover);
}
.nav-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Burger + Handy-Glocke nur auf kleinen Bildschirmen */
.nav-bar-actions {
    grid-area: actions; display: none; align-items: center; gap: 8px;
}
.nav-item-icon {
    display: none;
}
.nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px !important;
    height: 40px;
    min-height: 0;
    padding: 0 10px;
    margin: 0 !important;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger:hover {
    background: var(--bg-card-hover); box-shadow: none;
}
header.nav-open .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
header.nav-open .nav-burger span:nth-child(2) {
    opacity: 0;
}
header.nav-open .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   3. FOOTER
   ========================================================================== */
#home-footer {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 20px;
    margin-top: 32px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.footer-col {
    display: flex; align-items: center;
}
.footer-left {
    flex: 1; justify-content: flex-start;
}
.footer-center {
    flex: 1; justify-content: center;
}
.footer-right {
    flex: 1; justify-content: flex-end;
}
#home-footer a {
    color: var(--text-muted); text-decoration: none;
}
#home-footer a:hover {
    color: var(--text-main);
}
.icon-skull,
.icon-burger,
.icon-cannabis {
    margin: 0 2px;
    display: inline-block;
}
.icon-skull i {
    color: #cbd2dc;
}
.icon-burger i {
    color: var(--warning);
}
.icon-cannabis i {
    color: var(--success);
}

/* ==========================================================================
   4. CARDS & CONTAINER
   ========================================================================== */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}
.page-card {
    max-width: 800px;
    margin: 0 auto 20px auto;
}
.auth.card {
    max-width: 420px;
    margin: 48px auto;
    padding: 32px;
    box-shadow: var(--shadow-md);
}
.auth.card h1 {
    margin-bottom: 6px; text-align: center;
}
.auth.card > p {
    text-align: center; margin-bottom: 24px;
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
    position: relative;
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; /* statt inset (fehlt in älterem Safari) */
    background: rgba(13, 16, 20, 0.45);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 18px 24px;
    background: rgba(13, 16, 20, 0.82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}
.hero-text h1 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.2;
}
.hero-text p {
    color: #b6bfcc;
    font-size: 0.925rem;
    margin-bottom: 0;
}

/* ==========================================================================
   6. FORMS & BUTTONS
   ========================================================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}
input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 9px 12px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.925rem;
    transition: var(--transition);
    min-height: 40px;
}
input[type="file"] {
    padding: 7px; cursor: pointer;
}
input:hover,
select:hover,
textarea:hover {
    border-color: #3d4757;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.2);
}
input::placeholder,
textarea::placeholder {
    color: var(--text-faint);
}
button,
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background-color: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
    text-decoration: none;
    vertical-align: middle;
    min-height: 40px;
}
button:hover,
.btn:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}
button:active,
.btn:active {
    background-color: #3f6bc4;
}

/* ==========================================================================
   7. ALERTS, STATUS, GESPERRTE FELDER
   ========================================================================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left-width: 3px;
}
.alert.error {
    background-color: rgba(229, 83, 75, 0.1);
    border: 1px solid rgba(229, 83, 75, 0.3);
    border-left: 3px solid var(--error);
    color: #f0837d;
}
input[disabled],
select[disabled] {
    border-color: var(--border-color) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-faint) !important;
    -webkit-text-fill-color: var(--text-faint) !important;
    cursor: not-allowed !important;
    opacity: 1;
}
input[disabled]::placeholder {
    color: var(--text-faint) !important;
}
.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.team-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}
.team-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}
.team-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    min-height: 65px;
}
.team-avatar img {
    object-fit: contain; image-rendering: pixelated;
}
.team-info strong {
    color: var(--text-main);
    font-size: 0.925rem;
    font-weight: 600;
    word-break: break-word;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
    min-width: 550px;
}
th {
    background-color: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}
.card.card-full,
.page-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   13. DISCORD-BUTTON (NAVIGATION)
   ========================================================================== */
.btn-discord-nav {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    background-color: transparent !important;
    border: 1px solid rgba(88, 101, 242, 0.45) !important;
    color: #9ea8f7 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm) !important;
    text-decoration: none;
    box-shadow: none !important;
    margin-left: 4px;
    min-height: 38px;
}
.btn-discord-nav:hover {
    background-color: var(--discord) !important;
    border-color: var(--discord) !important;
    color: #ffffff !important;
}
.btn-discord-nav .discord-icon {
    width: 16px; height: 16px; flex-shrink: 0;
}

/* ==========================================================================
   14. STARTSEITE: BESCHREIBUNGS-KASTEN
   ========================================================================== */
.home-about-card {
    line-height: 1.7;
    margin-bottom: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}
.home-about-content h1,
.home-about-content h2,
.home-about-content h3 {
    margin-top: 14px; margin-bottom: 8px; color: var(--text-main);
}
.home-about-content p {
    color: #c3cad5; margin-bottom: 12px;
}
.home-about-content p:last-child {
    margin-bottom: 0;
}
.home-about-content ul,
.home-about-content ol {
    margin-left: 22px; margin-bottom: 12px; color: #c3cad5;
}
.home-about-content a {
    color: var(--primary); text-decoration: underline; text-underline-offset: 2px;
}
.home-about-content a:hover {
    color: #7fa6f5;
}

@keyframes rainbowFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fireFlicker {
    0%, 100% { text-shadow: 0 -2px 6px #ff3300, 0 -6px 12px #ff8800, 0 0 20px #ff0000; }
    50% { text-shadow: 0 -3px 8px #ff5500, 0 -8px 16px #ffaa00, 0 0 25px #ff2200; }
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 4px #00ffff, 0 0 10px #00ffff, 0 0 20px #00a8ff, 0 0 40px #0066ff; }
    50% { text-shadow: 0 0 2px #00ffff, 0 0 6px #00ffff, 0 0 14px #00a8ff, 0 0 25px #0066ff; }
}

@keyframes shimmerSweep {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glitchAnim {
    0% { text-shadow: -2px 0 #ff0055, 2px 0 #00ffff; }
    25% { text-shadow: 2px 0 #ff0055, -2px 0 #00ffff; }
    50% { text-shadow: -1px 0 #ff0055, 1px 0 #00ffff; }
    75% { text-shadow: 1px 0 #ff0055, -1px 0 #00ffff; }
    100% { text-shadow: -2px 0 #ff0055, 2px 0 #00ffff; }
}

@keyframes floatPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7)); }
    50% { filter: drop-shadow(0 0 16px rgba(236, 72, 153, 0.9)); }
}
.name-style-default {
    color: var(--text-main); font-weight: 600;
}
.name-style-fire {
    background: linear-gradient(180deg, #fff275 0%, #ff8c00 45%, #e52d27 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: fireFlicker 1.5s infinite alternate;
    display: inline-block;
}
.name-style-neon {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    animation: neonPulse 2s infinite ease-in-out;
}
.name-style-galaxy {
    background: linear-gradient(90deg, #c084fc, #f472b6, #818cf8, #c084fc);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: rainbowFlow 4s ease infinite, floatPulse 3s infinite ease-in-out;
    display: inline-block;
}
.name-style-gold {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shimmerSweep 3s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    display: inline-block;
}
.name-style-rainbow {
    background: linear-gradient(90deg, #ff0055, #ff9900, #ffee00, #00ff66, #00ffff, #7700ff, #ff0055);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: rainbowFlow 3s linear infinite;
    display: inline-block;
}
.name-style-ocean {
    background: linear-gradient(90deg, #38bdf8, #0284c7, #818cf8, #38bdf8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shimmerSweep 3s ease infinite;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
    display: inline-block;
}
.name-style-blood {
    color: #ff3344;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px #990000, 0 0 16px #ff0033, 0 0 24px #660011;
}
.name-style-toxic {
    background: linear-gradient(90deg, #a3e635, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.8));
    display: inline-block;
}
.name-style-ice {
    background: linear-gradient(180deg, #ffffff 10%, #bae6fd 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 0 10px #7dd3fc, 0 0 20px #0284c7;
    letter-spacing: 0.5px;
    display: inline-block;
}
.name-style-cyberpunk {
    color: #ffe600;
    font-weight: 900;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1.5px;
    animation: glitchAnim 1.8s infinite steps(2);
    display: inline-block;
}
.name-style-synthwave {
    background: linear-gradient(180deg, #ff007f 0%, #a855f7 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.6));
    display: inline-block;
}
.name-style-sakura {
    background: linear-gradient(90deg, #ffffff, #f472b6, #ec4899);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: shimmerSweep 4s ease infinite;
    filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.7));
    display: inline-block;
}
.name-style-matrix {
    color: #00ff66;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    text-shadow: 0 0 5px #00ff66, 0 0 15px #008833;
    letter-spacing: 2px;
}
.name-style-midnight {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 8px #6366f1, 0 0 18px #4f46e5, 0 0 30px #312e81;
}
.name-style-platinum {
    background: linear-gradient(110deg, #94a3b8 20%, #ffffff 50%, #94a3b8 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shimmerSweep 2s infinite linear;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
    display: inline-block;
}

/* ---------------------------------------------------------
   Weitere Namenseffekte (Auswahl im Profil, siehe profile.php)
   Nur Systemschriften – keine externen Fonts (Datenschutz).
   Klassennamen: name-style-<a-z0-9>, sonst greift name_style_class() nicht.
   --------------------------------------------------------- */
@keyframes lavaFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes electricFlicker {
    0%, 18%, 22%, 62%, 64%, 100% { text-shadow: 0 0 4px #fff, 0 0 10px #60a5fa, 0 0 22px #2563eb; opacity: 1; }
    20%, 63% { text-shadow: none; opacity: 0.75; }
}
@keyframes ghostFloat {
    0%, 100% { transform: translateY(0); opacity: 0.95; }
    50% { transform: translateY(-2px); opacity: 0.7; }
}
@keyframes crtFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    94% { opacity: 0.82; }
    96% { opacity: 1; }
}

/* Lava: glühendes Rot-Orange, fließend */
.name-style-lava {
    background: linear-gradient(90deg, #ff3d00, #ffb300, #ff6d00, #d50000, #ff3d00);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    animation: lavaFlow 4s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 87, 34, 0.55));
    display: inline-block;
}
/* Aurora: Nordlicht Grün-Türkis-Violett */
.name-style-aurora {
    background: linear-gradient(90deg, #34d399, #22d3ee, #a78bfa, #34d399);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: rainbowFlow 6s ease infinite;
    filter: drop-shadow(0 0 7px rgba(52, 211, 153, 0.45));
    display: inline-block;
}
/* Royal: Serifenschrift, Kapitälchen, Violett mit Goldkante */
.name-style-royal {
    font-family: Georgia, 'Times New Roman', serif;
    font-variant: small-caps;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e9d5ff;
    text-shadow: 0 1px 0 #a16207, 0 0 10px rgba(168, 85, 247, 0.7);
}
/* Vintage: kursive Serifenschrift in Sepia */
.name-style-vintage {
    font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    color: #f3d9a4;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 0 #5c3d1e, 0 0 8px rgba(243, 217, 164, 0.25);
}
/* Graffiti: kräftige Plakatschrift, Pink-Gelb mit dunkler Kante */
.name-style-graffiti {
    font-family: Impact, 'Arial Black', 'Franklin Gothic Bold', sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #fde047 0%, #fb7185 60%, #e11d48 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 0 #1e1b4b) drop-shadow(0 0 6px rgba(251, 113, 133, 0.5));
    display: inline-block;
}
/* Comic: Comic-Schrift, Gelb mit schwarzer Umrandung */
.name-style-comic {
    font-family: 'Comic Sans MS', 'Comic Neue', 'Chalkboard SE', cursive;
    font-weight: 700;
    color: #fde047;
    letter-spacing: 0.5px;
    text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111, 2px 2px 0 #dc2626;
}
/* Terminal: Bernstein-Monitor im Retro-Look */
.name-style-terminal {
    font-family: 'Lucida Console', Consolas, 'Courier New', monospace;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 1px;
    text-shadow: 0 0 4px #f59e0b, 0 0 12px rgba(245, 158, 11, 0.6);
    animation: crtFlicker 4s infinite;
}
/* Hologramm: schimmernder Regenbogen-Glanz */
.name-style-holo {
    background: linear-gradient(110deg, #a5f3fc 0%, #f0abfc 25%, #fde68a 50%, #a5f3fc 75%, #f0abfc 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shimmerSweep 3s linear infinite;
    filter: drop-shadow(0 0 5px rgba(240, 171, 252, 0.5));
    display: inline-block;
}
/* Electric: Weiß-Blau mit Flackern wie Strom */
.name-style-electric {
    color: #eff6ff;
    font-weight: 800;
    letter-spacing: 0.5px;
    animation: electricFlicker 3s infinite;
}
/* Sunset: Sonnenuntergang Orange-Pink-Violett */
.name-style-sunset {
    background: linear-gradient(90deg, #fb923c, #f472b6, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.45));
    display: inline-block;
}
/* Emerald: Smaragd mit Glanzlicht */
.name-style-emerald {
    background: linear-gradient(110deg, #10b981 20%, #6ee7b7 45%, #ecfdf5 50%, #6ee7b7 55%, #10b981 80%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shimmerSweep 3.5s linear infinite;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.55));
    display: inline-block;
}
/* Ruby: Rubin mit Glanzlicht */
.name-style-ruby {
    background: linear-gradient(110deg, #f43f5e 20%, #fda4af 45%, #fff1f2 50%, #fda4af 55%, #f43f5e 80%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shimmerSweep 3.5s linear infinite;
    filter: drop-shadow(0 0 5px rgba(244, 63, 94, 0.55));
    display: inline-block;
}
/* 3D: weiße Schrift mit gestaffeltem Violett-Schatten */
.name-style-retro3d {
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 #a855f7, 2px 2px 0 #9333ea, 3px 3px 0 #7e22ce, 4px 4px 6px rgba(0, 0, 0, 0.6);
}
/* Ghost: blass, leicht schwebend */
.name-style-ghost {
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(226, 232, 240, 0.6), 0 0 18px rgba(148, 163, 184, 0.4);
    animation: ghostFloat 3s ease-in-out infinite;
    display: inline-block;
}
/* Military: Tarn-Olivgrün in Schablonen-Optik */
.name-style-military {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    letter-spacing: 2px;
    color: #bef264;
    text-shadow: 1px 1px 0 #365314, 0 0 6px rgba(132, 204, 22, 0.35);
}
/* Ice Queen: schlichte Serifenschrift in Eisblau-Silber */
.name-style-frost {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 50%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px rgba(125, 211, 252, 0.6));
    display: inline-block;
}

/* Wer Bewegung reduziert haben möchte (Systemeinstellung), bekommt die Effekte ohne Animation */
@media (prefers-reduced-motion: reduce) {
    [class*="name-style-"] {
        animation: none !important;
    }
}

/* Strafrang Kloputzer */
.name-style-kloputzer {
    display: inline-block;
    font-weight: 900 !important;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, #b07d4b 0%, #5a3210 55%, #301700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(107, 61, 21, 0.9)) drop-shadow(0 0 10px rgba(50, 25, 5, 0.7));
    position: relative;
    animation: kloputzerStench 2.5s ease-in-out infinite alternate;
}
.name-style-kloputzer::before {
    content: "💩 ";
    -webkit-text-fill-color: initial;
    filter: none;
    font-size: 0.95em;
}

@keyframes kloputzerStench {
    0% { filter: drop-shadow(0 0 3px rgba(120, 70, 25, 0.7)) brightness(0.85); transform: translateY(0); }
    50% { filter: drop-shadow(0 0 8px rgba(85, 107, 47, 0.6)) drop-shadow(0 0 12px rgba(110, 60, 15, 0.9)) brightness(1.05); transform: translateY(-1px); }
    100% { filter: drop-shadow(0 0 4px rgba(70, 40, 10, 0.8)) brightness(0.9); transform: translateY(0); }
}

/* Datumsfeld & Anzahl-Stufen */
input[type="date"] {
    background-color: var(--bg-input) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-sm) !important;
    padding: 9px 12px !important;
    color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) brightness(1.2);
    cursor: pointer;
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column; text-align: center;
    }
    .hero-text h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 960px) {
    header {
        grid-template-areas:
        "logo actions"
        "nav  nav"
        "util util";
        padding: 10px 14px;
        position: sticky;
        top: 8px;
        z-index: 900;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-bar-actions {
        display: flex;
    }
    header nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 2px;
        margin: 10px 0 0;
        padding: 10px 0 0;
    }
    header.nav-open nav {
        display: flex;
    }
    .nav-util {
        display: none; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0 4px;
    }
    header.nav-open .nav-util {
        display: flex;
    }
    header nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        font-size: 0.95rem;
        flex: none;
        text-align: left;
    }
    header nav a.active {
        box-shadow: inset 3px 0 0 var(--primary);
    }
    .nav-item-icon {
        display: inline-block; width: 18px; text-align: center; color: var(--text-faint);
    }
    header nav a.active .nav-item-icon {
        color: var(--primary);
    }
    .btn-discord-nav {
        justify-content: center; margin: 0 !important; width: 100% !important;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .footer-flex {
        flex-direction: column; gap: 12px; text-align: center;
    }
    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .card {
        padding: 16px;
    }
    .auth.card {
        padding: 22px 16px; margin: 20px auto;
    }
}

@media (max-width: 480px) {
    button,
    .btn {
        width: 100%; justify-content: center; margin-bottom: 8px;
    }
}
.footer-disclaimer {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.footer-disclaimer small {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.85;
    line-height: 1.4;
    display: block;
    margin-top: 8px;
}

/* Kein grauer Tipp-Blitz und keine 300-ms-Verzögerung/Doppeltipp-Zoom auf Bedienelementen */
a,
button,
.btn,
select,
label,
summary,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* Firefox: Zahlen-Pfeile wie in Chrome ausblenden, Scrollbalken passend einfärben */
input[type="number"] {
    -moz-appearance: textfield; appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Safari: Suchfelder sonst mit eigenem runden Stil */
input[type="search"] {
    -webkit-appearance: none; appearance: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
