:root {
    --bg: #F6F6F6;
    --surface: #F6F6F6;
    --surface-alt: #F3F3F3;
    --text: #212121;
    --text-muted: #6B6B6B;
    --border: #DEDEDE;
    --primary: #CB4C09;
    --primary-hover: #A93F07;
    --on-primary: #FFFFFF;
    --dark-band: #131313;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.2s ease-in-out;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 1.85rem);
    }

    h3 {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    }

    h4,
    h5 {
        font-size: clamp(1.1rem, 3vw, 1.25rem);
    }

    a,
    span,
    p {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-band);
    color: #FFFFFF;
    padding: 16px 24px;
    z-index: 9999;
    border-top: 2px solid var(--primary);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #E0E0E0;
}

.cookie-consent-link {
    color: #FFFFFF;
    text-decoration: underline;
}

.cookie-consent-link:hover {
    color: var(--primary);
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent-btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.cookie-consent-btn-primary:hover {
    background-color: var(--primary-hover);
}

.cookie-consent-btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.cookie-consent-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

/* ===== header_block ===== */
#header {
    overflow: hidden;
}

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

/* ===== about_book_block ===== */
#ueber-das-buch {
    hyphens: auto;
    box-sizing: border-box;
}

#ueber-das-buch * {
    box-sizing: border-box;
}

/* ===== topics_block ===== */
#hauptthemen {
    hyphens: auto;
    word-break: break-word;
}

#hauptthemen article {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#hauptthemen article:hover {
    border-color: #CB4C09;
    box-shadow: 0 4px 12px rgba(203, 76, 9, 0.08);
}

/* ===== target_audience_block ===== */
#zielgruppe {
    hyphens: auto;
}

#zielgruppe .border {
    border-color: #DEDEDE;
}

/* ===== approach_block ===== */
#ansatz {
    overflow: hidden;
}

#ansatz .js-approach-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0;
}

#ansatz .js-approach-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ===== book_details_block ===== */
#ausgabe table th,
#ausgabe table td {
    vertical-align: top;
}

#ausgabe .js-share-btn:focus {
    outline: 2px solid #CB4C09;
    outline-offset: 2px;
}

/* ===== author_block ===== */
#autor .hyphens-auto {
    hyphens: auto;
}

/* ===== faq_block ===== */
#faq button:focus {
    outline: 2px solid #CB4C09;
    outline-offset: 2px;
}

#faq .js-faq-item {
    border-radius: 0px;
}

#faq .js-faq-content {
    background-color: #FBFBFB;
}

#faq .js-faq-item.is-open .js-faq-icon i::before {
    content: "\f068";
}

/* ===== footer_block ===== */
#kontakt {
    hyphens: auto;
}

#kontakt a {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* ===== legal pages: mobile top offset ===== */
@media (max-width: 767px) {
    .legal-page-wrapper {
        padding-top: 36px !important;
    }

    .legal-page-wrapper .legal-content-card > main,
    .legal-page-wrapper .legal-content-card > section {
        padding-top: 16px !important;
    }
}