/* ==========================================================================
   opticom IT-Systemhaus GmbH - Main Stylesheet
   A professional, modern, clean IT-company website
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    /* --- Colors --- */
    --color-primary:        #1B2A4A;
    --color-primary-light:  #243660;
    --color-primary-dark:   #111D35;
    --color-accent:         #E8811A;
    --color-accent-hover:   #D06F0F;
    --color-accent-light:   #F5A623;
    --color-white:          #FFFFFF;
    --color-off-white:      #F5F7FA;
    --color-light-gray:     #E8ECF1;
    --color-mid-gray:       #8895A7;
    --color-dark-gray:      #4A5568;
    --color-text:           #333333;
    --color-text-light:     #6B7280;
    --color-success:        #28A745;
    --color-success-bg:     #D4EDDA;
    --color-success-border: #C3E6CB;
    --color-error:          #DC3545;
    --color-error-bg:       #F8D7DA;
    --color-error-border:   #F5C6CB;
    --color-info:           #0D6EFD;
    --color-info-bg:        #CFE2FF;
    --color-info-border:    #B6D4FE;

    /* --- Typography --- */
    --font-family:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base:       16px;
    --font-size-sm:         0.875rem;
    --font-size-lg:         1.125rem;
    --font-size-xl:         1.25rem;
    --line-height-base:     1.6;
    --line-height-heading:  1.25;

    /* --- Spacing --- */
    --spacing-xs:           0.25rem;
    --spacing-sm:           0.5rem;
    --spacing-md:           1rem;
    --spacing-lg:           1.5rem;
    --spacing-xl:           2rem;
    --spacing-2xl:          3rem;
    --spacing-3xl:          4rem;
    --spacing-4xl:          6rem;

    /* --- Layout --- */
    --container-max:        1200px;
    --container-padding:    1.5rem;
    --header-height:        80px;

    /* --- Borders & Shadows --- */
    --border-radius:        4px;
    --border-radius-lg:     8px;
    --shadow-sm:            0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md:            0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg:            0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-header:        0 2px 10px rgba(0, 0, 0, 0.08);

    /* --- Transitions --- */
    --transition-fast:      150ms ease;
    --transition-base:      250ms ease;
    --transition-slow:      400ms ease;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

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

strong,
b {
    font-weight: 700;
}

small {
    font-size: var(--font-size-sm);
}

blockquote {
    border-left: 4px solid var(--color-accent);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    background-color: var(--color-off-white);
    font-style: italic;
    color: var(--color-dark-gray);
}

hr {
    border: none;
    border-top: 1px solid var(--color-light-gray);
    margin: var(--spacing-xl) 0;
}


/* ==========================================================================
   4. LAYOUT — Container & Section Spacing
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}
.layout--wide .container { max-width: 1500px; }
.layout--wide .header__inner { max-width: var(--container-max); }

.section {
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-4xl);
}

.section--gray {
    background-color: var(--color-off-white);
}

.section--spacer {
    background: linear-gradient(
        to bottom,
        #FFFFFF 0px,
        #FFFFFF 40px,
        #E8ECF4 100%
    );
    min-height: 350px;
    padding: 0;
    padding-bottom: 0;
    overflow: visible;
    position: relative;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.section--spacer > .container {
    position: relative;
    z-index: 4;
    transform: none;
    margin-bottom: 0;
    padding-top: 30px;
    padding-bottom: 30px;
}

#leistungen {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.section--spacer .section__heading,
.section--spacer .section__subheading {
    max-width: 55%;
}

.section--spacer .section__heading {
    text-align: left;
    margin-bottom: var(--spacing-sm);
}

.section--spacer .section__subheading {
    text-align: left;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
}

.section--spacer .service-card {
    background: rgba(215, 225, 235, 0.75);
    backdrop-filter: blur(10px);
    border-color: rgba(200, 210, 225, 0.6);
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: var(--spacing-md);
    text-align: left;
    padding: var(--spacing-md) var(--spacing-lg);
    aspect-ratio: auto;
}

.section--spacer .service-card__icon {
    grid-row: 1;
    grid-column: 1;
    width: 52px;
    height: 52px;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--color-primary);
}

.section--spacer .service-card__title {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.section--spacer .service-card__text {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.section--spacer .service-card__link {
    grid-row: 3;
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    justify-self: center;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.section--spacer .service-card__link:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--color-primary);
}

/* --- Services Karussell --- */
.services-carousel {
    position: relative;
    margin: 0 44px;
}

.services-carousel__viewport {
    overflow: hidden;
}

.services-carousel__track {
    display: flex;
    gap: var(--spacing-sm);
    transition: transform 400ms ease;
}

.services-carousel__track .service-card {
    flex: 0 0 auto;
}

.services-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
    z-index: 5;
}

.services-carousel__arrow:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.services-carousel__arrow--prev { left: -44px; }
.services-carousel__arrow--next { right: -44px; }

.services-carousel__arrow[disabled] {
    display: none;
}

@media (max-width: 768px) {
    /* Carousel → gestapelte Kacheln */
    .services-carousel {
        margin: 0;
    }
    .services-carousel__viewport {
        overflow: visible;
    }
    .services-carousel__track {
        flex-direction: column;
        transform: none !important; /* JS-Transform überschreiben */
        gap: var(--spacing-md);
    }
    .services-carousel__track .service-card {
        width: 100% !important;     /* JS-gesetzte Breite überschreiben */
    }
    .services-carousel__arrow {
        display: none;
    }
}

.section--dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
    color: var(--color-white);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Heading mit Füll-Linie (Block-Editor Option) --- */

.heading-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--spacing-md);
}

.heading-line > h1,
.heading-line > h2,
.heading-line > h3,
.heading-line > h4,
.heading-line > h5,
.heading-line > h6 {
    margin: 0 !important; /* .page-content__body h2 {margin-top:2rem} würde sonst überschreiben */
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
}

.heading-line__rule {
    flex: 1;
    display: block;
    height: 2px;
    background: var(--color-accent, #E8811A);
    border-radius: 1px;
    align-self: center;
}

/* --- Section Heading with Accent Underline --- */

.section__heading {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section__heading h2 {
    display: inline-block;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section__heading h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.section__heading p {
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--spacing-md);
}

.section__subheading {
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    max-width: 640px;
    margin: calc(var(--spacing-md) * -1) auto var(--spacing-3xl);
}

/* Service-Sektion: Extra Padding oben für Hero-Person Overflow */
#leistungen {
    position: relative;
    padding-top: calc(var(--spacing-4xl) + 220px);
}


/* ==========================================================================
   5. RESPONSIVE GRID SYSTEM (Flexbox & CSS Grid)
   ========================================================================== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--spacing-md) * -1);
    margin-right: calc(var(--spacing-md) * -1);
}

.row > [class*="col-"] {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    width: 100%;
}

.col-1  { flex: 0 0 8.333%;  max-width: 8.333%;  }
.col-2  { flex: 0 0 16.667%; max-width: 16.667%; }
.col-3  { flex: 0 0 25%;     max-width: 25%;     }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5  { flex: 0 0 41.667%; max-width: 41.667%; }
.col-6  { flex: 0 0 50%;     max-width: 50%;     }
.col-7  { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8  { flex: 0 0 66.667%; max-width: 66.667%; }
.col-9  { flex: 0 0 75%;     max-width: 75%;     }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.667%; max-width: 91.667%; }
.col-12 { flex: 0 0 100%;    max-width: 100%;    }

/* CSS Grid utility */

.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Two-column layout (text + image) */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.two-col--reverse .two-col__media {
    order: -1;
}

.two-col__content h2 {
    margin-bottom: var(--spacing-lg);
}

.two-col__content p {
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-light);
}

.two-col__media img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
}


/* ==========================================================================
   6. NAVIGATION / HEADER
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: var(--shadow-header);
    z-index: 1000;
    overflow: visible;
    transition: box-shadow var(--transition-base);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Logo */

.header__logo {
    flex-shrink: 0;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}

.header__logo img {
    height: 56px;
    width: auto;
}

/* Navigation links */

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex: 1;
    justify-content: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav__link {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    position: relative;
    padding: var(--spacing-xs) 0;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav__link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-accent);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

/* Dropdown-Navigation */

.nav__item {
    position: relative;
}

.nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    padding: 8px 0 6px;
    z-index: 200;
    /* kein overflow-y:auto — wuerde Flyout-Submenues (Ebene 2) abschneiden */
}

.nav__item--has-children:hover .nav__dropdown {
    display: block;
}

.nav__dropdown-item {
    margin: 0;
}

.nav__dropdown-link {
    display: block;
    padding: 8px 16px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.nav__dropdown-link:hover {
    background: var(--color-bg-alt, #f5f7fa);
    color: var(--color-accent);
}

/* Ebene 2: Fly-out nach rechts */
.nav__dropdown-item--has-children { position: relative; }
.nav__dropdown-item--has-children > .nav__dropdown-link::after { content: ' ▶'; font-size: 0.6rem; opacity: 0.5; vertical-align: middle; }
.nav__subdropdown {
    display: none;
    position: absolute;
    top: -8px;
    left: 100%;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    padding: 8px 0 6px;
    z-index: 201;
}
.nav__dropdown-item--has-children:hover .nav__subdropdown { display: block; }
.nav__subdropdown-item { margin: 0; }

/* CTA Button in header */

.nav__cta {
    margin-left: var(--spacing-md);
}

/* Hamburger Menu */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger__bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.hamburger.is-active .hamburger__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger__bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay */

.nav-overlay {
    display: none;
}

/* Spacer for fixed header */

.header-spacer {
    height: var(--header-height);
}


/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 29, 53, 0.9) 0%,
        rgba(27, 42, 74, 0.75) 50%,
        rgba(27, 42, 74, 0.6) 100%
    );
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-4xl) var(--container-padding);
    width: 100%;
}

.hero__content {
    max-width: 640px;
}

.hero__content h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.hero__content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}


/* ==========================================================================
   8. SERVICE TILES / CARDS
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.service-card {
    background: rgba(220, 230, 240, 0.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(180, 195, 215, 0.4);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-off-white);
    border-radius: 50%;
    color: var(--color-accent);
    font-size: 1.75rem;
}

.service-card__icon img,
.service-card__icon svg {
    width: 32px;
    height: 32px;
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.service-card__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.65;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-accent);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-card__link:hover {
    color: var(--color-accent-hover);
    gap: var(--spacing-sm);
}

.service-card__link::after {
    content: "\203A";
    font-size: 1.2em;
    line-height: 1;
}


/* ==========================================================================
   9. CONTENT SECTIONS — Two-Column, Alternating Backgrounds
   ========================================================================== */

.content-section {
    padding: var(--spacing-4xl) 0;
}

.content-section:nth-child(even) {
    background-color: var(--color-off-white);
}

.content-section__image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.content-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================================
   10. CONTACT FORM
   ========================================================================== */

.contact-section {
    background-color: var(--color-off-white);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.form-grid--custom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.form-group label .required {
    color: var(--color-error);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 129, 26, 0.15);
}

.form-control::placeholder {
    color: var(--color-mid-gray);
}

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

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-control.is-invalid {
    border-color: var(--color-error);
}

