/* ── CSS custom properties for sticky offset ─────────────────────────────────
   Used by scroll-margin-top so sections land exactly under the nav bar.
   Overridden in the mobile media query below.                                */
:root {
    --header-height: 15vh;
    --nav-height:    60px;
    --sticky-offset: calc(var(--header-height) + var(--nav-height));
}

/* overflow-x: clip (NOT hidden) prevents horizontal scroll without creating
   a new scroll container. Using "hidden" on html/body kills position:sticky
   because sticky needs an uninterrupted scroll ancestor chain.               */
html,
body {
    overflow-x: clip;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #eae9e9;
    color: #333;
    line-height: 1.6;
}

h1 {
    font-size: 3rem;
    color: #FEFFF0;
}

/* ── Sticky CTA button ───────────────────────────────────────────────────── */
.cta-button {
    position: fixed;
    top: calc(var(--sticky-offset) + 41vh);
    right: 8vw;
    z-index: 200;
    width: 51px;
    height: 51px;
    border-radius: 50%;
    background-color: #FF5500;
    box-shadow: 0 2px 12px rgba(255, 85, 0, 0.5);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
}

.cta-button:hover {
    background-color: #CC4400;
    transform: translateY(-2px);
}

.cta-button.cta-ball {
    background-color: transparent;
    background-image: url('/assets/img/ball.png');
    background-size: cover;
    background-position: center;
    box-shadow: none;
    pointer-events: none;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.cta-button.cta-ball:hover {
    background-color: transparent;
    transform: none;
}

.cta-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.header {
    height: var(--header-height);
    background-color: #eae9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 101;
}

.header h1 {
    font-size: 4rem;
    color: #6a6665;
    font-weight: bold;
}
.header gh1-replica {
    font-size: 4rem;
    color: #333;
    font-weight: bold;
}
gh1-black {
    display: block;
    font-size: 4rem;
    color: #333;
    font-weight: bold;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.menu {
    position: sticky;
    top: var(--header-height);
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.menu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: var(--nav-height);
}

.menu ul {
    display: flex;
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.menu ul li {
    margin: 0 1rem;
}

.menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
    padding-bottom: 3px;
}

.menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.25s ease;
}

.menu ul li a:hover::after {
    width: 100%;
}

.menu ul li a.nav-active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    line-height: 0;
    user-select: none;
}

.hamburger img {
    width: 10px;
    height: 28px;
    display: block;
}

.footer-menu {
    position: relative;
    top: auto;
}

.menu .footer-nav-list {
    display: flex;
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.footer-nav-list li {
    margin: 0 1rem;
}

.footer-date {
    font-size: 0.01px;
    color: transparent;
    height: 1px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.footer-nav-list li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
    padding-bottom: 3px;
}

.footer-nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.25s ease;
}

.footer-nav-list li a:hover::after {
    width: 100%;
}

.footer-nav-list li a.nav-active::after {
    width: 100%;
}

.fhamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    line-height: 0;
    user-select: none;
}

.fhamburger img {
    width: 10px;
    height: 28px;
    display: block;
}

/* ── Language dropdown ───────────────────────────────────────────────────── */
.lang-dropdown {
    position: relative;
    padding: 0 1rem;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.lang-dropdown-btn:hover {
    background: #f0f0f0;
}

.lang-dropdown-btn svg {
    width: 16px;
    height: 16px;
    stroke: #333;
    flex-shrink: 0;
}

.lang-dropdown-menu {
    display: none !important;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    list-style: none;
    padding: 0.4rem 0;
    min-width: 80px;
    z-index: 300;
}

.lang-dropdown-menu.open {
    display: block !important;
}

.lang-dropdown-menu li a {
    display: block;
    padding: 0.45rem 1.1rem;
    text-decoration: none;
    color: #333;
    font-size: 0.88rem;
    font-weight: bold;
    transition: background 0.15s;
}

.lang-dropdown-menu li a:hover {
    background: #f5f5f5;
}

.lang-dropdown-menu li a.nav-active {
    color: #FF5500;
}

/* ── Generic section ─────────────────────────────────────────────────────── */
.section {
    min-height: 85vh;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: var(--sticky-offset);
}

/* ── Section 1: Video background ────────────────────────────────────────── */
#section1 {
    position: relative;
    overflow: hidden;
}

#section1 .section-text h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-text {
    transition: opacity 0.5s ease-in-out;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    transition: opacity 0.8s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* ── Brutalist content block ─────────────────────────────────────────────── */
.brutalist {
    background-color: transparent;
    padding: 2rem;
    text-align: center;
    width: 100%;
    height: 100%;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.brutalist.visible {
    opacity: 1;
    transform: translateY(0);
}

.brutalist .image-container {
    margin-bottom: 2rem;
}

.brutalist .centered-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #fff;
    box-shadow: none;
}

