/*
Theme Name: Bad Alibi
Theme URI: https://badalibi.de
Author: Stefan Schmidt-Egermann
Author URI: https://sparringspartner.one
Description: Bad Alibi — Keine Ausreden mehr. Theme für badalibi.de
Version: 1.0.0
License: Private
Text Domain: bad-alibi
*/

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
    --black: #0a0a0a;
    --white: #f2f0eb;
    --red: #c0392b;
    --red-dark: #96281b;
    --gray: #1e1e1e;
    --gray-mid: #3a3a3a;
    --gray-light: #888;
    --display: 'Bebas Neue', sans-serif;
    --serif: 'Crimson Pro', Georgia, serif;
    --mono: 'DM Mono', monospace;
}

body {
    font-family: var(--serif);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.75;
    font-size: 18px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Custom Cursor ── */
* { cursor: none; }
.cursor {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
    mix-blend-mode: difference;
}
.cursor.hover { width: 40px; height: 40px; }

/* ── Noise Overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Forms ── */
.form-group {
    display: flex;
    border: 1px solid var(--gray-mid);
    background: rgba(242,240,235,0.03);
    transition: border-color 0.3s ease;
}
.form-group:focus-within { border-color: var(--red); }
.form-group input {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--serif);
    font-size: 16px;
    color: var(--white);
}
.form-group input::placeholder {
    color: rgba(242,240,235,0.25);
    font-style: italic;
}
.form-group button {
    padding: 18px 32px;
    background: var(--red);
    border: none;
    color: var(--white);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.form-group button:hover { background: var(--red-dark); }

/* ── Section Labels ── */
.section-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-mid);
    max-width: 60px;
}

/* ── Responsive Base ── */
@media (max-width: 600px) {
    .form-group { flex-direction: column; }
    .form-group input { padding: 16px 20px; }
    .form-group button { padding: 14px; text-align: center; }
}
