/* ============================================================
 * basti. - Landing Page
 * Hell-Modus  = Variante B  (cremefarbenes Papier, Serif aufrecht)
 * Dunkel-Modus = Variante A (tiefschwarz, Serif kursiv, dezente Linien)
 * ============================================================ */

:root {
    /* Hell-Modus (Variante B - jetzt mit Ornament-Linien fuer visuelle Konsistenz) */
    --bg: #faf6ec;
    --fg: #1a1a1a;
    --fg-muted: rgba(26, 26, 26, 0.55);
    --ornament: rgba(26, 26, 26, 0.28);
    --accent: #26d3b8;             /* Tuerkis - Akzentfarbe in beiden Modi */
    --nav-bg: rgba(250, 246, 236, 0.65);
    --nav-border: rgba(26, 26, 26, 0.08);
    --hover-bg: rgba(26, 26, 26, 0.05);
}

[data-bs-theme="dark"] {
    /* Dunkel-Modus (Variante A) - Opacity erhoeht fuer Mobile-Sichtbarkeit */
    --bg: #0a0908;
    --fg: #f5ecd6;
    --fg-muted: rgba(245, 236, 214, 0.55);
    --ornament: rgba(216, 205, 181, 0.65);
    --accent: #26d3b8;             /* Tuerkis bleibt identisch (Marke) */
    --nav-bg: rgba(10, 9, 8, 0.6);
    --nav-border: rgba(245, 236, 214, 0.08);
    --hover-bg: rgba(245, 236, 214, 0.06);
}

/* ----- Smooth theme transition --------------------------------- */
html {
    transition: background-color 0.35s ease, color 0.35s ease;
}

body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    background-color: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- Navigation ---------------------------------------------- */
.navbar-translucent {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid var(--nav-border);
    padding: 0.85rem 0;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--fg) !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand-mark:hover,
.brand-mark:focus {
    opacity: 0.7;
}

.brand-sigil {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: inline-block;
}

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

/* ----- Theme Toggle -------------------------------------------- */
.theme-toggle {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--fg);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-left: auto;
}

.theme-toggle:hover {
    background-color: var(--hover-bg);
}

.theme-toggle:active {
    transform: scale(0.94);
}

.theme-toggle:focus-visible {
    outline: 1px solid var(--fg-muted);
    outline-offset: 2px;
}

.theme-toggle i {
    font-size: 1rem;
    line-height: 1;
}

/* Icon-Wechsel je nach Theme */
[data-bs-theme="light"] .icon-light { display: none; }
[data-bs-theme="light"] .icon-dark  { display: inline-block; }
[data-bs-theme="dark"]  .icon-light { display: inline-block; }
[data-bs-theme="dark"]  .icon-dark  { display: none; }

/* ----- Hero ---------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem;
    animation: fadeIn 1.4s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
    .hero { animation: none; }
    html, .navbar-translucent { transition: none; }
}

/* ----- Quote-Frame --------------------------------------------- */
.quote-frame {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.ornament {
    width: 60px;
    height: 2px;                    /* 2px statt 1px - verlaesslicher auf High-DPI */
    background-color: var(--ornament);
    margin: 0 auto;
    border-radius: 1px;             /* mikro-abgerundet, wirkt feiner */
    transition: background-color 0.35s ease;
}

.quote {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--fg);
    margin: 1.75rem 0;
    letter-spacing: 0.01em;
}

[data-bs-theme="dark"] .quote {
    font-style: italic;
    letter-spacing: 0.015em;
}

.attribution {
    display: block;
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--fg-muted);
    margin-top: 1.75rem;
    letter-spacing: 0.05em;
}

[data-bs-theme="light"] .attribution::before {
    content: "";
}

[data-bs-theme="dark"] .attribution::before {
    content: "— ";
}

/* ----- Responsive ---------------------------------------------- */
@media (max-width: 480px) {
    .hero { padding: 5rem 1rem; }
    .ornament { width: 44px; }      /* Mobile etwas schmaler, aber stabil sichtbar */
    .quote { line-height: 1.45; }
}
