/* ==========================================================
   ib-rieker.de — Custom CSS
   Farben: Rot #E30010 | Navy #0D1E44 | Grau #606060
   Fonts: New Order (Headings) | Readex Pro (Body)
   ========================================================== */

/* --- Fonts (lokal gehostet, DSGVO-konform) ---------------- */
@font-face {
    font-family: 'Readex Pro';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/readex-pro-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Readex Pro';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/readex-pro-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'New Order SemiBold';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/New-Order-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'New Order Bold';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/New-Order-Bold.ttf') format('truetype');
}

:root {
    --red:        #E30010;
    --red-hover:  #b5000d;
    --navy:       #0D1E44;
    --gray-text:  #606060;
    --gray-light: #F1F1F1;
    --gray-mid:   #8F8F8F;
    --white:      #FFFFFF;
    --font-body:  'Readex Pro', sans-serif;
    --font-head:  'New Order SemiBold', 'Readex Pro', sans-serif;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--gray-text);
    background: #FAFAFA;
    line-height: 1.3;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'New Order Bold', var(--font-head);
    color: var(--navy);
    font-weight: 700;
    line-height: 1;
}

h1 { font-size: clamp(32px, 6vw, 54px); }
h2 { font-size: clamp(28px, 5vw, 48px); }
h3 { font-size: clamp(22px, 4vw, 30px); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Container -------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.container--wide { max-width: 1400px; }

/* --- Buttons ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-outline-red {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}
.btn-outline-red:hover,
.btn-outline-red.active {
    background: var(--red);
    color: var(--white);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: background 0.3s;
    border-radius: 0 0 16px 16px;
}

.site-header.header--transparent {
    background: transparent;
    box-shadow: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.header-logo img { height: 48px; width: auto; }

/* Center Icon — Menu Trigger (the red signet) */
.header-center-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}
.header-center-icon img {
    height: 40px;
    width: auto;
}
.header-center-icon__label {
    font-size: 11px;
    color: var(--gray-mid);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.header-center-icon:hover .header-center-icon__label {
    color: var(--red);
}
.header-center-icon__hamburger { display: none; }

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy);
    font-size: 20px;
    padding: 8px;
    transition: color 0.2s;
}
.header-search-btn:hover { color: var(--red); }

/* Search Dropdown Popup */
.header-search-dropdown {
    position: absolute;
    top: 100%;
    right: 32px;
    display: none;
    z-index: 1001;
    margin-top: 4px;
}
.header-search-dropdown.open {
    display: block;
}
.header-search-dropdown__form {
    display: flex;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
}
.header-search-dropdown__input {
    border: 1px solid #ddd;
    border-right: none;
    padding: 10px 16px;
    font-size: 16px;
    font-family: var(--font-body);
    width: 220px;
    outline: none;
    border-radius: 4px 0 0 4px;
}
.header-search-dropdown__input:focus {
    border-color: var(--navy);
}
.header-search-dropdown__btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.2s;
}
.header-search-dropdown__btn:hover {
    background: var(--red);
}

.header-social {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-social a {
    color: var(--navy);
    font-size: 18px;
    transition: color 0.2s;
}
.header-social a:hover { color: var(--red); }
.header-social a svg {
    vertical-align: middle;
}

/* ============================================================
   NAV DROPDOWN PANEL (white, slides down below header)
   ============================================================ */
.nav-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 999;
    background: var(--white);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    border-radius: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
.nav-panel.open {
    max-height: 600px;
    opacity: 1;
}

.nav-panel__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 32px;
    padding: 48px 48px 56px;
}

.nav-panel__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
}
.nav-panel__item:hover {
    background: var(--gray-light);
}

.nav-panel__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--red);
}