.brutalist .text-container {
    max-width: 775px;
    margin: 0 auto;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: #fffff1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.brutalist p {
    margin: 0;
    text-align: left;
}

.brutalist gh1-replica {
    font-size: 3rem;
    font-weight: 600;
    line-height: 2.5rem;
    color: #6A6665;
    margin-bottom: 1rem;
}

/* ── Typewriter animation ────────────────────────────────────────────────── */
@keyframes typing {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50%      { border-color: orange; }
}

.typewriter h4 {
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation:
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

/* ── Sections 2–9 and sectionX ──────────────────────────────────────────── */
#section2,
#section3,
#section4,
#section5,
#section6,
#section7,
#section8,
#section9,
#sectionX {
    position: relative;
    min-height: 85vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#section1 .section-background,
#section2 .section-background,
#section3 .section-background,
#section4 .section-background,
#section5 .section-background,
#section6 .section-background,
#section7 .section-background,
#section8 .section-background,
#section9 .section-background,
#sectionX .section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    background-image: url('/assets/img/bg3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

#section2 .section-overlay,
#section3 .section-overlay,
#section4 .section-overlay,
#section5 .section-overlay,
#section6 .section-overlay,
#section7 .section-overlay,
#section8 .section-overlay,
#section9 .section-overlay,
#sectionX .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

#section2 .section-content,
#section4 .section-content,
#section5 .section-content,
#section6 .section-content,
#section7 .section-content,
#section8 .section-content,
#section9 .section-content,
#sectionX .section-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

#section2 .section-content h2,
#section4 .section-content h2,
#section5 .section-content h2,
#section6 .section-content h2,
#section7 .section-content h2,
#section8 .section-content h2,
#section9 .section-content h2,
#sectionX .section-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#section2 .section-content p,
#section4 .section-content p,
#section5 .section-content p,
#section6 .section-content p,
#section7 .section-content p,
#section8 .section-content p,
#section9 .section-content p,
#sectionX .section-content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

#section2 .section-text h4,
#section6 .section-headline h4,
#section7 .section-headline h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ── Tab content ─────────────────────────────────────────────────────────── */
.tab-content {
    display: none;
    text-align: left;
    height: 100%;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.tab-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.tab-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* ── Grid (section 3) ────────────────────────────────────────────────────── */
.grid-container {
    width: 90%;
    height: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    margin: 0 auto;
    padding: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.grid-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.grid-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.grid-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    width: 100%;
}

/* ── Contact form (section 4) ────────────────────────────────────────────── */
.contact-container {
    position: relative;
    width: 90%;
    max-width: 775px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #eae9e9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-card {
    background-color: #eae9e9;
    border: 1px solid #d5d4d4;
    border-left: 4px solid #FF5401;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.contact-container gh1-replica {
    font-size: 3rem;
    font-weight: 600;
    line-height: 2.5rem;
    color: #b9b2b1;
    margin-bottom: 1rem;
}

.contact-container h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 0.2rem;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #aaa;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
    outline: none;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    padding: 0.8rem;
    background-color: #FF5500;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: #CC4400;
    transform: translateY(-2px);
}

.form-message {
    display: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
}

.form-message.success {
    display: block;
    background-color: #e6f4ea;
    color: #2d7a3a;
    border: 1px solid #a8d5b0;
}

.form-message.error {
    display: block;
    background-color: #fdecea;
    color: #b00020;
    border: 1px solid #f5b8b3;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.contact-info i {
    font-size: 1.2rem;
    color: #333;
    width: 1.5rem;
    text-align: center;
}

.contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #555;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #555;
    transform: scale(1.1);
}

.form-feedback {
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
}

.form-feedback.success {
    background-color: #e6f4ea;
    color: #2d6a4f;
    border: 1px solid #b7dfca;
}

.form-feedback.error {
    background-color: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f5c0c0;
}

/* ── News articles ───────────────────────────────────────────────────────── */
.news-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.news-article {
    position: relative;
    border-left: 3px solid #FF5500;
    padding-left: 1.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.news-article:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.news-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.8rem;
}

.news-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    min-width: 0;
}

