/**
 * T26 Boilerplate Theme - WBCE CMS
 * @author      Thodde26 (Thorsten)
 * @Version     1.0.0
 * @link        https://www.thodde26.de
 * @file        style.css
 * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License v3.0
 */

/* ── 1. CSS VARIABLEN (Nur noch Layout! Farben kommen aus der theme_preset.css) ── */
:root {
    /* Typografie */
    --t26-font-family:      'Inter', system-ui, -apple-system, sans-serif;
    --t26-font-base:        16px;
    --t26-line-height:      1.6;

    /* Abstände & Layout */
    --t26-space-sm:         0.5rem;
    --t26-space-md:         1rem;
    --t26-space-lg:         2rem;
    --t26-container-width:  1200px;
    --t26-radius:           6px;

    /* Toolbar & Sticky Header Einstellungen */
    --t26-toolbar-height: 40px;
    --t26-header-height: 100px;
}

/* ── STICKY WRAPPER & HEADER ANPASSUNGEN ── */
.t26-sticky-wrapper {
    position: sticky;
    top: var(--t26-toolbar-height);
    z-index: 999;
    width: 100%;
    box-shadow: 0 4px 6px -1px var(--t26-shadow-color);
}

.t26-header {
    background-color: var(--t26-bg-surface);
    min-height: var(--t26-header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--t26-border-color);
    padding: 0;
}

/* ── 2. RESET & BASIS (Barrierefreiheit Regel 22) ── */
*, *::before, *::after {
    box-sizing: border-box;
}

body.t26-theme-body {
    margin: 0;
    padding: 0;
    font-family: var(--t26-font-family);
    font-size: var(--t26-font-base);
    line-height: var(--t26-line-height);
    background-color: var(--t26-bg-body);
    color: var(--t26-text-main);
}

/* Zwingender Fokus-Style für Tastaturnavigation */
:focus-visible {
    outline: 3px solid var(--t26-accent-color);
    outline-offset: 2px;
}

a {
    color: var(--t26-primary-base);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover, a:focus {
    color: var(--t26-primary-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── 3. LAYOUT STRUKTUR ── */
.t26-container {
    width: 100%;
    max-width: var(--t26-container-width);
    margin: 0 auto;
    padding: 0 var(--t26-space-md);
}

/* Header */
.t26-header {
    background-color: var(--t26-bg-surface);
    padding: var(--t26-space-md) 0;
    border-bottom: 1px solid var(--t26-border-color);
}

.t26-logo img {
    max-height: 60px;
}

/* Navigation */
.t26-main-nav {
    background-color: var(--t26-primary-base);
    padding: var(--t26-space-sm) 0;
}

/* ── NAVIGATION WAAGERECHT & EINZEILIG ── */
.t26-nav-link {
    color: var(--t26-text-invert);
    font-weight: 500;
    padding: var(--t26-space-md) var(--t26-space-sm);
    display: block;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.t26-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
}

.t26-nav-link:hover,
.t26-nav-link.menu-current {
    color: var(--t26-text-invert);
    background-color: var(--t26-primary-hover);
    border-radius: var(--t26-radius);
    text-decoration: none;
}

/* Hauptinhalt */
.t26-main-content {
    padding: var(--t26-space-lg) 0;
    min-height: 60vh;
}

/* Footer */
.t26-footer {
    background-color: var(--t26-bg-footer);
    padding: var(--t26-space-lg) 0;
    border-top: 1px solid var(--t26-border-color);
    text-align: center;
    color: var(--t26-text-muted);
}

.t26-footer-nav {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: var(--t26-space-md);
    margin-top: var(--t26-space-md);
}

.t26-footer-link {
    color: var(--t26-text-muted);
}

.t26-footer-link:hover {
    color: var(--t26-primary-base);
}

/* ── 4. UI-KOMPONENTEN ── */
.t26-btn {
    display: inline-block;
    padding: 0.5em 1em;
    border: 1px solid var(--t26-border-color);
    background-color: transparent;
    color: var(--t26-text-main);
    border-radius: var(--t26-radius);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all 0.2s ease;
}

.t26-btn--primary {
    background-color: var(--t26-btn-bg);
    border-color: var(--t26-btn-border);
    color: var(--t26-text-invert);
}

.t26-btn--primary:hover {
    background-color: var(--t26-primary-hover);
    border-color: var(--t26-primary-hover);
    color: var(--t26-text-invert);
}

/* ── DROPDOWN MENÜS (Unterebenen) ── */
.t26-nav-item {
    position: relative;
}

.t26-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--t26-primary-base);
    min-width: 220px;
    box-shadow: 0 4px 12px var(--t26-shadow-color);
    z-index: 1000;
    flex-direction: column;
    padding: var(--t26-space-sm) 0;
    border-radius: 0 0 var(--t26-radius) var(--t26-radius);
}

.t26-nav-item:hover > .t26-dropdown,
.t26-nav-item:focus-within > .t26-dropdown {
    display: flex;
}

.t26-dropdown .t26-nav-link {
    padding: var(--t26-space-sm) var(--t26-space-md);
    white-space: normal;
}

.t26-dropdown .t26-nav-link:hover {
    background-color: var(--t26-primary-hover);
}

/* ── 5. HERO BEREICH ── */
.t26-hero {
    /* Nutzt den Surface-Hintergrund für eine sanfte Abhebung vom Body */
    background-color: var(--t26-bg-surface);
    padding: calc(var(--t26-space-lg) * 2) 0;
    text-align: center;
    border-bottom: 1px solid var(--t26-border-color);

    /* Optional: Ein Hintergrundbild mit dynamischem Farb-Overlay */
    /* background-image: linear-gradient(var(--t26-bg-overlay), var(--t26-bg-overlay)), url('../img/hero-bg.jpg'); */
    background-size: cover;
    background-position: center;
}

.t26-hero__title {
    color: var(--t26-text-main);
    font-size: clamp(2rem, 5vw, 3.5rem); /* Skaliert automatisch auf Handys! */
    font-weight: 800;
    margin-top: 0;
    margin-bottom: var(--t26-space-md);
    line-height: 1.2;
}

.t26-hero__text {
    color: var(--t26-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--t26-space-lg) auto;
}

.t26-hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--t26-space-md);
    flex-wrap: wrap; /* Bricht die Buttons auf Handys um */
}

/* ── ONE-PAGER SMOOTH SCROLLING ── */
html {
    scroll-behavior: smooth;
    /* Verhindert, dass der Sticky-Header den angeankerten Inhalt verdeckt! */
    scroll-padding-top: calc(var(--t26-header-height) + var(--t26-toolbar-height) + var(--t26-space-md));
}
