/* ============================================================
   Nerd Night Hamburg – Stylesheet
   Dunkel, technisch, mit Terminal-Akzenten
   ============================================================ */

:root {
    --bg:        #0a0e14;
    --bg-card:   #11161f;
    --bg-card-2: #161c27;
    --line:      #232b38;
    --text:      #e6edf3;
    --muted:     #8b97a8;
    --accent:    #4ade80;        /* terminal-grün */
    --accent-2:  #38bdf8;        /* cyan */
    --danger:    #f87171;
    --radius:    16px;
    --mono:      'Space Mono', 'SF Mono', 'Fira Code', monospace;
    --sans:      'Sora', system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Hintergrund-Effekte --- */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.25;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
    z-index: 0;
}

.glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(74,222,128,0.10) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

/* --- Layout --- */
.wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 44px 40px;
    position: relative;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.03) inset,
        0 30px 60px -20px rgba(0,0,0,0.6);
}

/* --- Terminal-Punkte --- */
.terminal-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}
.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--line);
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

/* --- Typografie --- */
.kicker {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--accent);
    text-transform: lowercase;
    margin-bottom: 14px;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 6px 0 12px;
}

.accent {
    color: var(--accent);
}

.lead {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 46ch;
}

/* --- Login-Formular --- */
.login-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74,222,128,0.12);
}
.prompt {
    font-family: var(--mono);
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}
.input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 1rem;
    padding: 16px 0;
}
.input-row input::placeholder { color: #4b5563; }

button[type="submit"],
.btn-primary {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    color: #06210f;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
button[type="submit"]:hover,
.btn-primary:hover {
    background: #5cf08f;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(74,222,128,0.5);
}
button[type="submit"]:active,
.btn-primary:active { transform: translateY(0); }

/* --- Fehlermeldung --- */
.error {
    margin-top: 22px;
    color: var(--danger);
    font-family: var(--mono);
    font-size: 0.92rem;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 10px;
    padding: 14px 16px;
}
.error code {
    color: var(--accent-2);
    font-size: 0.85rem;
}

/* --- Geschützter Bereich --- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.logout {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s, border-color 0.2s;
}
.logout:hover { color: var(--accent); border-color: var(--accent); }

.contact {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-item .label {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.contact-item a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    width: fit-content;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.contact-item a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 36px 0;
}

/* --- Präsentation --- */
.deck-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 26px 0;
}
.btn-ghost {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 24px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
    transform: translateY(-2px);
}

.pdf-frame {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #1f2937;
    aspect-ratio: 4 / 3;
}
.pdf-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- Footer --- */
.foot {
    text-align: center;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.foot .dot { color: var(--accent); }

/* --- Accessibility --- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --- Mobile --- */
@media (max-width: 560px) {
    .card { padding: 32px 22px; }
    .deck-actions { flex-direction: column; }
    .deck-actions a { width: 100%; }
    .pdf-frame { aspect-ratio: 3 / 4; }
}
