/*
 * SPG-Coaching – styles2021.css (modernisiert 2024)
 * Dark Mode · Responsive · Burger-Menü
 * Author: (c) 2024 SPG - Coaching, Sonia Gießler
 */

/* ─── CSS Custom Properties ────────────────────────────────────────────── */

:root {
    /* Brand */
    --brand:        #738ca0;
    --brand-dark:   #5a7080;
    --brand-light:  #e8eef2;
    --accent:       #f0b162;
    --accent-dark:  #d89840;

    /* Surfaces (Light) */
    --bg:       #f3f5f7;
    --surface:  #ffffff;

    /* Text (Light) */
    --text:       #1a2530;
    --text-muted: #5a6a78;

    /* Borders */
    --border: #dde3e8;

    /* Layout */
    --nav-h:  64px;
    --radius: 10px;
    --max-w:  960px;

    /* Transitions */
    --trans: 0.22s ease;
}

/* Dark mode overrides */
[data-mode="dark"] {
    --bg:          #111820;
    --surface:     #1c2630;
    --text:        #e8eef3;
    --text-muted:  #8aa0b0;
    --border:      #2c3d4d;
    --brand-light: #1e3040;
}

/* Automatic dark via OS preference (fallback if JS is off) */
@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) {
        --bg:          #111820;
        --surface:     #1c2630;
        --text:        #e8eef3;
        --text-muted:  #8aa0b0;
        --border:      #2c3d4d;
        --brand-light: #1e3040;
    }
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */

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

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Titillium Web', system-ui, sans-serif;
    font-size: 100%;
    line-height: 1.6;
    transition: background var(--trans), color var(--trans);
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--brand);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background var(--trans);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: var(--nav-h);
    padding: 0 1.25rem;
    gap: 1rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.nav-logo-img {
    height: 42px;
    width: 42px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
}

.nav-logo-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-logo-sub {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    font-weight: 400;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: 0.2rem;
    flex-shrink: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background var(--trans), color var(--trans);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Right-side actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.nav-lang {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    transition: all var(--trans);
    letter-spacing: 0.04em;
}

.nav-lang:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-theme {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background var(--trans);
}

.nav-theme:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Burger button – hidden on desktop */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 6px;
    border-radius: 6px;
    transition: background var(--trans);
}

.burger:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ─── Mobile Menu ────────────────────────────────────────────────────────── */

.mobile-menu {
    display: none;             /* hidden on desktop */
    background: var(--brand-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-menu.open {
    max-height: 280px;
}

.mobile-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--trans);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ─── Page Wrapper ───────────────────────────────────────────────────────── */

.page {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
}

/* ─── Hero Slider ────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    margin-top: 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--brand);
    aspect-ratio: 16 / 5;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.slide.active {
    opacity: 1;
}

.slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 30, 40, 0.55) 0%,
        rgba(10, 18, 25, 0.65) 100%
    );
}

.slide-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 1rem 1.5rem;
    z-index: 1;
}

.slide-text h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.slide-text p {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    margin-top: 0.4rem;
    color: #ffffff;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.75);
}

.slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: none;
    transition: all var(--trans);
    padding: 0;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ─── Subbanner ──────────────────────────────────────────────────────────── */

.subbanner {
    background: var(--brand);
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    border-radius: 8px;
    margin-top: 1rem;
    transition: background var(--trans);
}

/* ─── Content Card ───────────────────────────────────────────────────────── */

.content-card {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    padding: 2rem 2.25rem;
    margin-top: 1.5rem;
    transition: background var(--trans), border-color var(--trans);
}

.content-card h1 {
    color: var(--brand);
    font-size: 1.55rem;
    font-weight: 500;
    margin-bottom: 1.1rem;
    line-height: 1.3;
}

.content-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.content-card p:last-of-type {
    margin-bottom: 0;
}

/* Specialty chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.chip {
    background: var(--brand-light);
    color: var(--brand);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background var(--trans), color var(--trans);
}

[data-mode="dark"] .chip {
    color: #a8c4d4;
}

/* Email CTA */
.email-block {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--brand-light);
    border-radius: var(--radius);
    text-align: center;
    transition: background var(--trans);
}

.email-block a {
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--trans);
}

.email-block a:hover {
    color: var(--accent-dark);
}

[data-mode="dark"] .email-block a {
    color: #a8c4d4;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

footer {
    background: var(--brand);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 1.1rem 1.25rem;
    font-size: 0.8rem;
    margin-top: 2rem;
    border-radius: var(--radius);
    transition: background var(--trans);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 0.25rem;
    transition: color var(--trans);
}

footer a:hover {
    color: var(--accent);
}

/* ─── Headings (global) ──────────────────────────────────────────────────── */

h1 { font-size: 1.5rem; font-weight: 500; color: var(--brand); }
h2 { font-size: 1.25rem; font-weight: 400; color: var(--brand); }
h3 { font-size: 1.1rem; font-weight: 500; color: var(--brand); }

/* ─── Tables ─────────────────────────────────────────────────────────────── */

.table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text);
}

.table th,
.table td {
    padding: 0.6rem 1rem;
    border-bottom: 0.5px solid var(--border);
}

.table tr:nth-child(even) {
    background: var(--brand-light);
}

.spalte1 { width: 70%; }
.spalte2 { width: 30%; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    /* Show burger, hide desktop links */
    .nav-links { display: none; }
    .nav-lang  { display: none; }
    .burger    { display: flex; align-items: center; justify-content: center; }
    .mobile-menu { display: block; }

    /* Taller hero on small screens */
    .hero { aspect-ratio: 16 / 7; margin-top: 1rem; }

    /* Tighter content padding */
    .content-card { padding: 1.25rem 1rem; }

    /* Smaller logo text */
    .nav-logo-text { font-size: 0.85rem; }
}

@media (max-width: 400px) {
    .nav-logo-sub { display: none; }
    .page { padding: 0 0.75rem 2rem; }
}
