/* ==========================================================
   logport.info – Dark Theme (augenfreundlich, responsive)
   Zentrales Design-System. Wird in templates/header.php geladen.
   ========================================================== */

:root {
    /* Farben – dunkles Blaugrau statt hartem Schwarz (augenfreundlich) */
    --bg:            #0e141f;
    --bg-alt:        #131b2a;
    --surface:       #182236;
    --surface-2:     #1e2a42;
    --border:        #263450;
    --border-soft:   #1f2b44;

    --text:          #e7ecf5;
    --text-soft:     #c3cde0;
    --muted:         #93a1bd;

    --accent:        #5aa4ff;
    --accent-strong: #2f7fe0;
    --accent-deep:   #1f5fb0;
    --accent-soft:   rgba(90, 164, 255, 0.14);

    --gold:          #e8c766;
    --gold-bg:       rgba(232, 199, 102, 0.14);
    --success:       #4fca7d;
    --success-bg:    rgba(79, 202, 125, 0.12);

    --radius:        14px;
    --radius-lg:     18px;
    --shadow:        0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-hover:  0 12px 28px rgba(0, 0, 0, 0.45);

    color-scheme: dark;
}

/* ---------- Basis ---------- */
* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 { color: var(--text); line-height: 1.25; }
h2 { font-size: clamp(22px, 4vw, 28px); margin: 0 0 12px; }
h3 { font-size: 19px; }

p { color: var(--text-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #82bcff; }

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

img { max-width: 100%; }

::selection { background: var(--accent-deep); color: #fff; }

/* ---------- Header / Navigation ---------- */
.header-wrapper {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

header.site-header {
    max-width: 1150px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img {
    height: 40px;
    /* Logo auf dunklem Grund lesbar halten */
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
}

nav.main-nav { display: flex; align-items: center; gap: 20px; }
nav.main-nav a {
    font-size: 15.5px;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 2px;
}
nav.main-nav a:hover { color: var(--accent); }

.donate-btn {
    background: var(--accent-strong);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 22px;
    font-weight: 600;
    display: inline-block;
}
.donate-btn:hover { background: var(--accent-deep); }

/* Burger */
.burger {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px 7px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.burger div { height: 3px; background: var(--text-soft); border-radius: 3px; }

#mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 8px 20px 20px;
}
#mobile-menu a {
    padding: 14px 4px;
    font-size: 17px;
    text-decoration: none;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border-soft);
    font-weight: 500;
}
#mobile-menu a:hover { color: var(--accent) !important; }
#mobile-menu .donate-btn { margin-top: 16px; text-align: center; border-bottom: none; }

@media (max-width: 850px) {
    nav.main-nav { display: none; }
    .burger { display: flex; }
}

/* ---------- Layout ---------- */
.page-container {
    max-width: 1150px;
    margin: 32px auto;
    padding: 0 18px;
}

.section-card,
.info-box {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    line-height: 1.65;
}

/* ---------- Badges ---------- */
.badge {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 5px 11px;
    border-radius: 10px;
    font-size: 12.5px;
    display: inline-block;
    margin-right: 6px;
    margin-top: 6px;
    font-weight: 600;
}
.badge.fs-badge, .badge.badge-fs {
    background: var(--gold-bg);
    color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn-primary,
button.btn-primary {
    background: var(--accent-strong);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }

/* ---------- Formulare ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
select,
textarea {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 16px; /* verhindert Auto-Zoom auf iOS */
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent-strong);
    outline-offset: 1px;
    border-color: var(--accent-strong);
}
::placeholder { color: var(--muted); }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-alt);
    padding: 28px 0 44px;
    margin-top: 48px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}
.footer-logo {
    width: 92%;
    max-width: 1150px;
    margin: 0 auto 12px;
    text-align: right;
}
.footer-logo-img {
    height: 36px;
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));
}
.footer-inner {
    width: 92%;
    max-width: 1150px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 22px;
}
.footer-left, .footer-center, .footer-right { flex: 1; min-width: 200px; }
.footer-left strong { color: var(--text-soft); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 7px 0; }
.footer-links a { color: var(--accent); }
.footer-links a:hover { text-decoration: underline; }
.footer-right { text-align: right; }
.btn-footer-donate {
    background: var(--accent-strong);
    color: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}
.btn-footer-donate:hover { background: var(--accent-deep); color: #fff; }

@media (max-width: 700px) {
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-right, .footer-logo { text-align: center; }
}

/* ---------- Utility ---------- */
.text-muted { color: var(--muted); }

.success-note {
    padding: 14px 18px;
    background: var(--success-bg);
    border-left: 5px solid var(--success);
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 16px;
    color: var(--text);
}