.nav-panel__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.nav-panel__desc {
    font-size: 0.85rem;
    color: var(--gray-mid);
    line-height: 1.4;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
/* Hero Wrapper — fügt padding-top für Header hinzu */
.hero-wrapper {
    padding-top: 80px;
    background: var(--white);
}

.hero-wrapper > .container {
    position: relative;
}

.hero {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(120, 100, 80, 0.45);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 860px;
}

.hero__kicker {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.hero__title {
    color: #FFD700;
    font-style: normal;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    margin-bottom: 0;
    line-height: 1.3;
}

/* Doppel-Chevrons — unten rechts, teilweise aus dem Hero ragend */
.hero__chevrons {
    position: absolute;
    bottom: -40px;
    right: 40px;
    z-index: 3;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.hero__chevrons-img {
    display: block;
    width: 70px;
    height: auto;
}

.hero__chevron {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    display: block;
    position: absolute;
    right: 0;
    letter-spacing: -0.3em;
}

.hero__chevron--gray {
    color: rgba(160, 155, 150, 0.7);
    top: -4px;
    right: 6px;
}

.hero__chevron--red {
    color: var(--red);
    top: 0;
    right: 0;
}

/* Beschreibungstext unterhalb des Hero */
.hero-description {
    background: var(--white);
    padding: 40px 0 20px;
}

.hero-description p {
    text-align: left;
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.8;
}

/* hero__tagline — rotes Label, auch in anderen Sektionen genutzt */
.hero__tagline {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 16px;
}

/* Responsive Hero */
@media (max-width: 767px) {
    .hero-wrapper {
        padding-top: 56px;
    }

    .hero {
        height: 380px;
        border-radius: 10px;
    }

    .hero__kicker {
        font-size: 1rem;
    }

    .hero__title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .hero__chevrons {
        bottom: -28px;
        right: 20px;
    }

    .hero__chevrons-img {
        width: 46px;
    }

    .hero__chevron {
        font-size: 3.5rem;
    }

    .hero-description {
        padding: 28px 0 12px;
    }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section--gray { background: var(--gray-light); }
.container--card {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 60px 48px;
}

/* TGA-Engineering 2-Spalten-Layout */
.tga-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 767px) {
    .tga-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
.section--navy {
    background: var(--navy);
}

.section--navy > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section--navy > .container--wide {
    max-width: 1400px;
}
.section--red { background: var(--red); }

.section__header { text-align: center; margin-bottom: 56px; }
.section__header h2 { margin-bottom: 16px; }
.section__header p { color: var(--gray-text); max-width: 640px; margin: 0 auto; }

.section__header--left { text-align: left; }
.section__header--left p { margin-left: 0; margin-right: 0; max-width: none; }

/* ============================================================
   VISION CARD
   ============================================================ */
.vision-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.vision-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-card__content {
    padding: 48px 40px;
}

.vision-card__content h2 {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .vision-card {
        grid-template-columns: 1fr;
    }
    .vision-card__image img {
        height: 280px;
    }
}

/* ============================================================
   LEISTUNGEN SECTION — Blueprint Hintergrundbild
   ============================================================ */
#tab-energiemanagement {
    background-image: url('/storage/images/home-leistungen-bg.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 65%;
}

/* ============================================================
   SERVICE CARDS (Flip Boxes)
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 36px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-top-color: var(--red);
}

.service-card__icon {
    font-size: 36px;
    color: var(--red);
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card__text { font-size: 0.9rem; color: var(--gray-text); }

/* ============================================================
   FLIP-BOX CARDS (Energiemanagement)
   ============================================================ */
.flip-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.flip-box {
    perspective: 1000px;
    height: 220px;
}

.flip-box__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-box:hover .flip-box__inner,
.flip-box.flipped .flip-box__inner {
    transform: rotateY(180deg);
}

.flip-box__front,
.flip-box__back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    text-align: center;
}

.flip-box__front {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-top: 4px solid var(--red);
}

.flip-box__back {
    background: var(--navy);
    color: var(--white);
    transform: rotateY(180deg);
}

.flip-box__back p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.flip-box__icon {
    font-size: 36px;
    color: var(--red);
    margin-bottom: 16px;
}

.flip-box__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

@media (max-width: 767px) {
    .flip-box-grid {
        grid-template-columns: 1fr 1fr;
    }
    .flip-box {
        height: 180px;
    }
    .vision-content,
    .bridge-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .flip-box-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats-section {
    background: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item__number {
    font-size: 38px;
    font-family: 'New Order Bold', var(--font-head);
    font-weight: 700;
    color: #181818;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item__label {
    font-size: 16px;
    color: #181818;
    font-weight: 400;
}

/* Stats with vertical dividers */
.stats-grid--divided .stat-item {
    position: relative;
}
.stats-grid--divided .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(0,0,0,0.2);
}

/* ============================================================
   NEWS INTRO
   ============================================================ */
.news-intro { padding-bottom: 0; }
.news-intro__card {
    background: linear-gradient(135deg, #0D1E44 0%, #0D1E44 40%, #1a3a6a 100%);
    border-radius: 24px;
    padding: 72px 48px 64px;
    text-align: center;
}
.news-intro__title {
    color: var(--white);
    margin-bottom: 12px;
}
.news-intro__subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 32px;
}
.news-intro__search {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}
.news-intro__input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: var(--navy);
    background: var(--white);
}
@media (max-width: 767px) {
    .news-intro__card { padding: 48px 24px 40px; }
}
.news-intro__input::placeholder { color: var(--gray-mid); }
.news-intro__btn {
    padding: 14px 32px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.news-intro__btn:hover { background: var(--red-hover); }

/* ============================================================
   NEWS BLOG SECTION
   ============================================================ */
.news-blog__header {
    text-align: center;
    margin-bottom: 32px;
}
.news-blog__title {
    margin-bottom: 8px;
}
.news-blog__subtitle {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Filter Buttons */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.news-filter__btn {
    padding: 10px 24px;
    border: 1.5px solid #ccc;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    background: var(--white);
    transition: all 0.2s;
}
.news-filter__btn:hover {
    border-color: var(--navy);
}
.news-filter__btn--active {
    border-color: #F5C518;
    background: #F5C518;
    color: var(--navy);
}

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.news-card__image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: var(--gray-light);
    border-radius: 16px 16px 0 0;
}

.news-card__image-placeholder {
    width: 100%;
    height: 240px;
    background: var(--gray-light);
}

.news-card__body {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__title {
    font-family: 'New Order SemiBold', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #242E41;
    line-height: 1.25;
    margin-bottom: 0;
}

.news-card__meta {
    margin-top: 8px;
}

.news-card__date {
    font-size: 12px;
    color: #606060;
    line-height: 16px;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--red);
    margin-top: auto;
    padding-top: 16px;
    transition: gap 0.2s;
}
.news-card__link:hover { gap: 18px; }
.news-card__link svg { flex-shrink: 0; }

/* ============================================================
   NEWS POST (Single Article)
   ============================================================ */
.news-post {
    text-align: center;
}
.news-post__title {
    margin-bottom: 8px;
}
.news-post__date {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 32px;
}
.news-post__image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 40px;
}
.news-post__content {
    text-align: left;
    line-height: 1.9;
    color: var(--gray-text);
}
.news-post__content h3 {
    color: var(--navy);
    margin-top: 32px;
    margin-bottom: 12px;
}
.news-post__content h4 {
    color: var(--navy);
    margin-top: 24px;
    margin-bottom: 8px;
}
.news-post__content ul {
    margin: 16px 0;
    padding-left: 24px;
    list-style: disc;
}
.news-post__content ol {
    margin: 16px 0;
    padding-left: 24px;
    list-style: decimal;
}
.news-post__content li {
    margin-bottom: 8px;
}
.news-post__content p {
    margin-bottom: 16px;
}
.news-post__back {
    margin-top: 48px;
    text-align: left;
}

/* ============================================================
   NEWS PAGINATION
   ============================================================ */
.news-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
}
.news-pagination__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #ccc;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    transition: border-color 0.2s;
}
.news-pagination__nav:hover {
    border-color: var(--navy);
}
.news-pagination__nav--disabled {
    color: #6a6a6a;
    border-color: #b0b0b0;
    pointer-events: none;
}
.news-pagination__pages {
    display: flex;
    gap: 8px;
}
.news-pagination__page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: color 0.2s;
}
.news-pagination__page:hover { color: var(--red); }
.news-pagination__page--active {
    color: var(--red);
    font-weight: 700;
}