.form-control.form-control--missing {
    background-color: #fce4de;
    border-color: salmon;
}

.form-error {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.form-hint {
    color: var(--color-mid-gray);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.3em;
    margin-right: 0.4em;
    flex-shrink: 0;
    accent-color: var(--color-accent);
}


/* ==========================================================================
   10b. NEWSLETTER BOX
   ========================================================================== */

/* Kernkompetenzen + Newsletter nebeneinander */
.kompetenzen-newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-3xl);
    align-items: start;
}

.services-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.newsletter-box {
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
}

.newsletter-box__heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form__row {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.newsletter-form__input {
    flex: 1;
}

.newsletter-box__text {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.newsletter-box__social {
    display: flex;
    gap: var(--spacing-md);
}

@media (max-width: 1024px) {
    .kompetenzen-newsletter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .services-grid--2 {
        grid-template-columns: 1fr;
    }
    .newsletter-form__row {
        flex-direction: column;
    }
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: var(--spacing-4xl);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

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

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-3xl);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-top: var(--spacing-md);
}

.footer__brand .header__logo {
    margin-bottom: var(--spacing-sm);
}

.footer__heading {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__links li {
    margin-bottom: var(--spacing-sm);
}

.footer__links a {
    font-size: var(--font-size-sm);
}

/* Social media icons */

.footer__social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.1rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.footer__social a:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.footer__social img,
.footer__social svg {
    width: 20px;
    height: 20px;
}

/* Social-Icons in Copyright-Bar */
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #8892a8;
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social:hover {
    color: #E8811A;
    transform: translateY(-1px);
}
.footer-social svg {
    display: block;
}

/* Copyright bar */

.footer__bottom {
    background-color: var(--color-primary-dark);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-3xl);
    text-align: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer__bottom a:hover {
    color: var(--color-white);
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer__bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}


/* ==========================================================================
   12. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-fast),
                color var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn:disabled,
.btn[disabled] {
    background-color: #aaa;
    border-color: #aaa;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Primary (Orange) */

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(232, 129, 26, 0.35);
}

/* Secondary (White/Outline) */

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

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

/* Secondary on light backgrounds */

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* Size variants */

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: var(--font-size-lg);
}

/* Button with icon */

.btn svg,
.btn img {
    width: 1em;
    height: 1em;
}


/* ==========================================================================
   13. UTILITY CLASSES
   ========================================================================== */

/* --- Text alignment --- */

.text-center { text-align: center; }
.text-left   { text-align: left;   }
.text-right  { text-align: right;  }

/* --- Margin Top --- */

.mt-1 { margin-top: var(--spacing-xs);  }
.mt-2 { margin-top: var(--spacing-sm);  }
.mt-3 { margin-top: var(--spacing-md);  }
.mt-4 { margin-top: var(--spacing-xl);  }
.mt-5 { margin-top: var(--spacing-3xl); }

/* --- Margin Bottom --- */

.mb-1 { margin-bottom: var(--spacing-xs);  }
.mb-2 { margin-bottom: var(--spacing-sm);  }
.mb-3 { margin-bottom: var(--spacing-md);  }
.mb-4 { margin-bottom: var(--spacing-xl);  }
.mb-5 { margin-bottom: var(--spacing-3xl); }

/* --- Display --- */

.hidden {
    display: none !important;
}

/* --- Screen reader only --- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Flex utilities --- */

.d-flex         { display: flex;              }
.flex-wrap      { flex-wrap: wrap;            }
.align-center   { align-items: center;        }
.justify-center { justify-content: center;    }
.justify-between { justify-content: space-between; }
.gap-1          { gap: var(--spacing-sm);     }
.gap-2          { gap: var(--spacing-md);     }
.gap-3          { gap: var(--spacing-xl);     }


/* ==========================================================================
   14. YOUTUBE 2-CLICK PLACEHOLDER
   ========================================================================== */

.youtube-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.youtube-placeholder__thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.youtube-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    z-index: 2;
}

.youtube-consent__icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.youtube-consent__text {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
    max-width: 400px;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.youtube-consent__text a {
    color: var(--color-white);
    text-decoration: underline;
}

.youtube-consent .btn {
    margin-top: var(--spacing-sm);
}

/* When activated, hide the consent overlay */

.youtube-placeholder.is-loaded .youtube-consent {
    display: none;
}

.youtube-placeholder.is-loaded .youtube-placeholder__thumbnail {
    display: none;
}

.youtube-placeholder iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ==========================================================================
   15. BLOG
   ========================================================================== */

/* --- Blog Listing --- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.blog-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card__body {
    padding: var(--spacing-lg);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--color-mid-gray);
    margin-bottom: var(--spacing-sm);
}

.blog-card__date {
    color: var(--color-mid-gray);
}

.blog-card__author {
    color: var(--color-accent);
    font-weight: 500;
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.35;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--color-accent);
}

.blog-card__excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-accent);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.blog-card__read-more:hover {
    color: var(--color-accent-hover);
}

/* --- Blog Single / Article --- */

.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--container-padding);
}

.blog-article__header {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
}

.blog-article__title {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
}

.blog-article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    color: var(--color-mid-gray);
    font-size: var(--font-size-sm);
}

.blog-article__meta span::before {
    content: "\2022";
    margin-right: var(--spacing-md);
}

.blog-article__meta span:first-child::before {
    display: none;
}

.blog-article__featured-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-2xl);
}

.blog-article__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-dark-gray);
}

.blog-article__content h2 {
    font-size: 1.5rem;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.blog-article__content h3 {
    font-size: 1.25rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.blog-article__content p {
    margin-bottom: var(--spacing-lg);
    color: var(--color-dark-gray);
}

.blog-article__content ul,
.blog-article__content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.blog-article__content ul {
    list-style-type: disc;
}

.blog-article__content ol {
    list-style-type: decimal;
}

.blog-article__content li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.blog-article__content img {
    border-radius: var(--border-radius);
    margin: var(--spacing-xl) 0;
}

.blog-article__content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article__content a:hover {
    color: var(--color-accent-hover);
}

.blog-article__content code {
    background-color: var(--color-off-white);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.blog-article__content pre {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: var(--spacing-xl) 0;
}

.blog-article__content pre code {
    background: none;
    padding: 0;
    color: inherit;
}


/* ==========================================================================
   16. PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-3xl);
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-sm);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--border-radius);
    color: var(--color-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: background-color var(--transition-fast),
                color var(--transition-fast),
                border-color var(--transition-fast);
}

.pagination__link:hover {
    background-color: var(--color-off-white);
    border-color: var(--color-mid-gray);
    color: var(--color-primary);
}

.pagination__link--active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.pagination__link--active:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
}

.pagination__link--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination__ellipsis {
    padding: 0 var(--spacing-xs);
    color: var(--color-mid-gray);
}


/* ==========================================================================
   17. FLASH MESSAGES / ALERTS
   ========================================================================== */

.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    position: relative;
}

.alert-success {
    color: #155724;
    background-color: var(--color-success-bg);
    border-color: var(--color-success-border);
}

.alert-error {
    color: #721C24;
    background-color: var(--color-error-bg);
    border-color: var(--color-error-border);
}

.alert-info {
    color: #084298;
    background-color: var(--color-info-bg);
    border-color: var(--color-info-border);
}

.alert__close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
}

.alert__close:hover {
    opacity: 1;
}


/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ---- Tablet (max-width: 1024px) ---- */

@media (max-width: 1024px) {

    :root {
        --spacing-4xl: 4rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero__content h1 {
        font-size: 2.5rem;
    }

    /* Grid adjustments */

    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ==========================================================================
   Burger-Button (Mobile Menü)
   ========================================================================== */

.burger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    position: relative;
    transition: var(--transition-fast);
}

.burger span::before,
.burger span::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    position: absolute;
    transition: var(--transition-fast);
}

.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }

/* Burger → X Animation */
.burger--active span { background: transparent; }
.burger--active span::before { top: 0; transform: rotate(45deg); }
.burger--active span::after  { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   Mobile Aktionen (Such-Icon + Burger nebeneinander)
   ========================================================================== */

.header__mobile-actions {
    display: none;
    align-items: center;
    gap: 4px;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-primary);
}

/* ==========================================================================
   Such-Overlay (Mobile Vollbild)
   ========================================================================== */

.search-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
}
.search-overlay.is-open { transform: translateY(0); }