.news-empty {
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

.redaktion-text {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 5pt;
    color: #666;
    opacity: 0.7;
    margin: 5px;
}

.news-img-text {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.layout-img-left .news-img-text,
.layout-img-right .news-img-text {
    flex-direction: row;
}

.news-image {
    width: 40%;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-image-full {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    margin: 0.8rem 0;
}

.news-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .news-img-text {
        flex-direction: column !important;
    }
    .news-image {
        width: 100%;
        max-width: 100%;
    }
    .news-two-col {
        grid-template-columns: 1fr;
    }
}

/* ── Subpage section ─────────────────────────────────────────────────────── */
.subpage-section {
    position: relative;
    min-height: 85vh;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.subpage-section .section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    background-image: url('/assets/img/bg3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.subpage-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 775px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #eae9e9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #333;
    text-align: left;
}

.subpage-container gh1-replica {
    font-size: 3rem;
    color: #b9b2b1;
    font-weight: bold;
    margin-bottom: 1rem;
}

.subpage-container h1 {
    font-size: 3rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 1rem;
}

.subpage-container h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.subpage-container p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.subpage-container a {
    color: #FF5500;
    text-decoration: none;
    box-shadow: 0 1px 0 0 rgba(255, 85, 0, 0.4);
    transition: color 0.2s ease, box-shadow 0.2s ease;
}

.subpage-container a:hover {
    color: #CC4400;
    box-shadow: 0 2px 0 0 rgba(204, 68, 0, 0.7);
}

@media (max-width: 768px) {
    .subpage-container {
        width: 95%;
        margin: 1.5rem auto;
    }
    .subpage-container gh1-replica {
        font-size: 2rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: #f5f5f5;
    border: none;
    padding: 1rem 1.2rem;
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #ececec;
}

.faq-item.open .faq-question {
    background-color: #e8e8e8;
    border-bottom: 1px solid #ddd;
}

.faq-icon {
    font-size: 1.3rem;
    font-weight: 300;
    flex-shrink: 0;
    color: #FF5500;
}

.faq-answer {
    max-height: 0 !important;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 1000px !important;
}

.faq-answer p {
    padding: 1rem 1.2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

/* ── Glossar ─────────────────────────────────────────────────────────────── */
.glossar-search-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    transition: border-color 0.18s, box-shadow 0.18s;
    overflow: hidden;
}

.glossar-search-wrap:focus-within {
    border-color: #FF5401;
    box-shadow: 0 2px 14px rgba(255,84,1,0.14);
}

.glossar-search-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 0.75rem 0 1rem;
    color: #aaa;
    pointer-events: none;
    transition: color 0.18s;
}

.glossar-search-wrap:focus-within .glossar-search-icon {
    color: #FF5401;
}

.glossar-search-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.glossar-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.85rem 0.4rem 0.85rem 0;
    font-size: 0.97rem;
    color: #222;
    font-family: inherit;
    min-width: 0;
}

.glossar-search-input::placeholder {
    color: #bbb;
}

.glossar-search-badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #FF5401;
    font-weight: bold;
    padding: 0 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
}

.glossar-search-badge.visible {
    opacity: 1;
}

.glossar-search-clear {
    flex-shrink: 0;
    background: none;
    border: none;
    border-left: 1px solid #e8e8e8;
    cursor: pointer;
    font-size: 1rem;
    color: #bbb;
    padding: 0 1rem;
    align-self: stretch;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.glossar-search-clear:hover {
    color: #FF5401;
    background: #fff5f2;
}

.glossar-no-results {
    display: none;
    padding: 2.5rem 1rem;
    text-align: center;
    color: #999;
    font-size: 0.92rem;
    border: 1px dashed #ccc;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.glossar-item[hidden] {
    display: none !important;
}

.glossar-chapter[data-hidden] {
    display: none;
}

mark.glossar-hl {
    background: rgba(255, 84, 1, 0.15);
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
    font-style: normal;
}

.glossar-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.glossar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

.glossar-item {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #ddd;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: baseline;
}

.glossar-item:nth-child(5n+1) { background-color: #eae9e9; }
.glossar-item:nth-child(5n+2) { background-color: #f5f5f5; }
.glossar-item:nth-child(5n+3) { background-color: #ececec; }
.glossar-item:nth-child(5n+4) { background-color: #e8e8e8; }
.glossar-item:nth-child(5n+5) { background-color: #ddd; }

.glossar-item:last-child {
    border-bottom: none;
}

.glossar-term {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

.glossar-term::after {
    content: ':';
    color: #FF5500;
}

.glossar-definition {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .glossar-item {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

.glossar-toc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0 3rem;
}

.glossar-tile {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.4rem 1.4rem 1.2rem;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid #FF5500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.glossar-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,85,0,0.18);
}

.glossar-tile-number {
    font-size: 0.75rem;
    font-weight: bold;
    color: #FF5500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.glossar-tile-title {
    font-size: 1rem;
    font-weight: bold;
    color: #222;
    line-height: 1.3;
}

.glossar-tile-subtitle {
    font-size: 0.8rem;
    color: #FF5500;
    font-weight: 600;
}

.glossar-tile-fokus {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    margin-top: 0.2rem;
}

.glossar-tile-tags {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.4rem;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    line-height: 1.5;
}

.glossar-chapter {
    margin-top: 3.5rem;
    scroll-margin-top: calc(var(--sticky-offset) + 1rem);
}

.glossar-chapter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #FF5500;
}

.glossar-chapter-number {
    font-size: 2rem;
    font-weight: bold;
    color: #FF5500;
    line-height: 1;
    min-width: 2.5rem;
}

.glossar-chapter-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
    margin: 0;
}

.glossar-chapter-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin: 0.15rem 0 0;
}

.glossar-back {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #FF5500;
    text-decoration: none;
}

.glossar-back:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .glossar-toc {
        grid-template-columns: 1fr;
    }
}

.subpage-block {
    border-left: 3px solid #FF5500;
    padding-left: 1.2rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #ddd;
}

.subpage-block:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.footer-section {
    background-color: #eae9e9;
}

.dot-orange {
    color: #FF5500;
}

.hl {
    color: #FF5500;
}

/* ── Responsive / Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {

    :root {
        --header-height: 10vh;
        --nav-height:    50px;
    }

    .header h1 {
        font-size: 3.5rem;
    }

    .section {
        padding-top: 0;
    }

    .hamburger {
        display: block;
    }

    .fhamburger {
        display: block;
    }

    .menu .footer-copyright {
        font-size: 0.6rem;
        max-width: 55%;
        transform: scale(0.85);
        transform-origin: left center;
        padding: 0 0.25rem;
    }

    .menu .footer-copyright li {
        margin: 0;
        padding: 0;
    }

    #menuList {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: auto;
        width: auto;
        min-width: 160px;
        background-color: #fff;
        background-image: url('/assets/img/bg3inv.jpg');
        background-size: cover;
        background-position: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 99;
        max-height: calc(100vh - var(--sticky-offset));
        overflow-y: auto;
    }

    #menuList.show {
        display: flex;
    }

    .menu ul li {
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .menu .footer-nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        bottom: var(--nav-height);
        right: 0;
        top: auto;
        left: auto;
        width: auto;
        min-width: 160px;
        background-color: #fff;
        background-image: url('/assets/img/bg3inv.jpg');
        background-size: cover;
        background-position: center;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        z-index: 99;
    }

    .menu .footer-nav-list.show {
        display: flex;
    }

    .footer-nav-list li {
        margin: 0;
        padding: 0.6rem 1.2rem;
    }

    .section-background {
        background-attachment: scroll;
    }

    .lang-dropdown {
        padding: 0 0.5rem;
    }

    .contact-container {
        margin: 1.5rem auto;
    }

    .tab-container,
    .grid-container,
    .section5-container {
        width: 95%;
        height: auto;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1 1 30%;
        min-width: 120px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

/* ── Nachhaltigkeit Seite ────────────────────────────────────────────────────── */
.sust-intro {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sust-toc {
    background: #fff;
    border-left: 4px solid #FF5500;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.sust-toc-headline {
    font-size: 0.85rem;
    font-weight: bold;
    color: #FF5500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
}

.sust-toc-list {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sust-toc-list li a {
    font-size: 0.92rem;
    color: #333;
    text-decoration: none;
}

.sust-toc-list li a:hover {
    color: #FF5500;
    text-decoration: underline;
}

.sust-section {
    margin-top: 2.8rem;
    scroll-margin-top: calc(var(--sticky-offset) + 1rem);
}

.sust-section-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #222;
    border-bottom: 2px solid #FF5500;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.sust-section-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.sust-tech-block,
.sust-case-block {
    margin-bottom: 1.5rem;
}

.sust-case-block--grey {
    background-color: #eae9e9;
    padding: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
}

.sust-case-block--grey h2,
.sust-case-block--grey h3 {
    color: #333;
}

.sust-tech-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #FF5500;
    margin-bottom: 0.4rem;
}

.sust-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 0.8rem;
    margin-bottom: 1rem;
}

.sust-table th {
    background: #FF5500;
    color: #fff;
    padding: 0.55rem 0.8rem;
    text-align: left;
    font-weight: bold;
}

.sust-table td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.sust-table tr:nth-child(even) td {
    background: #f7f7f7;
}

.sust-improve {
    color: #2a7a2a;
    font-weight: bold;
}

.sust-case-block { overflow-x: auto; }

.sust-table--compact {
    font-size: 0.78rem;
    min-width: 800px;
}

.sust-table--compact th,
.sust-table--compact td {
    padding: 0.35rem 0.55rem;
}

.sust-case-fazit {
    background: #fff8f5;
    border-left: 4px solid #FF5500;
    padding: 0.9rem 1.1rem;
    border-radius: 4px;
    font-size: 0.93rem;
    color: #333;
    margin-bottom: 1rem;
}

.sust-back {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: #FF5500;
    text-decoration: none;
}

.sust-back:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .sust-table {
        font-size: 0.78rem;
    }
    .sust-table th,
    .sust-table td {
        padding: 0.4rem 0.5rem;
    }
    .sust-toc-headline {
        font-size: 0.75rem;
        letter-spacing: 0;
    }
}