@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-pagination { flex-wrap: wrap; gap: 16px; justify-content: center; }
}

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */

/* Überschrift */
.portfolio-section-title {
    text-align: center;
    font-family: 'New Order Bold', 'New Order SemiBold', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--navy);
    margin-bottom: 24px;
}

/* Dropdown-Filter */
.portfolio-filter {
    margin-bottom: 40px;
}

.portfolio-filter__select {
    padding: 8px 36px 8px 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-text);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23606060' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 180px;
}

.portfolio-filter__select:hover,
.portfolio-filter__select:focus {
    border-color: var(--red);
    outline: none;
}

/* Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 0;
}

/* Jedes Item ist ein Block mit Bild + Text */
.portfolio-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

/* Inhalt-Abstand unten ist immer da */

.portfolio-item__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s;
}

.portfolio-item:hover .portfolio-item__image {
    transform: scale(1.02);
}

.portfolio-item__placeholder {
    width: 100%;
    height: 240px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--gray-mid);
    border-radius: 8px;
}

.portfolio-item__body {
    padding: 14px 0 40px 0;
}

.portfolio-item__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.portfolio-item__mehr {
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.portfolio-item__mehr:hover {
    color: var(--red-hover);
}

/* ============================================================
   BRANCHENKOMPETENZ LAYOUT (Projekte-Seite)
   ============================================================ */
.branchenkompetenz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.branchenkompetenz-grid__text h2 {
    margin-bottom: 24px;
}

.branchenkompetenz-grid__image {
    border-radius: 8px;
    width: 100%;
    display: block;
}

.container--card-bg {
    background-color: var(--white);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    border-radius: 16px;
    padding: 60px 48px;
}

@media (max-width: 767px) {
    .branchenkompetenz-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .container--card {
        padding: 40px 24px;
    }
    .container--card-bg {
        padding: 40px 24px;
        background-image: none !important;
    }
}

/* ============================================================
   BRANCHEN FLIP-CARDS CAROUSEL (Projekte-Seite)
   ============================================================ */

/* Carousel-Wrapper */
.branchen-carousel-wrapper {
    position: relative;
}

/* Swiper overflow fix — Karten müssen sichtbar bleiben */
.branchen-swiper {
    overflow: visible;
    padding-bottom: 8px;
}

/* Slide-Höhe: Flip braucht feste Höhe */
.swiper-slide {
    height: auto;
}

/* Flip-Card Grundstruktur */
.branchen-flip {
    perspective: 1000px;
    height: 420px;
}

.branchen-flip__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.branchen-flip:hover .branchen-flip__inner,
.branchen-flip.flipped .branchen-flip__inner {
    transform: rotateY(180deg);
}

/* Vorder- und Rückseite */
.branchen-flip__front,
.branchen-flip__back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

/* Vorderseite: weißer Hintergrund, Schatten */
.branchen-flip__front {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Bild-Bereich oben */
.branchen-flip__image-wrap {
    position: relative;
    flex-shrink: 0;
    height: 220px;
    overflow: visible;
}

.branchen-flip__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

/* Rotes SVG-Badge das den unteren Rand des Fotos überlappt */
.branchen-flip__badge {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    line-height: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.branchen-flip__badge svg {
    display: block;
}

/* Text-Bereich unten */
.branchen-flip__body {
    padding: 48px 24px 24px;
    flex: 1;
}

.branchen-flip__title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.25;
}

.branchen-flip__text {
    font-size: 0.88rem;
    color: var(--gray-text);
    line-height: 1.6;
    margin: 0;
}

/* Rückseite: roter Hintergrund */
.branchen-flip__back {
    background: var(--red);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
}

.branchen-flip__back-text {
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.7;
    margin: 0;
}

/* Pfeil-Navigation — zentriert unterhalb */
.branchen-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

.branchen-carousel-nav__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.branchen-carousel-nav__btn:hover {
    background: rgba(227, 0, 16, 0.08);
}

.branchen-carousel-nav__btn svg path {
    transition: stroke 0.2s;
}

.branchen-carousel-nav__btn:hover svg path {
    stroke: var(--red-hover);
}

/* Swiper: overflow clip für Container, aber nicht für Slides */
.branchen-carousel-wrapper .swiper {
    clip-path: none;
    overflow: hidden;
}

@media (max-width: 767px) {
    .branchen-flip {
        height: 380px;
    }
    .branchen-flip__image-wrap {
        height: 190px;
    }
}

@media (max-width: 480px) {
    .branchen-flip {
        height: 360px;
    }
    .branchen-flip__image-wrap {
        height: 180px;
    }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-tabs {
    display: flex !important;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-tabs .btn {
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
}

.faq-list { margin: 0 auto; }

.faq-item {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 8px;
}

.faq-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    gap: 16px;
}
.faq-item__trigger:hover { color: var(--red); }

.faq-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s;
}
.faq-item.open .faq-item__icon { transform: rotate(180deg); }

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__body {
    padding: 0 24px 20px;
    color: var(--gray-text);
    line-height: 1.6;
}

/* ============================================================
   TEAM PAGE — Management Grid
   ============================================================ */
.team-mgmt-row1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto 32px;
}
.team-mgmt-row2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 767px) {
    .team-mgmt-row1 { grid-template-columns: 1fr; max-width: none; }
    .team-mgmt-row2 { grid-template-columns: 1fr; }
}