.search-overlay__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.search-overlay__input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
}
.search-overlay__input-wrap svg { flex-shrink: 0; color: #9ca3af; }
.search-overlay__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}
.search-overlay__close {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.search-overlay__results {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* ==========================================================================
   Such-Ergebnis-Items (geteilt: Desktop-Dropdown + Mobile-Overlay)
   ========================================================================== */

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.15s;
}
.search-result-item:hover { background: #f3f4f6; }
.search-result-item__icon { flex-shrink: 0; color: var(--color-primary); margin-top: 2px; }
.search-result-item__text { display: flex; flex-direction: column; gap: 2px; }
.search-result-item__text strong { font-size: 0.95rem; color: #1f2937; }
.search-result-item__text small { font-size: 0.8rem; color: #6b7280; line-height: 1.4; }
.search-no-results { padding: 24px 16px; text-align: center; color: #9ca3af; font-size: 0.9rem; }

/* Desktop: Live-Ergebnisse unter dem Dropdown */
.search-live-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 101;
    display: none;
}
.search-live-results:not(:empty) { display: block; }

/* ---- Landscape / schmaler Desktop (1025–1280px) ---- */

@media (min-width: 1025px) and (max-width: 1280px) {
    .nav { gap: 0.75rem; }
    .nav__list { gap: 0.75rem; }
    .nav__link { font-size: 0.85rem; }
    .header-search__input-wrap { max-width: 140px; }
    .header__logo svg { height: 56px; }
}

/* ---- Tablet / Mobile transition (max-width: 768px) ---- */

/* ---- Mobile Suche ab Tablet/Landscape (≤1024px): Lupe statt Eingabefeld ---- */

@media (max-width: 1024px) {
    .header-search { display: none; }
    .header__mobile-actions { display: flex; }
    .mobile-search-btn { display: flex; }
}

@media (max-width: 768px) {

    :root {
        --header-height: 68px;
        --spacing-4xl: 3rem;
        --container-padding: 1.25rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Navigation — Mobile hamburger */

    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-xl) var(--spacing-xl);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-base);
        overflow-y: auto;
        z-index: 1005;
    }

    .nav.nav--open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav__list li {
        width: 100%;
    }

    .nav__link {
        display: block;
        padding: var(--spacing-md) 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-light-gray);
        width: 100%;
    }

    .nav__link::after {
        display: none;
    }

    .nav__cta {
        margin-left: 0;
        margin-top: var(--spacing-lg);
        width: 100%;
    }

    .nav__cta .btn {
        width: 100%;
        text-align: center;
    }

    /* Mobile Dropdown — Accordion statt Flyout */

    .nav__item--has-children > .nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav__item--has-children > .nav__link::after {
        content: '';
        display: block;
        position: static;
        width: 8px;
        height: 8px;
        background: none;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s;
        flex-shrink: 0;
        margin-left: 8px;
    }

    .nav__item--has-children.nav__item--open > .nav__link::after {
        transform: rotate(-135deg);
    }

    .nav__dropdown {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 var(--spacing-md);
    }

    .nav__item--has-children:hover .nav__dropdown {
        display: none;
    }

    .nav__item--has-children.nav__item--open > .nav__dropdown {
        display: block;
    }

    .nav__dropdown-link {
        padding: 10px 0;
        border-bottom: 1px solid var(--color-light-gray);
        white-space: normal;
        font-size: 0.9rem;
    }

    .nav__dropdown-item--has-children > .nav__dropdown-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav__dropdown-item--has-children > .nav__dropdown-link::after {
        content: '';
        display: block;
        position: static;
        width: 7px;
        height: 7px;
        background: none;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s;
        flex-shrink: 0;
        margin-left: 8px;
    }

    .nav__dropdown-item--has-children.nav__item--open > .nav__dropdown-link::after {
        transform: rotate(-135deg);
    }

    .nav__subdropdown {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 var(--spacing-md);
    }

    .nav__dropdown-item--has-children:hover .nav__subdropdown {
        display: none;
    }

    .nav__dropdown-item--has-children.nav__item--open > .nav__subdropdown {
        display: block;
    }

    .nav__subdropdown .nav__dropdown-link {
        font-size: 0.85rem;
        padding: 8px 0;
    }

    /* Nav overlay backdrop */

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1004;
    }

    .nav-overlay.is-visible {
        display: block;
    }

    /* Hero */

    .hero {
        min-height: 480px;
    }

    .hero__content h1 {
        font-size: 2rem;
    }

    .hero__content p {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Two-column layout stacks on mobile */

    .two-col {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .two-col--reverse .two-col__media {
        order: 0;
    }

    /* Services */

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Blog */

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-article__title {
        font-size: 1.75rem;
    }

    /* Contact form */

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid--custom {
        grid-template-columns: 1fr;
    }

    .form-footer {
        grid-template-columns: 1fr;
    }

    /* Footer */

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__bottom-links {
        justify-content: center;
    }

    /* Grid system fallback */

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Row columns stack */
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ---- Small Mobile (max-width: 480px) ---- */

@media (max-width: 480px) {

    :root {
        --spacing-4xl: 2.5rem;
        --container-padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero__content h1 {
        font-size: 1.65rem;
    }

    .section {
        padding-top: var(--spacing-2xl);
        padding-bottom: var(--spacing-2xl);
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: var(--font-size-sm);
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .form-footer__submit { width: 100%; }
    .form-footer__submit .btn { width: 100%; text-align: center; }

    .service-card {
        padding: var(--spacing-lg);
    }

    .blog-article {
        padding: var(--spacing-xl) var(--container-padding);
    }

    .blog-article__title {
        font-size: 1.5rem;
    }

    .blog-article__content {
        font-size: 1rem;
    }

    .pagination__link {
        min-width: 36px;
        height: 36px;
    }
}


/* ==========================================================================
   19. ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Fade-in for sections (to be triggered with JS/IntersectionObserver) */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-in from left */

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide-in from right */

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================================================
   20. PRINT STYLES
   ========================================================================== */

@media print {

    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .header,
    .hamburger,
    .nav-overlay,
    .footer,
    .hero__buttons,
    .btn,
    .pagination {
        display: none !important;
    }

    .header-spacer {
        display: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }

    img {
        max-width: 100% !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ==========================================================================
   Block-Editor — Gerenderte Blöcke (Frontend)
   ========================================================================== */
.block-image {
    margin: 1.5rem 0;
}
.block-image__viewport {
    overflow: hidden;
    position: relative;
}
.block-image__viewport img {
    max-width: none;
    height: auto;
    display: block;
    margin: 0 auto;
}
.block-image > img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.block-image figcaption {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ==========================================================================
   Hero + Spacer Wrapper — gemeinsamer Stacking Context für Floating Person
   ========================================================================== */

.hero-spacer-wrap {
    position: relative;
    overflow: hidden;
}

.floating-person {
    position: absolute;
    right: max(2%, calc(50% - 540px));
    bottom: 32px;
    top: auto;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.floating-person__img {
    display: block;
    height: auto;
    max-height: 700px;
    width: auto;
    margin-bottom: 0;
    user-select: none;
}

@media (max-width: 1024px) {
    .floating-person { right: 2%; }
    .floating-person__img { max-height: 550px; }
}

@media (max-width: 900px) {
    .floating-person { display: none; }
}

/* ==========================================================================
   Fullwidth-Hero (Startseite) — datacenterslider.jpg als Hintergrund
   ========================================================================== */

.hero--fullwidth {
    position: relative;
    background-size: cover;
    background-position: center center;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Kein Overlay — Originalbild zeigen */
.hero--fullwidth::before {
    display: none;
}

/* ===== Content-Slider im Hero-Kontext ===== */
.hero--content-slider {
    padding: 0;
}
.hero--content-slider .content-slider {
    width: 100%;
    margin: 0;
    min-height: var(--slider-h, 350px);
}
/* Panel-Inhalt im Hero am Seiten-Container ausrichten */
.hero--content-slider .content-slider__panel {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ===== Hero-Slider (Multi-Slide Carousel) ===== */

.hero-slider__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.hero-slider__slide--active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Textfarbe vom Slide erben (per inline color gesetzt) */
.hero-slider__slide[style*="color"] .hero-fullwidth__title,
.hero-slider__slide[style*="color"] .hero-fullwidth__subtitle {
    color: inherit;
}
.hero-slider__slide[style*="color"] .btn-secondary {
    color: inherit;
    border-color: currentColor;
}

/* Dots-Navigation */
.hero-slider__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-primary, #1b2a4a);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
}

.hero-slider__dot:hover {
    transform: scale(1.2);
}

.hero-slider__dot--active {
    background: var(--color-primary, #1b2a4a);
}

.hero-fullwidth__inner {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-fullwidth__content {
    max-width: 550px;
    padding: 0;
}

.hero-fullwidth__title {
    color: var(--color-primary);
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero-fullwidth__subtitle {
    color: var(--color-dark-gray);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.65;
}

/* Sekundärer Button im Fullwidth-Hero: dunkle Umrandung statt weiß */
/* Buttons im Hero: 20% kleiner in der Höhe */
.hero--fullwidth .btn-lg {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.hero--fullwidth .btn-secondary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.hero--fullwidth .btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Person rechts im Hero */
.hero-fullwidth__person-wrap {
    position: relative;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: -100px;
}

.hero-fullwidth__person {
    display: block;
    height: auto;
    max-height: 620px;
    width: auto;
    pointer-events: none;
    user-select: none;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .hero--fullwidth { min-height: 300px; }
    .hero--content-slider .content-slider { min-height: calc(var(--slider-h, 350px) * 0.86); }
    .hero-fullwidth__content { max-width: 450px; }
    .hero-fullwidth__person { max-height: 500px; }
    .hero-fullwidth__person-wrap { margin-bottom: -60px; }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .hero--content-slider .content-slider { min-height: calc(var(--slider-h, 350px) * 0.74); }
    .hero--fullwidth {
        flex-direction: column;
        min-height: 260px;       /* Höhe für vertikale Zentrierung */
        justify-content: center; /* Inhalt vertikal mittig */
        overflow: hidden;
    }
    .hero-fullwidth__inner {
        flex-direction: column;
        text-align: left;          /* Links statt mittig */
    }
    .hero-fullwidth__content {
        max-width: 100%;
        padding: var(--spacing-lg) 0;  /* 1.5rem statt 3rem → 50% kürzer */
    }
    .hero-fullwidth__content .hero__buttons {
        display: none;             /* Buttons ausblenden */
    }
    .hero-fullwidth__person-wrap {
        margin-bottom: 0;
    }
    .hero-fullwidth__person {
        max-height: 350px;
    }
    #leistungen {
        padding-top: var(--spacing-4xl);
    }
    /* Textblock "Ihr Partner..." auf volle Breite */
    .section--spacer .section__heading,
    .section--spacer .section__subheading {
        max-width: 100%;
    }
}

/* ==========================================================================
   Beratungs-Banner (Startseite) — spacerpanel + supportperson
   ========================================================================== */

.beratung-banner {
    position: relative;
    background-image: url('/assets/img/spacerpanel2.jpg');
    background-size: cover;
    background-position: center center;
    padding: var(--spacing-4xl) 0;
    padding-top: calc(var(--spacing-4xl) + 60px);
    margin-top: -60px;
    overflow: hidden;
}

.beratung-banner__inner {
    position: relative;
    z-index: 1;
}

.beratung-banner__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: end;
}

.beratung-banner__left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.beratung-banner__person-wrap {
    justify-self: end;
    align-self: end;
}

.beratung-banner__person {
    display: block;
    max-height: 480px;
    width: auto;
    height: auto;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
    object-position: top center;
}

.beratung-banner__text h2 {
    color: var(--color-primary);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.25;
    margin-bottom: var(--spacing-lg);
}

.beratung-banner__text p {
    color: var(--color-dark-gray);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    line-height: 1.65;
}

/* Formular-Box im Banner */
.beratung-banner__form {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    backdrop-filter: blur(8px);
}

.beratung-banner__form h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

/* Drei Spalten im Formular-Grid */
.form-grid--3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Vier Spalten im Formular-Grid */
.form-grid--4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Inline: E-Mail + Button nebeneinander */
.form-grid--inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-md);
    align-items: start;
}

/* Eingabefelder auf hellem Hintergrund */
.contact-form--compact .form-input {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--color-primary);
}

.contact-form--compact .form-input::placeholder {
    color: rgba(0, 0, 0, 0.40);
}

.contact-form--compact .form-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 129, 26, 0.25);
    outline: none;
    color: var(--color-primary);
}

/* Date-Input auf hellem Hintergrund */
.contact-form--compact input[type="date"] {
    color-scheme: light;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .beratung-banner__grid {
        gap: var(--spacing-xl);
    }
    .beratung-banner__person {
        max-height: 380px;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .beratung-banner {
        padding: var(--spacing-2xl) 0;
    }
    .beratung-banner__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    .beratung-banner__person-wrap {
        display: none;
    }
    .form-grid--3 {
        grid-template-columns: 1fr;
    }
    .form-grid--4 {
        grid-template-columns: 1fr 1fr;
    }
    .form-grid--inline {
        grid-template-columns: 1fr;
    }
}

/* Responsive: Kleine Mobilgeräte — Formular 1 Spalte */
@media (max-width: 480px) {
    .form-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Header-Suche (Suchleiste mit AutoPropose-Dropdown)
   ========================================================================== */

.header-search {
    position: relative;
    flex-shrink: 1;
    min-width: 0;
}

.header-search__input-wrap {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border: 1px solid #d0d5dd;
    border-radius: 24px;
    padding: 6px 14px;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 260px;
    width: 100%;
}

.header-search__input-wrap:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(57, 63, 120, 0.1);
}

.header-search__icon {
    width: 18px;
    height: 18px;
    color: #8b8fa3;
    flex-shrink: 0;
}

.header-search__input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: var(--color-text);
    width: 100%;
    font-family: inherit;
}

.header-search__input::placeholder {
    color: #a0a4b8;
}

.header-search__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e3eb;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    padding: 8px 0;
    z-index: 300;
}

.header-search__dropdown.is-open,
.header-search:focus-within .header-search__dropdown {
    display: block;
}

.header-search__group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b8fa3;
    padding: 10px 16px 4px;
}

.header-search__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--color-text);
}

.header-search__item:hover,
.header-search__item.is-active {
    background: #f4f5fa;
}

.header-search__item-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    opacity: 0.5;
    flex-shrink: 0;
}

.header-search__item-text {
    font-size: 0.85rem;
    line-height: 1.3;
}

.header-search__item-text strong {
    color: var(--color-primary);
}

.header-search__item-text small {
    display: block;
    font-size: 0.75rem;
    color: #8b8fa3;
    margin-top: 1px;
}

.header-search__kbd {
    font-size: 0.65rem;
    background: #eef0f5;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    padding: 1px 5px;
    color: #8b8fa3;
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 1440px) {
    .header-search__kbd { display: none; }
}

@media (max-width: 768px) {
    .header-search { display: none; }
}

/* Burger-Button Styles → verschoben vor die Media-Queries (siehe oben) */

/* ==========================================================================
   Trust-Box (Glasmorphismus-Karte, absolut positioniert in Panel 2)
   ========================================================================== */

.trust-box {
    position: absolute;
    left: calc(50% - 600px - 50px - 300px);
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 28px 24px;
    z-index: 1;
}

.trust-box__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.trust-box__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.trust-box__item:last-child {
    margin-bottom: 0;
}

.trust-box__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    opacity: 0.6;
    margin-top: 1px;
}

.trust-box__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.trust-box__desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

@media (max-width: 1900px) {
    .trust-box { display: none; }
}

/* ==========================================================================
   Panel Support (Beratungs-Panel mit Person, Formular, Trust-Box)
   ========================================================================== */

.panel-support {
    position: relative;
    background: linear-gradient(to bottom, #FFFFFF 0px, #FFFFFF 40px, #E8ECF4 100%);
    overflow: hidden;
    padding: 0;
}

.panel-support__inner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 30px;
    padding: 30px 0;
}

.panel-support__person {
    flex: 0 0 auto;
    max-width: 420px;
    display: flex;
    align-items: center;
}

.panel-support__person img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.panel-support__content {
    flex: 1;
    color: var(--color-text, #333);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-support__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.panel-support__subtitle {
    font-size: 1rem;
    color: var(--color-text-light, #666);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Kontaktformular (Panel Support) */

.panel-support .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 520px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-form__field--full {
    grid-column: 1 / -1;
}

.contact-form__label {
    font-size: 0.8rem;
    color: var(--color-text-light, #666);
    font-weight: 500;
}

.contact-form__input,
.contact-form__textarea {
    padding: 10px 14px;
    border: 1px solid rgba(200,210,225,0.6);
    border-radius: var(--border-radius-md, 8px);
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    color: var(--color-text, #333);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: #999;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: #E8811A;
}

.contact-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form__submit {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Trust-Box rechts in Panel Support */

.panel-support__trust {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
}

.panel-support__trust .trust-box--inline {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 24px 20px;
    width: 100%;
}

.trust-box--inline .trust-box__title {
    font-size: 1rem;
    margin-bottom: 16px;
}

.trust-box--inline .trust-box__item {
    margin-bottom: 14px;
}

/* --- Kontakt-Panel: Redesign (Karten + Service-Leiste) --- */

.panel-support__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
}

.panel-support__link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}
.panel-support__link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Kontaktkarten (rechte Spalte) */
.panel-support__cards {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.contact-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 18px 20px;
}

.contact-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.contact-card__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    opacity: 0.7;
}

.contact-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.contact-card__desc {
    font-size: 0.8rem;
    color: var(--color-text-light, #666);
    line-height: 1.4;
    margin: 0 0 10px;
}

.contact-card__detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text, #333);
    margin-bottom: 5px;
}
.contact-card__detail:last-child {
    margin-bottom: 0;
}
.contact-card__detail svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: var(--color-accent);
    opacity: 0.8;
}

/* Service-Leiste (Bottom-Bar) */
.panel-support__services {
    border-top: 1px solid rgba(200, 210, 225, 0.5);
    margin-top: 0;
    margin-bottom: 30px;
    padding-top: 14px;
    padding-bottom: 18px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-lg);
    padding-left: 20px;
    padding-right: 20px;
}

.panel-support__services-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 18px;
}

.panel-support__services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-pill {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-pill__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    margin-top: 2px;
}

.service-pill__label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.service-pill__desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light, #666);
    line-height: 1.4;
}