/* ============================================================
   KERNWERTE GRID (Über uns)
   ============================================================ */
.kernwerte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 767px) {
    .kernwerte-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LEISTUNGEN PAGE
   ============================================================ */
.leistungen-fachplanung-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: left;
}
.leistungen-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0;
}
.leistungen-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.leistungen-card:last-child { margin-bottom: 0; }
.leistungen-fachplanung-grid .leistungen-card { margin-bottom: 0; }
.leistungen-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.leistungen-card__head > div:first-child { flex-shrink: 0; }
.leistungen-card__head h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.leistungen-card__head p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-text);
}
.leistungen-card a {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.leistungen-ref-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    background: var(--navy);
    margin-bottom: 32px;
    min-height: 360px;
}
.leistungen-ref-card:last-child { margin-bottom: 0; }
.leistungen-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.leistungen-logos img { height: 70px; }
@media (max-width: 767px) {
    .leistungen-logos { gap: 24px; }
    .leistungen-logos img { height: 50px; }
    .leistungen-fachplanung-grid { grid-template-columns: 1fr; }
    .leistungen-ref-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .leistungen-ref-card > div:has(> a) { order: 2; }
    .leistungen-ref-card > div[style*="background:url"] { min-height: 220px; }
    .leistungen-card { padding: 24px; }
}

/* ============================================================
   JOBS PAGE
   ============================================================ */
.jobs-intro {
    max-width: 55%;
    margin-bottom: 48px;
}
.jobs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.jobs-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}
@media (max-width: 767px) {
    .jobs-intro { max-width: 100%; }
    .jobs-grid { grid-template-columns: 1fr; gap: 32px; }
    .jobs-benefits-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   KARRIERE CTA
   ============================================================ */
.karriere-cta {
    min-height: 635px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 120px 48px;
}
@media (max-width: 767px) {
    .karriere-cta {
        min-height: auto;
        padding: 64px 24px;
    }
}

/* ============================================================
   BRIDGE CARD (Fachplanung trifft Energiemanagement)
   ============================================================ */
.bridge-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 48px 40px;
}

.bridge-card h2 {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 24px;
}

.bridge-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 767px) {
    .bridge-card__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   EINBLICKE VIDEO
   ============================================================ */
.einblicke-card {
    background-color: var(--navy);
    background-repeat: repeat;
    background-size: auto;
    border-radius: 16px;
    padding: 60px 48px;
}

@media (max-width: 767px) {
    .einblicke-card {
        padding: 40px 24px;
    }
}

.einblicke-video {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.einblicke-video video {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.einblicke-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.einblicke-video__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--white);
}

.einblicke-video__play.hidden {
    display: none;
}

/* ============================================================
   CERTIFICATIONS MARQUEE
   ============================================================ */
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.certifications-marquee {
    overflow: hidden;
    width: 100%;
    padding: 0 20px;
    /* Fade-out-Masken links und rechts */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.certifications-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 60px;
    width: max-content;
    min-width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.certifications-track:hover {
    animation-play-state: paused;
}

.certification-item {
    flex-shrink: 0;
}

.certification-item img {
    height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.3s;
}

.certification-item--small img {
    height: 45px;
}

.certification-item img:hover {
    opacity: 0.75;
}

/* Mobile: etwas kleiner, schneller */
@media (max-width: 767px) {
    .certification-item img {
        height: 60px;
    }

    .certifications-track {
        gap: 40px;
        animation-duration: 28s;
    }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
    background: var(--navy);
    padding: 64px 0;
    text-align: center;
}

.newsletter-section h2 { color: var(--white); margin-bottom: 12px; }
.newsletter-section p { color: rgba(255,255,255,0.75); margin-bottom: 32px; }

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
}

.newsletter-form .btn-primary {
    border-radius: 0 4px 4px 0;
    white-space: nowrap;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: 640px; }

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--gray-text);
    transition: border-color 0.2s;
    background: var(--white);
}
.form-control:focus {
    outline: none;
    border-color: var(--red);
}