/* --- Responsive: Kontakt-Panel --- */

@media (max-width: 1200px) {
    .panel-support__trust { display: none; }
    .panel-support__cards { flex: 0 0 280px; }
}

@media (max-width: 900px) {
    .panel-support__inner {
        flex-direction: column;
    }
    .panel-support__person {
        max-width: 250px;
        align-self: center;
    }
    .panel-support .contact-form {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .contact-form__submit {
        justify-self: start;
    }
    .panel-support__actions {
        align-items: flex-start;
    }
    .panel-support__cards {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
    .panel-support__services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .panel-support__person {
        max-width: 200px;
    }
    .panel-support__title {
        font-size: 1.4rem;
    }
    .panel-support__services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Block-Content Styling (Seiten / Beiträge)
   ========================================================================== */

.page-content__body { max-width: 75ch; }
.layout--wide .page-content__body { max-width: none; }
.page-content__body h1,
.page-content__body h2,
.page-content__body h3,
.page-content__body h4 { color: var(--color-primary); margin-top: 2rem; margin-bottom: 0.75rem; }
.page-content__body h1 { font-size: 2rem; }
.page-content__body h2 { font-size: 1.5rem; }
.page-content__body h3 { font-size: 1.25rem; }
.page-content__body p { line-height: 1.75; margin-bottom: 1rem; color: var(--color-text); }
.page-content__body blockquote { border-left: 4px solid var(--color-accent); padding: 1rem 1.5rem; margin: 1.5rem 0; font-style: italic; background: var(--color-off-white); border-radius: 0 6px 6px 0; }
.page-content__body blockquote cite { display: block; margin-top: 0.5rem; font-style: normal; font-size: 0.85rem; color: #6b7280; }
.page-content__body pre { background: #1e293b; color: #e2e8f0; padding: 1.25rem; border-radius: 8px; overflow-x: auto; font-size: 0.85rem; line-height: 1.6; margin: 1.5rem 0; max-width: 100%; -webkit-overflow-scrolling: touch; word-break: break-word; white-space: pre-wrap; }
.page-content__body ul, .page-content__body ol { margin: 1rem 0; padding-left: 1.5rem; }
.page-content__body ul { list-style-type: disc; }
.page-content__body ol { list-style-type: decimal; }
.page-content__body li { margin-bottom: 0.4rem; line-height: 1.6; }

/* Icon-Liste (Blocktyp Liste mit style=icons) */
.icon-list { margin: 1rem 0; }
.icon-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.icon-list-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--color-primary, #1B2A4A);
}
.icon-list-icon svg { width: 100%; height: 100%; }
.icon-list-bar {
    flex-shrink: 0;
    width: 3px;
    align-self: stretch;
    min-height: 24px;
    background: var(--color-accent, #E8811A);
    border-radius: 2px;
}
.icon-list-text {
    flex: 1;
    line-height: 1.6;
}

.page-content__body .block-cta { text-align: center; margin: 2rem 0; }
.block-cta .btn-secondary { color: var(--color-primary); border-color: var(--color-primary); }
.block-cta .btn-secondary:hover { background-color: var(--color-primary); color: var(--color-white); }

/* Kontaktformular-Block */
.block-contact-form { max-width: 800px; margin: 2rem auto; }
.block-contact-form__status { padding: 1.25rem; border-radius: var(--border-radius); text-align: center; font-weight: 600; margin-top: 1rem; }
.block-contact-form__status--success { background: #d4edda; color: #155724; }
.block-contact-form__status--error { background: #f8d7da; color: #721c24; }

/* Kontakt-Karten (Reiter-Optik) */
.cf-cards {
    display: grid;
    grid-template-columns: repeat(var(--cf-count, 4), 1fr);
    gap: 0;
}
.cf-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    background: #ffffff;
    color: #4b5563;
    text-decoration: none;
    border: 1px solid #d5d8e0;
    border-bottom: none;
    transition: background 0.2s;
}
.cf-card + .cf-card { border-left: none; }
a.cf-card:hover { background: #f3f2f4; }
.cf-card--first { border-radius: 10px 0 0 0; }
.cf-card--last  { border-radius: 0 10px 0 0; }
.cf-card--first.cf-card--last { border-radius: 10px 10px 0 0; }
.cf-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--color-primary, #393f78);
}
.cf-card__icon svg { width: 22px; height: 22px; }
.cf-card__text { display: flex; flex-direction: column; min-width: 0; }
.cf-card__title { font-size: 0.8rem; font-weight: 700; line-height: 1.2; color: var(--color-primary, #393f78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-card__sub { font-size: 0.72rem; color: #E8811A; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-card--empty { display: none; }

/* Formular-Panel (unter den Karten, mit Farbverlauf + abgerundete untere Ecken) */
.cf-form-panel {
    background: #fafbfd;
    border: 1px solid #d5d8e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 1.75rem 1.5rem 1.5rem;
}
/* Ohne Karten: Panel bekommt alle 4 Ecken abgerundet */
.block-contact-form:not(:has(.cf-cards)) .cf-form-panel {
    border-top: 1px solid #d5d8e0;
    border-radius: 12px;
}

/* Formular-Footer: Puzzle + Button nebeneinander */
.form-footer {
    display: grid;
    grid-template-columns: auto auto;
    gap: var(--spacing-md);
    align-items: end;
    justify-content: start;
}
.form-footer__submit { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-width: 0; }
.form-footer__submit .btn { white-space: normal; word-break: break-word; }
.form-footer__submit .form-submit-hint { word-break: break-word; }

@media (max-width: 768px) {
    .cf-cards { grid-template-columns: repeat(2, 1fr); }
    .cf-card { padding: 8px 6px; gap: 5px; }
    .cf-card__icon { width: 24px; height: 24px; }
    .cf-card__icon svg { width: 16px; height: 16px; }
    .cf-card__title { font-size: 0.7rem; }
    .cf-card__sub { font-size: 0.6rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    /* Zeile 1 unten schliessen (nur wenn Zeile 2 existiert) */
    .cf-card:first-child:nth-last-child(n+3),
    .cf-card:nth-child(2):nth-last-child(n+2) { border-bottom: 1px solid #d5d8e0; }
    /* Zeile 2 erstes Element: linken Rand wiederherstellen */
    .cf-card:nth-child(odd):not(:first-child) { border-left: 1px solid #d5d8e0; }
    /* Ecken im 2x2 Grid */
    .cf-card--first { border-radius: 10px 0 0 0; }
    .cf-card:nth-child(2) { border-radius: 0 10px 0 0; }
    .cf-card:nth-last-child(2):nth-child(odd) { border-radius: 0 0 0 0; }
    .cf-card--last  { border-radius: 0 0 0 0; }
    .cf-card--empty { display: flex; }
    .cf-form-panel { padding: 1.25rem 1rem 1rem; }
    .form-footer {
        grid-template-columns: 1fr;
    }
    .form-footer__submit { width: 100%; }
    .form-footer__submit .btn { width: 100%; text-align: center; }
}

/* CAPTCHA Puzzle-Slider */
.captcha-puzzle { margin: 0; }
.captcha-puzzle__prompt { margin-bottom: 0.75rem; font-size: 0.95rem; color: var(--color-text); }
.captcha-puzzle__canvas {
    position: relative;
    width: 300px;
    height: 150px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--color-light-gray, #ddd);
    user-select: none;
    -webkit-user-select: none;
}
.captcha-puzzle__bg { display: block; width: 300px; height: 150px; pointer-events: none; }
.captcha-puzzle__piece {
    position: absolute;
    pointer-events: none;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5));
}
.captcha-puzzle__slider {
    display: block;
    width: 300px;
    max-width: 100%;
    margin-top: 0.5rem;
    height: 36px;
    cursor: pointer;
    accent-color: var(--color-accent, #E8811A);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}
.captcha-puzzle__slider::-webkit-slider-runnable-track {
    height: 8px;
    background: var(--color-light-gray, #e0e0e0);
    border-radius: 4px;
}
.captcha-puzzle__slider::-moz-range-track {
    height: 8px;
    background: var(--color-light-gray, #e0e0e0);
    border-radius: 4px;
    border: none;
}
.captcha-puzzle__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-accent, #E8811A);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin-top: -12px;
    cursor: grab;
}
.captcha-puzzle__slider::-moz-range-thumb {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-accent, #E8811A);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
}
.captcha-puzzle__slider:active::-webkit-slider-thumb { cursor: grabbing; }
.captcha-puzzle__slider:active::-moz-range-thumb { cursor: grabbing; }
.captcha-puzzle__slider:focus-visible { outline: 2px solid var(--color-accent, #E8811A); outline-offset: 2px; }

.page-content__body .grid--2, .page-content__body .grid--3, .page-content__body .grid--4 { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.page-content__body .grid--2 { grid-template-columns: repeat(2, 1fr); }
.page-content__body .grid--3 { grid-template-columns: repeat(3, 1fr); }
.page-content__body .grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
    .page-content__body .grid--2, .page-content__body .grid--3, .page-content__body .grid--4 { grid-template-columns: 1fr; }
}

/* --- Block: Image mit Alignment --- */
.block-image { margin: 1.5rem 0; }
.block-image img { max-width: 100%; height: auto; border-radius: 6px; }
.block-image figcaption { font-size: 0.8rem; color: #6b7280; margin-top: 0.5rem; text-align: center; }
.block-image--left { float: left; margin: 0 1.5rem 1rem 0; max-width: 50%; }
.block-image--right { float: right; margin: 0 0 1rem 1.5rem; max-width: 50%; }
@media (max-width: 768px) {
    .block-image--left, .block-image--right { float: none; max-width: 100%; margin: 1rem 0; }
}
/* Frame-Wrapper: Figcaption folgt der Viewport-Breite */
.block-image__frame { margin: 0 auto; }
.block-image__frame .block-image__viewport { width: 100%; }

/* Lightbox: Bild- und Media-Blöcke klickbar */
.block-image[data-lightbox] { cursor: zoom-in; border-radius: 8px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.block-image[data-lightbox]:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(12,31,61,0.16), 0 4px 8px rgba(12,31,61,0.08); }
.block-media__image[data-lightbox] { cursor: zoom-in; border-radius: 8px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.block-media__image[data-lightbox]:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(12,31,61,0.16), 0 4px 8px rgba(12,31,61,0.08); }

/* --- Block: Banner --- */
.block-banner { position: relative; background-size: cover; display: flex; align-items: center; height: var(--banner-h, 400px); margin: 0 calc(-50vw + 50%) 1.5rem; padding: 0 calc(50vw - 50%); overflow: hidden; }
@media (max-width: 640px) { .block-banner { height: max(calc(var(--banner-h, 400px) * 0.6), 150px); } }
.block-banner--dark::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(17,29,53,0.85) 0%, rgba(27,42,74,0.6) 100%); }
.block-banner--light::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.7); }
.block-banner--none::before { display: none; }
.block-banner__content { position: relative; z-index: 1; max-width: var(--container-max, 1200px); width: 100%; margin: 0 auto; padding: 3rem var(--container-padding, 1.5rem); }
.block-banner--center .block-banner__content { text-align: center; margin: 0 auto; }
.block-banner--right .block-banner__content { margin-left: auto; text-align: right; }
.block-banner--top { align-items: flex-start; }
.block-banner--top .block-banner__content { padding-top: 0; padding-bottom: 0; }
.block-banner--bottom { align-items: flex-end; }
.block-banner--bottom .block-banner__content { padding-top: 0; padding-bottom: 0; }
.block-banner__title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 0.75rem; }
.block-banner__subtitle { font-size: clamp(0.95rem, 1.5vw, 1.2rem); opacity: 0.9; }
.block-banner--dark .block-banner__title, .block-banner--dark .block-banner__subtitle { color: #fff; }
.block-banner--none .block-banner__title, .block-banner--none .block-banner__subtitle { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.block-banner--light .block-banner__title { color: var(--color-primary); }
.block-banner--light .block-banner__subtitle { color: var(--color-text); }

/* --- Block: Cards-Grid (Aero Glass Ice) --- */
.block-cards { display: grid; gap: 1.25rem; margin: 2rem auto; max-width: 99%; padding: 0.5rem; }
.block-cards--2 { grid-template-columns: repeat(2, 1fr); }
.block-cards--3 { grid-template-columns: repeat(3, 1fr); }
.block-cards--4 { grid-template-columns: repeat(4, 1fr); }
.block-card {
    background: linear-gradient(155deg, #ffffff 0%, #f7f9fc 45%, #e8eef7 100%);
    border: 1.6px solid #bccadb;
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    position: relative; overflow: visible;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.92),
        inset 0 -1px 0 rgba(80,105,138,0.08),
        0 8px 18px rgba(12,31,61,0.09),
        0 2px 4px rgba(12,31,61,0.06);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s ease, border-color 0.25s ease;
}
/* Gloss-Reflexion (obere Haelfte) */
.block-card::before {
    content: ''; position: absolute; inset: 0 0 52% 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.28) 40%, rgba(255,255,255,0) 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}
.block-card:hover {
    transform: translateY(-5px) scale(1.008);
    border-color: #2d7ff9;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.92),
        0 12px 28px rgba(12,31,61,0.13),
        0 4px 8px rgba(12,31,61,0.07);
}
.block-card__icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #eef4fb 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 9px 18px rgba(12,31,61,0.14);
    display: flex; align-items: center; justify-content: center;
    color: #0057d8; margin-bottom: 0.25rem; position: relative; z-index: 1;
}
.block-card__icon svg { width: 24px; height: 24px; }
.block-card__title { font-size: 1rem; font-weight: 800; color: #0b214a; margin: 0; line-height: 1.2; position: relative; z-index: 1; }
.block-card__text { font-size: 0.88rem; color: #303946; line-height: 1.48; margin: 0; position: relative; z-index: 1; }
.block-card__link {
    margin-top: auto; position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.82rem; font-weight: 700; color: #fff;
    background: var(--color-accent, #E8811A); border: none;
    border-radius: 6px; padding: 7px 18px;
    text-decoration: none; transition: background 0.2s ease, transform 0.2s ease;
}
.block-card__link::after { content: "\203A"; font-size: 1.15em; }
.block-card__link:hover { background: #d0740f; color: #fff; transform: translateY(-1px); text-decoration: none; }
@media (max-width: 900px) {
    .block-cards--3, .block-cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .block-cards--2, .block-cards--3, .block-cards--4 { grid-template-columns: 1fr; }
}

/* --- Block: Puzzle-Board (client-side SVG, absolute Positionierung) --- */
.puzzle-section { margin: 0.4rem auto; }
.puzzle-stage {
    position: relative; overflow: visible;
}
.puzzle-board { position: absolute; top: 0; left: 50%; overflow: visible; }
.puzzle-piece {
    position: absolute; overflow: visible; isolation: isolate; cursor: default;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1), z-index 0s;
}
.puzzle-piece:hover { z-index: 20; transform: translateY(-6px) scale(1.012); }
.puzzle-piece.is-active { z-index: 10; }
.puzzle-svg {
    position: absolute; left: -54px; top: -54px; width: 528px; height: 368px;
    overflow: visible; pointer-events: none;
}
.puzzle-fill {
    transition: stroke 0.25s ease, stroke-width 0.25s ease;
}
.puzzle-piece:hover .puzzle-fill { stroke: #2d7ff9; stroke-width: 2; }
.puzzle-content {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 18px 34px 14px 54px; text-align: center; pointer-events: auto;
    overflow: visible;
}
.puzzle-icon {
    width: 48px; height: 48px; flex-shrink: 0; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #eef4fb 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 9px 18px rgba(12,31,61,0.14);
    color: #0057d8;
}
.puzzle-icon svg { width: 24px; height: 24px; }
h3.puzzle-title { font-size: 1.35rem; font-weight: 800; color: #0b214a; margin: 0 0 5px; line-height: 1.18; }
.puzzle-text {
    font-size: 1.05rem; color: #303946; line-height: 1.42; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.puzzle-link {
    position: absolute; bottom: 14px; right: 34px;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 7px 18px; border-radius: 6px; white-space: nowrap;
    font-size: 0.82rem; font-weight: 700; color: #fff;
    background: var(--color-accent, #E8811A); text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.puzzle-link::after { content: "\203A"; font-size: 1.15em; }
.puzzle-link:hover { background: #d0740f; color: #fff; transform: translateY(-1px); text-decoration: none; }
/* Aktives Puzzleteil: orangener Punkt oben rechts + Icon-Badge-Hervorhebung */
.puzzle-piece.is-active::after {
    content: ''; position: absolute; z-index: 3; top: 18px; right: 28px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--color-accent, #E8811A);
    box-shadow: 0 0 0 5px rgba(255,133,0,0.12);
}
.puzzle-piece.is-active .puzzle-icon {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        0 10px 20px rgba(12,31,61,0.10),
        0 0 0 3px rgba(45,127,249,0.12);
}
@media (max-width: 900px) {
    .puzzle-stage { padding: 16px; }
}

/* --- Block: Timeline --- */
.block-timeline { margin: 2rem auto; position: relative; max-width: 750px; }

/* Vertikale Linie — per JS von erstem bis letztem Punkt positioniert */
.block-tl-vline { position: absolute; left: 14px; width: 4px; background: var(--color-primary, #1B2A4A); top: 0; bottom: 0; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15); border-radius: 2px; }

/* Featured / "aktuell" entry — Kachel bei margin-left:138px */
.block-tl-current { position: relative; background: #fff; border: 1px solid rgba(200,210,225,0.5); border-radius: 10px; padding: 1.25rem 1.5rem; max-width: 600px; width: calc(100% - 138px); margin-left: 138px; margin-bottom: calc(0.5rem + 30px); box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06); }
.block-tl-badge { position: absolute; top: -11px; left: 1.5rem; background: var(--color-accent, #E8811A); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.9rem; border-radius: 20px; line-height: 1.3; }
/* Orangener Connector-Kreis (14px), zentriert bei 15px → left: -(138-15+7)=-130 */
.block-tl-current::before { content: ''; position: absolute; left: -130px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--color-accent, #E8811A); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--color-accent, #E8811A), 2px 3px 8px rgba(0,0,0,0.15); z-index: 1; }
/* Horizontale Verbindungslinie Punkt → Kachel */
.block-tl-current::after { content: ''; position: absolute; left: -116px; top: 50%; transform: translateY(-50%); width: 116px; height: 4px; background: var(--color-primary, #1B2A4A); box-shadow: 0 2px 6px rgba(0,0,0,0.12); border-radius: 2px; }
.block-tl-current__body { display: flex; gap: 0.85rem; align-items: flex-start; }
.block-tl-current__icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0; }
.block-tl-current__icon svg { width: 22px; height: 22px; }
.block-tl-current__text { flex: 1; }
.block-tl-current__year { font-size: 1.2rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.3rem; }
.block-tl-current__list { list-style: disc; padding-left: 1.25rem; margin: 0; }
.block-tl-current__list li { font-size: 0.88rem; color: var(--color-text); line-height: 1.55; margin-bottom: 0.15rem; }

/* Regular timeline entries */
.block-tl-entry { position: relative; max-width: 600px; width: calc(100% - 138px); margin-left: 138px; padding-bottom: calc(0.5rem + 30px); }
/* Kachel mit Dot + Linie via Pseudo-Elemente */
.block-tl-entry__card { position: relative; display: flex; gap: 0.85rem; align-items: flex-start; background: #fff; border: 1px solid rgba(200,210,225,0.5); border-radius: 10px; padding: 0.85rem 1.15rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06); }
/* Horizontale Verbindungslinie Punkt → Kachel */
.block-tl-entry__card::before { content: ''; position: absolute; left: -117px; top: 50%; transform: translateY(-50%); width: 117px; height: 4px; background: var(--color-primary, #1B2A4A); box-shadow: 0 2px 6px rgba(0,0,0,0.12); border-radius: 2px; }
/* Blauer Connector-Kreis (12px), zentriert bei 15px, exakt mittig zur Kachel */
.block-tl-entry__card::after { content: ''; position: absolute; left: -129px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--color-primary, #1B2A4A); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--color-primary, #1B2A4A), 2px 3px 8px rgba(0,0,0,0.15); z-index: 1; }
.block-tl-entry__icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0; }
.block-tl-entry__icon svg { width: 18px; height: 18px; }
.block-tl-entry__text { flex: 1; }
.block-tl-entry__year { font-size: 1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.2rem; }
.block-tl-entry__list { list-style: disc; padding-left: 1.15rem; margin: 0; }
.block-tl-entry__list li { font-size: 0.82rem; color: var(--color-text-light, #4b5563); line-height: 1.5; margin-bottom: 0.1rem; }

@media (max-width: 768px) {
    .block-tl-vline { left: 12px; }
    .block-tl-current { margin-left: 50px; width: calc(100% - 50px); padding: 1rem 0.85rem; }
    .block-tl-current::before { left: -43px; width: 12px; height: 12px; }
    .block-tl-current::after { left: -31px; width: 31px; }
    .block-tl-current__icon { width: 36px; height: 36px; }
    .block-tl-current__icon svg { width: 18px; height: 18px; }
    .block-tl-current__year { font-size: 1.05rem; }
    .block-tl-entry { margin-left: 50px; width: calc(100% - 50px); }
    .block-tl-entry__card::before { left: -32px; width: 32px; }
    .block-tl-entry__card::after { left: -42px; width: 10px; height: 10px; }
    .block-tl-entry__icon { width: 30px; height: 30px; }
    .block-tl-entry__icon svg { width: 15px; height: 15px; }
    .block-tl-entry__card { padding: 0.65rem 0.85rem; gap: 0.65rem; }
}

/* --- Block: Post-List (Beitragsliste) --- */
.block-post-list { margin: 2rem 0; }
.block-post-list__header { text-align: center; margin-bottom: 1.5rem; }
.block-post-list__heading { font-size: 1.75rem; font-weight: 700; color: var(--color-primary); margin: 0 0 0.5rem; }
.block-post-list__intro { font-size: 1rem; color: var(--color-text-light); max-width: 700px; margin: 0 auto; line-height: 1.6; }

.block-post-list__grid { display: grid; gap: 1.5rem; }
.block-post-list--1 .block-post-list__grid { grid-template-columns: 1fr; }
.block-post-list--2 .block-post-list__grid { grid-template-columns: repeat(2, 1fr); }
.block-post-list--3 .block-post-list__grid { grid-template-columns: repeat(3, 1fr); }
.block-post-list--4 .block-post-list__grid { grid-template-columns: repeat(4, 1fr); }

.block-post-list__item {
    background: var(--color-white);
    border: 1px solid var(--color-light-gray, #e5e7eb);
    border-radius: var(--border-radius-lg, 8px);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.block-post-list__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27,42,74,0.1);
}

.block-post-list__image { display: block; width: 100%; height: 200px; overflow: hidden; }
.block-post-list__image img,
.block-post-list__image picture { width: 100%; height: 100%; display: block; }
.block-post-list__image picture img { width: 100%; height: 100%; object-fit: cover; }
.block-post-list__image img { object-fit: cover; }
.block-post-list__item:hover .block-post-list__image img { transform: scale(1.03); transition: transform 0.3s; }
.block-post-list__image--placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, #e8ecf1 0%, #d1d8e3 100%); }

.block-post-list__content { padding: 1rem 1.25rem 1.25rem; }
.block-post-list__date { display: block; font-size: 0.78rem; color: var(--color-mid-gray, #9ca3af); margin-bottom: 0.3rem; }
.block-post-list__title { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); margin: 0 0 0.4rem; line-height: 1.35; }
.block-post-list__title a { color: inherit; text-decoration: none; }
.block-post-list__title a:hover { color: var(--color-accent); }
.block-post-list__excerpt { font-size: 0.85rem; color: var(--color-text-light, #6b7280); line-height: 1.55; margin: 0 0 0.75rem; }
.block-post-list__link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--color-accent); text-decoration: none; }
.block-post-list__link:hover { color: var(--color-accent-hover); }

.block-post-list__more { text-align: center; margin-top: 1.5rem; }

/* Post-List: text-only */
.block-post-list--text-only .block-post-list__item { display: flex; flex-direction: column; }

/* Post-List: image-only */
.block-post-list--image-only .block-post-list__image { height: 250px; }

/* Post-List: 1 Spalte — horizontales Layout */
.block-post-list--1 .block-post-list__item { display: flex; flex-direction: row; }
.block-post-list--1 .block-post-list__image { width: 280px; height: auto; min-height: 180px; flex-shrink: 0; }
.block-post-list--1 .block-post-list__content { flex: 1; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 900px) {
    .block-post-list--3 .block-post-list__grid,
    .block-post-list--4 .block-post-list__grid { grid-template-columns: repeat(2, 1fr); }
    .block-post-list--1 .block-post-list__item { flex-direction: column; }
    .block-post-list--1 .block-post-list__image { width: 100%; height: 200px; }
}
@media (max-width: 640px) {
    .block-post-list--2 .block-post-list__grid,
    .block-post-list--3 .block-post-list__grid,
    .block-post-list--4 .block-post-list__grid { grid-template-columns: 1fr; }
}

/* --- Block: Media (Bild + Text nebeneinander) --- */
.block-media { display: flex; gap: 2.5rem; align-items: flex-start; margin: 2rem 0; }
.block-media--right { flex-direction: row-reverse; }
.block-media--vcenter { align-items: center; }
.block-media--vbottom { align-items: flex-end; }
.block-media__image { flex: 0 0 38%; max-width: 38%; margin: 0; }
.block-media__image img { width: 100%; height: auto; border-radius: 6px; display: block; }
.block-media__viewport { overflow: hidden; border-radius: 6px; }
.block-media__content { flex: 1; min-width: 0; }
.block-media__content > :first-child { margin-top: 0; }
.block-media__heading { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.75rem; color: var(--color-primary); border-bottom: 2px solid var(--color-accent, #E8811A); padding-bottom: 0.4rem; }
@media (max-width: 768px) {
    .block-media { flex-direction: column !important; gap: 1.25rem; }
    .block-media__image { flex: none; max-width: 100%; width: 100%; }
}

/* --- Block: Gallery --- */
.block-gallery { margin: 1.5rem 0; }
.block-gallery--grid { display: grid; grid-template-columns: repeat(var(--gallery-cols, 3), 1fr); gap: 8px; }
.block-gallery__item { cursor: pointer; overflow: hidden; border-radius: 6px; position: relative; }
.block-gallery__item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s; }
.block-gallery__item:hover img { transform: scale(1.05); }
.block-gallery__item figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 8px 10px; font-size: 0.78rem; opacity: 0; transition: opacity 0.3s; }
.block-gallery__item:hover figcaption { opacity: 1; }
.block-gallery--carousel { display: flex; align-items: center; gap: 6px; }
.block-gallery--carousel .block-gallery__track { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.block-gallery--carousel .block-gallery__track::-webkit-scrollbar { display: none; }
.block-gallery--carousel .block-gallery__item { flex: 0 0 calc(100% / var(--gallery-cols, 3) - 6px); scroll-snap-align: start; }
.block-gallery--carousel .block-gallery__item img { object-fit: contain; background: #fff; }
.block-gallery__arrow { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #f0f0f0; border: 1px solid #ddd; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: background 0.15s, opacity 0.2s; }
.block-gallery__arrow:hover { background: #e2e2e2; }
.block-gallery__arrow--prev { order: -1; }
.block-gallery__arrow.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
    .block-gallery--grid { grid-template-columns: repeat(2, 1fr); }
    .block-gallery--carousel .block-gallery__item { flex: 0 0 calc(50% - 4px); }
}

/* --- Lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; }
.lightbox.is-open { opacity: 1; }
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox__close { position: absolute; top: 16px; right: 20px; color: #fff; background: none; border: none; font-size: 2rem; cursor: pointer; z-index: 2; line-height: 1; }
.lightbox__download { position: absolute; bottom: 20px; right: 20px; color: #fff; background: #E8811A; border: none; padding: 8px 16px; border-radius: 6px; display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-family: system-ui, sans-serif; text-decoration: none; z-index: 2; transition: background 0.2s; cursor: pointer; }
.lightbox__download:hover { background: #d0730f; color: #fff; }
.lightbox__download svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgba(255,255,255,0.15); border: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: background 0.2s; }
.lightbox__arrow:hover { background: rgba(255,255,255,0.3); }
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }
.lightbox__caption { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.85rem; text-align: center; max-width: 80vw; }
.lightbox__counter { position: absolute; top: 20px; left: 20px; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.lightbox:not(.is-open) { pointer-events: none; }

/* --- Breadcrumb --- */
.breadcrumb { font-size: 0.85rem; color: #666; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--color-primary, #1B2A4A); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 0.4rem; color: #999; }
.breadcrumb--light { color: rgba(255,255,255,0.7); }
.breadcrumb--light a { color: rgba(255,255,255,0.9); }
.breadcrumb--light .breadcrumb__sep { color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Seitenvorlagen (Page Templates)
   ========================================================================== */

/* --- Gradient-Hintergrund --- */
.section--gradient {
    background: linear-gradient(to bottom, #FFFFFF 0px, #FFFFFF 40px, #E8ECF4 100%);
}

/* --- Content-Bereich --- */
.section--page-content {
    padding-top: 15px;
    padding-bottom: 3rem;
}

/* --- Page Header (Banner mit Hintergrundbild) --- */
.page-header {
    background: url('/assets/img/topper.jpg') center center / cover no-repeat;
    padding: 2rem 0 1.8rem;
}
.page-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.page-header__left { flex: 0 0 auto; }
.page-header__title {
    color: var(--color-primary, #1B2A4A);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0;
}
.page-header .breadcrumb { margin-bottom: 0.5rem; }

/* USP-Icons im Header */
.page-header__usps {
    display: flex;
    gap: 2rem;
}
.page-usp { text-align: center; min-width: 100px; }
.page-usp__icon { width: 32px; height: 32px; color: var(--color-primary, #1B2A4A); margin-bottom: 6px; }
.page-usp__label { color: var(--color-primary, #1B2A4A); font-weight: 600; font-size: 0.85rem; margin-bottom: 2px; }
.page-usp__desc { color: #555; font-size: 0.72rem; line-height: 1.3; max-width: 140px; margin: 0 auto; }

/* --- Page Layout (2-Spalten: Content + Trust-Sidebar) --- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
.page-layout__main { min-width: 0; overflow: hidden; }
.page-layout__sidebar { position: sticky; top: 100px; }

/* Hero-Bild in der rechten Sidebar */
.page-hero-sidebar {
    text-align: center;
}
.page-hero-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}
/* Trustbox ueberlappt den Hero um ~20% */
.page-trust.page-trust--overlap {
    margin-top: -30px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Banner im 2-Spalten-Layout: kein Bleed über die Spalte hinaus */
.page-layout__main .block-banner { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; border-radius: 8px; }

/* Trust-Box Sidebar */
.page-trust {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}
.page-trust__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary, #1B2A4A);
    margin: 0 0 1.25rem 0;
}
.page-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-text, #374151);
}
.page-trust__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--color-accent, #E8811A);
}

/* --- Page Services (4er Grid Kacheln) --- */
.page-services { padding-top: 3rem; padding-bottom: 3rem; }
.page-services__heading {
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--color-primary, #1B2A4A);
    margin-bottom: 2rem;
}
.page-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.page-service-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.page-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.page-service-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    padding: 10px;
    border-radius: 10px;
    background: rgba(27,42,74,0.06);
    color: var(--color-primary, #1B2A4A);
}
.page-service-card__icon svg { width: 100%; height: 100%; }
.page-service-card__title { font-size: 0.95rem; font-weight: 700; color: var(--color-primary, #1B2A4A); margin-bottom: 0.5rem; }
.page-service-card__text { font-size: 0.82rem; color: #6b7280; line-height: 1.5; margin: 0; }

/* --- CTA-Bar --- */
.page-cta-bar {
    background: linear-gradient(135deg, #1B2A4A 0%, #2a3f6e 100%);
    padding: 2.5rem 0 2rem;
}
.page-cta-bar__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}
.page-cta-bar__left {
    color: #fff;
    padding-right: 2.5rem;
}
.page-cta-bar__headline {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.page-cta-bar__subline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 1rem;
    line-height: 1.5;
}
.page-cta-bar__checks {
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-cta-bar__checks li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}
.page-cta-bar__checks li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-accent, #E8811A);
    font-weight: 700;
    font-size: 1.05rem;
}
.page-cta-bar__right {
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 2.5rem;
}
.page-cta-bar__nl-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}
.page-cta-bar__nl-input-row {
    display: flex;
    gap: 8px;
}
.page-cta-bar__nl-email {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
}
.page-cta-bar__nl-email::placeholder { color: rgba(255,255,255,0.5); }
.page-cta-bar__nl-email:focus {
    outline: none;
    border-color: var(--color-accent, #E8811A);
    background: rgba(255,255,255,0.15);
}
.page-cta-bar__nl-trust {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin: 0.6rem 0 0;
    line-height: 1.4;
}
.page-cta-bar__actions {
    display: flex;
    gap: 10px;
    margin-top: 1.2rem;
}
.page-cta-bar__actions .btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 10px 16px;
}
.btn-accent { background: var(--color-accent, #E8811A); color: #fff; border: 2px solid var(--color-accent, #E8811A); }
.btn-accent:hover { background: #d0740f; border-color: #d0740f; color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: #fff; }

/* --- Page Hero (Hero-Template) --- */
.page-hero {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.page-hero__overlay {
    width: 100%;
    background: linear-gradient(transparent 0%, rgba(17,29,53,0.75) 100%);
    padding: 4rem 0 2.5rem;
}
.page-hero__title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* --- Page Content Image --- */
.page-content__image { margin-bottom: 2rem; border-radius: 8px; overflow: hidden; }
.page-content__image img { width: 100%; height: auto; display: block; }

/* --- Responsive: Page Templates --- */
@media (max-width: 1024px) {
    .page-header__usps { gap: 1rem; }
    .page-usp__desc { display: none; }
    .page-layout { grid-template-columns: 1fr 260px; gap: 2rem; }
    .page-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .page-layout { grid-template-columns: 1fr; }
    .page-layout__sidebar { position: static; }
}
@media (max-width: 1050px) {
    .page-cta-bar__columns { grid-template-columns: 1fr; }
    .page-cta-bar__left { padding-right: 0; padding-bottom: 1.5rem; }
    .page-cta-bar__right { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; }
}
@media (max-width: 768px) {
    .page-header__inner { flex-direction: column; align-items: flex-start; }
    .page-header__usps { width: 100%; justify-content: space-between; }
    .page-usp__desc { display: none; }
    .page-services__grid { grid-template-columns: 1fr 1fr; }
    .page-cta-bar { padding: 1.5rem 0; }
    .page-cta-bar__nl-input-row { flex-direction: column; }
    .page-cta-bar__nl-input-row .btn { width: 100%; text-align: center; }
    .page-cta-bar__actions { flex-direction: column; width: 100%; align-items: center; }
    .page-cta-bar__actions .btn { width: 100%; text-align: center; }
    .page-hero { min-height: 220px; }
    .page-header { padding: 1.2rem 0 1rem; }
}
@media (max-width: 480px) {
    .page-header__usps { display: flex; gap: 0.5rem; justify-content: space-between; }
    .page-usp { min-width: 0; }
    .page-usp__icon { width: 24px; height: 24px; margin-bottom: 3px; }
    .page-usp__label { font-size: 0.7rem; }
    .page-services__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   KI-Bildprompt-Overlay (nur im Admin-Vorschau-Modus sichtbar)
   ============================================================ */
.ki-placeholder-wrap { position: relative; }

.ki-prompt-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(232, 129, 26, 0.93);
    color: #fff;
    border-radius: 6px;
    padding: 7px 12px;
    max-width: 280px;
    font-size: 12px;
    line-height: 1.4;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.ki-prompt-overlay__label {
    display: block;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    opacity: 0.88;
}

.ki-prompt-overlay__text {
    display: block;
}

/* --- OTP (One-Time Secret) Passwort-Austausch --- */
.block-otp { max-width: 600px; margin: 2rem auto; padding: 2rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.block-otp h3 { margin: 0 0 0.5rem; color: var(--color-primary, #1B2A4A); }
.block-otp p { color: #64748b; font-size: 0.9rem; margin: 0 0 1rem; }

/* Create-Formular */
.otp-form { display: flex; flex-direction: column; gap: 12px; }
.otp-secret-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: monospace; font-size: 0.9rem; resize: vertical; min-height: 60px; box-sizing: border-box; }
.otp-form .otp-pin-input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem; box-sizing: border-box; }
.otp-secret-input:focus, .otp-form .otp-pin-input:focus { outline: none; border-color: var(--color-primary, #1B2A4A); box-shadow: 0 0 0 3px rgba(27,42,74,0.1); }
.otp-expiry-select-wrap { display: flex; align-items: center; gap: 10px; }
.otp-expiry-select-wrap label { font-size: 0.85rem; color: #475569; white-space: nowrap; }
.otp-expiry-select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.85rem; background: #fff; color: #1e293b; cursor: pointer; }
.otp-expiry-select:focus { outline: none; border-color: var(--color-primary, #1B2A4A); box-shadow: 0 0 0 3px rgba(27,42,74,0.1); }

/* Ergebnis-Link */
.otp-result { animation: otpFadeIn 0.3s ease; }
.otp-link-box { display: flex; gap: 8px; margin-top: 8px; }
.otp-link-input { flex: 1; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: monospace; font-size: 0.82rem; background: #fff; color: #334155; box-sizing: border-box; }
.otp-expiry-info { font-size: 0.8rem; color: #94a3b8; margin-top: 8px; }

/* Deliver: PIN-Eingabe */
.otp-pin-form { display: flex; flex-direction: column; gap: 12px; }
.otp-pin-form .otp-pin-input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem; box-sizing: border-box; }
.otp-reveal-wrap { text-align: center; margin-top: 1rem; }

/* Secret-Anzeige */
.otp-secret-display { animation: otpFadeIn 0.3s ease; background: #fff; border: 2px solid #22c55e; border-radius: 8px; padding: 1.5rem; text-align: center; }
.otp-secret-text { background: #f1f5f9; padding: 16px; border-radius: 6px; font-family: monospace; font-size: 1rem; word-break: break-all; white-space: pre-wrap; margin: 0 0 12px; text-align: left; }
.otp-warning { font-size: 0.8rem; color: #dc2626; margin-top: 12px; font-weight: 600; }

/* Fehlermeldung */
.otp-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 12px 16px; border-radius: 6px; font-size: 0.85rem; margin-top: 12px; }
.otp-error-message { display: flex; align-items: flex-start; gap: 12px; padding: 1.5rem; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; }
.otp-error-message svg { flex-shrink: 0; margin-top: 2px; }
.otp-error-message p { margin: 0; color: #991b1b; font-size: 0.9rem; line-height: 1.5; }

/* Copy-Button */
.otp-copy-btn { white-space: nowrap; }

/* Outlook-Vorschaukarte */
.otp-preview-wrap { border-top: 1px solid #e2e8f0; margin-top: 16px; padding-top: 4px; }
.otp-preview-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; max-width: 520px; background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.otp-preview-card-inner { display: flex; flex-direction: column; background: #ffffff; }
.otp-preview-card-inner--cols { flex-direction: row; align-items: stretch; }
.otp-preview-card-imgcol { flex: 0 0 160px; min-height: 160px; overflow: hidden; background: #f1f5f9; }
.otp-preview-card-imgcol .otp-preview-card-img { width: 160px; height: 100%; object-fit: cover; display: block; }
.otp-preview-card-inner:not(.otp-preview-card-inner--cols) .otp-preview-card-img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: cover; }
.otp-preview-card-body { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; background: #ffffff; }
.otp-preview-card-text { font-size: 0.88rem; line-height: 1.6; color: #1e293b; margin: 0; }
.otp-preview-card-btn { display: inline-block; background: #E8811A; color: #fff !important; padding: 10px 18px; border-radius: 6px; font-weight: 600; font-size: 0.88rem; text-decoration: none; align-self: flex-start; }
.otp-preview-card-btn:hover { background: #d4720f; }
.otp-preview-card-fallback { font-size: 0.72rem; color: #94a3b8; margin: 0; line-height: 1.5; word-break: break-all; }
.otp-preview-card-fallback a { color: #94a3b8; }
.otp-copy-preview-btn { font-size: 0.85rem; }

@keyframes otpFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
    .block-otp { padding: 1.25rem; margin: 1rem; }
    .otp-link-box { flex-direction: column; }
}

/* --- Newsletter-Abmeldung (Unsubscribe) --- */
.block-unsub { max-width: 600px; margin: 2rem auto; padding: 2rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.block-unsub h3 { margin: 0 0 0.5rem; color: var(--color-primary, #1B2A4A); }
.block-unsub p { color: #475569; font-size: 0.95rem; margin: 0 0 1rem; line-height: 1.6; }
.block-unsub strong { color: var(--color-primary, #1B2A4A); }

.unsub-no-token { text-align: center; color: #64748b; font-style: italic; }

.unsub-reasons { margin-bottom: 1.25rem; }
.unsub-reasons__label { font-weight: 600; color: var(--color-primary, #1B2A4A); margin-bottom: 0.5rem; }
.unsub-reasons__label small { font-weight: 400; color: #94a3b8; }
.unsub-reason { display: block; padding: 8px 12px; margin-bottom: 4px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; color: #334155; transition: background 0.15s; }
.unsub-reason:hover { background: #e2e8f0; }
.unsub-reason input[type="radio"] { margin-right: 8px; accent-color: var(--color-primary, #1B2A4A); }

.unsub-reason-text { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 0.9rem; resize: vertical; box-sizing: border-box; margin-top: 6px; }
.unsub-reason-text:focus { outline: none; border-color: var(--color-primary, #1B2A4A); box-shadow: 0 0 0 3px rgba(27,42,74,0.1); }

.unsub-submit-btn { width: 100%; margin-top: 0.5rem; }
.unsub-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.unsub-success { background: var(--color-success-bg, #d4edda); border: 1px solid var(--color-success-border, #c3e6cb); color: #155724; padding: 1.25rem; border-radius: 8px; text-align: center; font-weight: 600; }
.unsub-success p { color: inherit; margin: 0; }

.unsub-error { background: var(--color-error-bg, #f8d7da); border: 1px solid var(--color-error-border, #f5c6cb); color: #721c24; padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.85rem; margin-top: 0.75rem; }

.unsub-error-message { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 1.25rem; }
.unsub-error-message p { color: #991b1b; margin: 0; }

@media (max-width: 640px) {
    .block-unsub { padding: 1.25rem; margin: 1rem; }
}

/* --- Newsletter-Anmeldung (Subscribe) --- */
.block-sub { max-width: 600px; margin: 2rem auto; padding: 2rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.block-sub h3 { margin: 0 0 0.5rem; color: var(--color-primary, #1B2A4A); }
.block-sub p { color: #475569; font-size: 0.95rem; margin: 0 0 1rem; line-height: 1.6; }
.block-sub .form-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.block-sub .form-group { margin-bottom: 0; }
.block-sub .form-footer { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1rem; text-align: center; }
.block-sub__status { padding: 1.25rem; border-radius: var(--border-radius, 8px); text-align: center; font-weight: 600; margin-top: 1rem; }
.block-sub__status--success { background: #d4edda; color: #155724; }
.block-sub__status--error { background: #f8d7da; color: #721c24; }
.block-sub--success .sub-message { padding: 1.5rem; background: #d4edda; border-radius: 8px; text-align: center; }
.block-sub--success .sub-message p { color: #155724; font-weight: 600; margin: 0; }
.block-sub--error .sub-message { padding: 1.5rem; background: #f8d7da; border-radius: 8px; text-align: center; }
.block-sub--error .sub-message p { color: #721c24; margin: 0; }
.block-sub--info .sub-message { padding: 1.5rem; background: #cce5ff; border-radius: 8px; text-align: center; }
.block-sub--info .sub-message p { color: #004085; margin: 0; }

@media (max-width: 640px) {
    .block-sub { padding: 1.25rem; margin: 1rem; }
}

/* =========================================
   Endlosscroller — Inhalts-Panels Startseite
   ========================================= */
.section--scroller-panel {
    background: linear-gradient(to bottom, #FFFFFF 0px, #FFFFFF 40px, #E8ECF4 100%);
    padding: 4rem 0;
    border-top: 1px solid #e2e8f0;
}
/* Banner-Block auf Container-Breite begrenzen (kein full-viewport-width) */
.section--scroller-panel .block-banner {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
    border-radius: 8px;
}
.scroller-panel__more {
    margin-top: 2rem;
}
@media (max-width: 640px) {
    .section--scroller-panel { padding: 2.5rem 0; }
}


/* ================================================================
   CONTENT SLIDER (Block-Editor Slider-Block)
   ================================================================ */

.content-slider {
    position: relative;
    width: 100%;
    min-height: var(--slider-h, 420px);
    overflow: hidden;
    border-radius: 0;
    margin: 2rem 0;
    background: #1b2a4a;
}

/* Einzelner Slide */
.content-slider__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
/* Nur ein Slide: kein absolute noetig */
.content-slider:not(.content-slider--multi) .content-slider__slide {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* Uebergang: Fade (Standard) */
.content-slider__slide[data-transition="fade"] {
    transition: opacity 0.8s ease-in-out;
}
/* Uebergang: Dissolve (langsamer) */
.content-slider__slide[data-transition="dissolve"] {
    transition: opacity 1.4s ease-in-out;
}
/* Uebergang: Wischen (Slide) */
.content-slider__slide[data-transition="slide"] {
    transition: opacity 0.4s ease, transform 0.7s ease-in-out;
    transform: translateX(100%);
}
.content-slider__slide[data-transition="slide"].content-slider__slide--active {
    transform: translateX(0);
}
.content-slider__slide[data-transition="slide"].content-slider__slide--exit {
    transform: translateX(-100%);
    opacity: 0;
}

/* Aktiver Slide */
.content-slider__slide--active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Dark-Overlay deaktiviert — Originalbild soll unverfaelscht dargestellt werden */

/* Panel-Positionierung */
.content-slider__panel {
    position: absolute;
    left: 0; right: 0;
    z-index: 5;
    padding: 2rem;
}
.content-slider__panel--top { top: 0; }
.content-slider__panel--center { top: 50%; transform: translateY(-50%); }
.content-slider__panel--bottom { bottom: 0; }

/* Panel-Transitions */
.content-slider__panel[data-panel-transition="fade"] {
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}
.content-slider__slide--active .content-slider__panel[data-panel-transition="fade"] {
    opacity: 1;
}

.content-slider__panel[data-panel-transition="slide-in"] {
    opacity: 0;
    transition: transform 0.6s ease 0.3s, opacity 0.5s ease 0.3s;
}
.content-slider__panel--top[data-panel-transition="slide-in"] { transform: translateY(-30px); }
.content-slider__panel--center[data-panel-transition="slide-in"] { transform: translateY(calc(-50% + 30px)); }
.content-slider__panel--bottom[data-panel-transition="slide-in"] { transform: translateY(30px); }

.content-slider__slide--active .content-slider__panel--top[data-panel-transition="slide-in"] { transform: translateY(0); opacity: 1; }
.content-slider__slide--active .content-slider__panel--center[data-panel-transition="slide-in"] { transform: translateY(-50%); opacity: 1; }
.content-slider__slide--active .content-slider__panel--bottom[data-panel-transition="slide-in"] { transform: translateY(0); opacity: 1; }

/* "appear" — sofort sichtbar */
.content-slider__panel[data-panel-transition="appear"] {
    opacity: 1;
}

/* Grid-Layout im Panel */
.content-slider__grid {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: repeat(5, minmax(0, auto));
    gap: 0;
    max-width: 1200px;
    align-items: stretch;
}

/* Zell-Inhalte */
.content-slider__cell {
    position: relative;
    z-index: 2;
    min-height: 0;
}
.content-slider__cell--image {
    overflow: hidden;
    position: relative;
    min-width: 200px;
    min-height: 80px;
}
.content-slider__cell--image .slider-cell-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Text */
.slider-text { margin: 0; line-height: 1.25; }
.slider-text--h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.1; }
.slider-text--h2 { font-size: 2rem; font-weight: 600; line-height: 1.1; }
.slider-text--h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.slider-text--normal { font-size: 1.1rem; font-weight: 400; }

.slider-text a { color: inherit; text-decoration: underline; }

/* Buttons */
.slider-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.2s, transform 0.15s;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.slider-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.slider-btn--cta {
    background: #E8811A;
    color: #fff;
    border-color: #E8811A;
}
.slider-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.slider-btn--outline:hover { border-color: #fff; }

/* Bilder in Grid-Zellen */
.slider-cell-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Navigations-Dots */
.content-slider__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.content-slider__dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, border-color 0.25s;
}
.content-slider__dot:hover { border-color: #fff; }
.content-slider__dot--active {
    background: #fff;
    border-color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .content-slider { min-height: calc(var(--slider-h, 420px) * 0.86); }
    .content-slider__panel { padding: 1.5rem; }
    .slider-text--h1 { font-size: 2.2rem; }
    .slider-text--h2 { font-size: 1.6rem; }
}
@media (max-width: 768px) {
    .content-slider { min-height: calc(var(--slider-h, 420px) * 0.71); border-radius: 0; }
    .content-slider__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .content-slider__cell { margin-top: 0; }
    .content-slider__cell:first-child { margin-top: 0; }
    .content-slider__panel { padding: 1rem; }
    .slider-text--h1 { font-size: 1.8rem; }
    .slider-text--h2 { font-size: 1.4rem; }
    .slider-text--h3 { font-size: 1.2rem; }
    .slider-btn { padding: 7px 16px; font-size: 0.8rem; }
    .content-slider__dots { bottom: 10px; gap: 8px; }
    .content-slider__dot { width: 9px; height: 9px; }
}
@media (max-width: 480px) {
    .content-slider { min-height: calc(var(--slider-h, 420px) * 0.62); }
    .slider-text--h1 { font-size: 1.5rem; }
    .slider-text--h2 { font-size: 1.2rem; }
    .slider-btn { padding: 6px 14px; font-size: 0.78rem; }
}