textarea.form-control { resize: vertical; min-height: 140px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-text);
}
.form-check input[type="checkbox"] { flex-shrink: 0; margin-top: 3px; }

.alert {
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================================
   KONTAKT — 2-spaltiges Layout (Formular + Bild)
   ============================================================ */
.kontakt-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 64px;
    align-items: start;
}

.kontakt-layout__heading {
    margin-bottom: 12px;
}

.kontakt-layout__intro {
    color: var(--gray-text);
    margin-bottom: 16px;
    line-height: 1.75;
}

.kontakt-email-link {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s;
}
.kontakt-email-link:hover { color: var(--red-hover); }

/* Formular ohne max-width-Begrenzung im 2-spaltigen Layout */
.contact-form--wide { max-width: none; }

/* Fehlermeldung unter Feldern */
.field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
}

/* Bild rechts: runde Ecken, weiter unten positioniert (wie Original) */
.kontakt-layout__image {
    position: sticky;
    top: 100px;
    margin-top: 200px;
}

.kontakt-bild {
    width: 100%;
    height: 100%;
    min-height: 480px;
    max-height: 700px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Standorte Map */
.kontakt-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.location-card[data-lat] {
    transition: box-shadow 0.2s, transform 0.2s;
}
.location-card[data-lat]:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Responsive Kontakt */
@media (max-width: 767px) {
    .kontakt-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .kontakt-layout__image {
        position: static;
        order: -1;
        margin-top: 0;
    }

    .kontakt-bild {
        min-height: 260px;
        max-height: 320px;
    }
}

/* ============================================================
   LOCATIONS
   ============================================================ */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.location-card {
    padding: 32px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.location-card__city {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.location-card__city svg,
.location-card__city i { color: var(--red); }
.location-card p { font-size: 14px; color: var(--gray-text); margin-bottom: 4px; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page__form {
    display: flex;
    gap: 0;
    max-width: 600px;
    margin-bottom: 32px;
}
.search-page__input {
    flex: 1;
    border: 2px solid #ddd;
    border-right: none;
    padding: 12px 20px;
    font-size: 16px;
    font-family: var(--font-body);
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: border-color 0.2s;
}
.search-page__input:focus {
    border-color: var(--navy);
}
.search-page__btn {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.2s;
}
.search-page__btn:hover {
    background: var(--navy);
}
.search-page__count {
    font-size: 16px;
    color: var(--gray-mid);
    margin-bottom: 24px;
}
.search-page__results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.search-page__result {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.search-page__result:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: var(--red);
}
.search-page__result-img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.search-page__result-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.search-page__result-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--red);
}
.search-page__result-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}
.search-page__result-excerpt {
    font-size: 14px;
    color: var(--gray-mid);
    margin: 0;
    line-height: 1.5;
}
.search-page__result-date {
    font-size: 13px;
    color: var(--gray-mid);
}

@media (max-width: 768px) {
    .search-page__result { flex-direction: column; }
    .search-page__result-img { width: 100%; height: 180px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1a2744;
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 24px 0;
}

.site-footer > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../storage/images/home-footer-bg.png');
    background-repeat: repeat;
    background-size: auto;
    opacity: 0.15;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-col__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-newsletter-consent {
    display: none;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}
.footer-newsletter-consent:not([hidden]) {
    display: flex;
}
.footer-newsletter-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.footer-newsletter-consent a {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
}
.footer-contact-block strong { color: var(--white); }
.footer-contact-block a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer-contact-block a:hover { color: var(--red); }
.footer-icon { color: rgba(255,255,255,0.45); margin-top: 4px; width: 16px; flex-shrink: 0; font-size: 15px; }

.footer-links li { margin-bottom: 12px; }
.footer-links a {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--red); }

.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: all 0.2s;
}
.footer-social a:hover {
    background: #b3000e;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 28px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255,255,255,0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 8px;
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--white); }
.footer-bottom-links span {
    color: rgba(255,255,255,0.3);
}

/* ============================================================
   PAGE HERO (Unterseiten)
   ============================================================ */
.page-hero {
    background: var(--navy);
    padding: 140px 0 72px;
    position: relative;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.page-hero__content { position: relative; z-index: 1; }

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}
.page-hero__breadcrumb a:hover { color: var(--red); }
.page-hero__breadcrumb span { color: rgba(255,255,255,0.4); }

.page-hero h1 { color: var(--white); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.2s;
}

.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ============================================================
   COOKIE BANNER (DSGVO-konform, Complianz-Stil)
   ============================================================ */
.cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    background: rgba(0,0,0,0.35);
}
body.cookie-banner-open { overflow: hidden; }

.cookie-banner__inner {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    color: var(--navy);
    font-size: 13px;
    line-height: 1.6;
}

/* Header */
.cookie-banner__header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cookie-banner__logo { height: 32px; width: auto; }
.cookie-banner__title { font-size: 15px; font-weight: 600; flex: 1; }
.cookie-banner__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy);
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.cookie-banner__close:hover { opacity: 1; }

/* Divider */
.cookie-banner__divider {
    height: 1px;
    background: #e0e0e0;
    margin: 16px 0;
}

/* Body text */
.cookie-banner__text {
    font-size: 13px;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.65;
}

/* Categories */
.cookie-banner__categories {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-banner__category {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.cookie-banner__category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.cookie-banner__expand {
    background: none;
    border: none;
    padding: 2px;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.cookie-banner__category-title {
    font-weight: 600;
    font-size: 13px;
    flex: 1;
    color: var(--navy);
}
.cookie-banner__always-active {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}
.cookie-banner__chevron {
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    opacity: 0.4;
}
.cookie-banner__expand[aria-expanded="true"] .cookie-banner__chevron { transform: rotate(180deg); }

.cookie-banner__category-desc {
    padding: 0 14px 14px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Toggle switch */
.cookie-banner__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.cookie-banner__toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-banner__toggle-track {
    width: 36px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
}
.cookie-banner__toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-banner__toggle input:checked + .cookie-banner__toggle-track {
    background: #4caf50;
}
.cookie-banner__toggle input:checked + .cookie-banner__toggle-track .cookie-banner__toggle-knob {
    transform: translateX(16px);
}
.cookie-banner__toggle input:disabled + .cookie-banner__toggle-track {
    background: #4caf50;
    opacity: 0.6;
}

/* Info links */
.cookie-banner__info-links {
    padding: 8px 0 0;
}
.cookie-banner__info-links a {
    font-size: 12px;
    color: var(--red);
    text-decoration: none;
}
.cookie-banner__info-links a:hover { text-decoration: underline; }

/* Buttons */
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cookie-banner__btn {
    flex: 1 1 auto;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    white-space: nowrap;
}
.cookie-banner__btn--accept {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.cookie-banner__btn--accept:hover { opacity: 0.9; }
.cookie-banner__btn--decline {
    background: white;
    color: var(--navy);
    border-color: #ccc;
}
.cookie-banner__btn--decline:hover { background: #f5f5f5; }
.cookie-banner__btn--settings,
.cookie-banner__btn--save {
    background: white;
    color: var(--navy);
    border-color: #ccc;
    flex-basis: 100%;
}
.cookie-banner__btn--settings:hover,
.cookie-banner__btn--save:hover { background: #f5f5f5; }

/* Document links */
.cookie-banner__doc-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}
.cookie-banner__doc-links a {
    font-size: 11px;
    color: #888;
    text-decoration: none;
}
.cookie-banner__doc-links a:hover { color: var(--navy); }

/* Floating manage-consent button */
.cookie-manage-consent {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    z-index: 9998;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: opacity 0.2s;
    box-sizing: border-box;
}
.cookie-manage-consent:hover { opacity: 0.9; }
.cookie-manage-consent__icon { display: none; }
@media (max-width: 767px) {
    .cookie-manage-consent {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
    }
    .cookie-manage-consent__text { display: none; }
    .cookie-manage-consent__icon { display: block; }
}

/* ============================================================
   COOKIE TABLE (Cookie-Richtlinie Seite)
   ============================================================ */
.cookie-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 24px;
    min-width: 480px;
}
.cookie-table thead tr { background: var(--gray-light); }
.cookie-table th {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--gray-mid);
    font-weight: 600;
    font-size: 13px;
}
.cookie-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-red   { color: var(--red); }
.text-navy  { color: var(--navy); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.divider-red {
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 16px 0 24px;
}
.divider-red--center { margin: 16px auto 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet + Phone (≤ 1199px): Header Hamburger, Container-Padding --- */
@media (max-width: 1199px) {
    .container { padding: 0 24px; }
    .header-inner { padding: 0 24px; }
    .header-logo { order: 1; }
    .header-right { order: 2; }
    .header-social { display: none; }
    .header-center-icon {
        position: static;
        transform: none;
        order: 3;
    }
    .header-center-icon__signet { display: none; }
    .header-center-icon__label { display: none; }
    .header-center-icon__hamburger { display: block; font-size: 22px; color: var(--navy); }
    .nav-panel { border-radius: 0 0 16px 16px; }
    .nav-panel.open { max-height: 80vh; overflow-y: auto; }
    .nav-panel__grid { grid-template-columns: repeat(2, 1fr); padding: 24px 24px 32px; }
    .nav-panel__item { padding: 12px; }
    .header-search-dropdown { right: 0; left: 0; padding: 0 16px; }
    .header-search-dropdown__form { width: 100%; }
    .header-search-dropdown__input { flex: 1; width: auto; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .site-footer { margin: 24px; }
}

/* --- Phone (≤ 767px): Kompaktere Darstellung --- */
@media (max-width: 767px) {
    .container { padding: 0 16px; }
    .section { padding: 56px 0; }
    .header-inner { height: 56px; padding: 0 16px; }
    .header-logo img { height: 36px; }
    .hero { min-height: auto; }
    .page-hero { padding: 80px 0 48px; }
    .nav-panel__grid { grid-template-columns: 1fr; padding: 24px 16px 32px; }
    .form-row { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-radius: 4px; }
    .newsletter-form .btn-primary { border-radius: 4px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer { margin: 24px 16px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item__image { height: 200px; }
    .portfolio-item__placeholder { height: 200px; }
    .cookie-banner { padding: 10px; }
    .cookie-banner__inner { max-width: 100%; border-radius: 8px; padding: 18px; }
    .cookie-banner__actions { flex-direction: column; }
    .cookie-banner__btn { flex-basis: auto; }
    .nav-overlay__grid { grid-template-columns: 1fr; gap: 8px; }
    .nav-overlay__grid-wrapper { padding: 20px 16px 40px; align-items: flex-start; }
    .nav-overlay__item { padding: 14px 12px; }
    .nav-overlay__header { padding: 16px; }
}

@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item__image { height: 220px; }
    .portfolio-item__placeholder { height: 220px; }
}

/* Sidebar post link hover */
.sidebar-post-link {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    transition: color 0.2s;
}
.sidebar-post-link:hover { color: var(--red); }
