/* ============================================
   FOAMA REDESIGN STYLES (styles-redesign.css)
   ============================================
   Two-audience redesign (Betriebe / Gemeinden & Regionen).
   Loaded AFTER /styles.css on redesign pages only.
   Contains: tokens (mirrors styles-refactored.css) and the
   new components from REDESIGN-PLAN.md sections 4.2, 4.5-4.7:
   rotating hero, audience cards, offer matrix, key facts,
   challenge-response rows, stage cards, icon system (V5),
   add-on band, case cards, FAQ accordion, phase chips,
   partner grid, logo carousel (moved from inline styles).
   ============================================ */

:root {
    /* ===== BRAND COLORS (mirrors styles-refactored.css) ===== */
    --color-brand-blue-500: #359BC3;
    --color-brand-blue-400: #4FADCF;
    --color-brand-blue-600: #257998;
    --color-brand-red-500: #d9727a;
    --color-brand-red-600: #c65d66;
    --color-brand-green-500: #46c089;
    --color-brand-green-600: #008957;
    --color-text-dark: #2d3748;
    --color-text-medium: #4a5568;
    --color-text-light: #718096;
    --color-text-muted: #a0aec0;
    --color-bg-secondary: #f7fafc;
    --color-border-primary: #e2e8f0;
    --color-surface-blue: #f0f9ff;
    --color-surface-green: #f0fdfa;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 15px;
}

/* ============================================
   SECTION RHYTHM
   ============================================ */

.rd-section {
    padding: 4rem 0;
}

.rd-section--alt {
    background: var(--color-bg-secondary);
}

.rd-section__title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.rd-section__sub {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-medium);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ============================================
   HERO WITH ROTATING WORDS (4.5)
   ============================================ */

.rd-hero {
    padding: 9rem 0 4rem;
    color: white;
    background: linear-gradient(135deg, var(--color-brand-blue-500) 0%, var(--color-brand-blue-400) 100%);
}

.rd-hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.rd-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.rd-hero__sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
    max-width: 34rem;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.rd-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.rotating-word {
    display: inline-block;
    white-space: nowrap;
    transition: opacity 0.35s ease, transform 0.35s ease;
    will-change: opacity, transform;
    vertical-align: bottom;
}

.rotating-word.rw-fade {
    opacity: 0;
    transform: translateY(6px);
}

/* Dashboard visual (V1): frameless card; start image until the video can play */
.rd-hero__visual {
    background: white;
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.rd-hero__visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder until real dashboard screenshots arrive */
.rd-placeholder {
    border: 2px dashed var(--color-border-primary);
    border-radius: var(--radius-lg);
    background: white;
    color: var(--color-text-light);
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rd-placeholder strong {
    color: var(--color-text-medium);
    display: block;
    margin-bottom: 0.35rem;
}

/* ============================================
   AUDIENCE SWITCHER CHIP (4.4)
   ============================================ */

.switcher-chip {
    display: flex;
    justify-content: center;
    padding: 1.75rem 1rem 0;
}

.switcher-chip a {
    display: inline-block;
    background: var(--color-surface-blue);
    color: var(--color-brand-blue-600);
    border: 1px solid rgba(53, 155, 195, 0.35);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.switcher-chip a:hover {
    background: #e0f2fb;
}

/* ============================================
   AUDIENCE SPLIT CARDS (home)
   ============================================ */

.audience-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.audience-card {
    background: white;
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

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

.audience-card--betriebe:hover {
    border-color: var(--color-brand-blue-500);
}

.audience-card--gemeinden:hover {
    border-color: var(--color-brand-green-500);
}

.audience-card h3 {
    font-size: 1.45rem;
    color: var(--color-text-dark);
    margin: 1.25rem 0 0.75rem;
}

.audience-card p {
    color: var(--color-text-medium);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.audience-card .audience-card__link {
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.audience-card--betriebe .audience-card__link { color: var(--color-brand-blue-600); }
.audience-card--gemeinden .audience-card__link { color: var(--color-brand-green-600); }

/* ============================================
   OFFER MATRIX (home): low -> high
   ============================================ */

.offer-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.offer-matrix .stage-card {
    position: relative;
}

.stage-card {
    background: white;
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    transition: all 0.3s ease;
}

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

.stage-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.stage-card h3 {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.stage-card p {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stage-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    border-top: 1px solid var(--color-border-primary);
    padding-top: 1rem;
}

.stage-card ul li {
    color: var(--color-text-medium);
    font-size: 0.92rem;
    padding: 0.25rem 0 0.25rem 1.4rem;
    position: relative;
    line-height: 1.5;
}

.stage-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
}

.stage-card ul li::before { color: var(--color-brand-green-600); }

.stage-card--betriebe ul li::before { color: var(--color-brand-blue-500); }

/* ============================================
   KEY FACTS BAND (V6 numbers)
   ============================================ */

.rd-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.rd-fact {
    text-align: center;
    padding: 1.5rem;
}

.rd-fact__number {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-brand-blue-500), var(--color-brand-blue-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rd-fact--green .rd-fact__number {
    background: linear-gradient(135deg, var(--color-brand-green-600), var(--color-brand-green-500));
    -webkit-background-clip: text;
    background-clip: text;
}

.rd-fact__label {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
}

.rd-facts__sources {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================
   CHALLENGE-RESPONSE ROWS (with V4 line bg)
   ============================================ */

.challenge-rows {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.challenge-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    position: relative;
}

.challenge-row__q {
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--color-border-primary);
}

.challenge-row__q strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.challenge-row__q p {
    color: var(--color-text-dark);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.challenge-row__a {
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    background: white;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.challenge-row__a strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.challenge-row__a p {
    color: var(--color-text-medium);
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
}

.challenge-row--blue .challenge-row__a { border-left: 4px solid var(--color-brand-blue-500); }
.challenge-row--blue .challenge-row__a strong { color: var(--color-brand-blue-600); }

.challenge-row--green .challenge-row__a { border-left: 4px solid var(--color-brand-green-500); }
.challenge-row--green .challenge-row__a strong { color: var(--color-brand-green-600); }

/* V4: subtle route-line background for challenge sections */
.rd-section--routes {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='200' viewBox='0 0 600 200'%3E%3Cpath d='M-20 150 C 120 40, 240 180, 380 90 S 560 30, 640 80' fill='none' stroke='%23359BC3' stroke-opacity='0.07' stroke-width='2'/%3E%3Cpath d='M-20 60 C 150 160, 300 20, 430 120 S 600 150, 640 60' fill='none' stroke='%23359BC3' stroke-opacity='0.05' stroke-width='2'/%3E%3C/svg%3E") repeat,
        var(--color-bg-secondary);
}

.rd-section--routes-green {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='200' viewBox='0 0 600 200'%3E%3Cpath d='M-20 150 C 120 40, 240 180, 380 90 S 560 30, 640 80' fill='none' stroke='%2346c089' stroke-opacity='0.08' stroke-width='2'/%3E%3Cpath d='M-20 60 C 150 160, 300 20, 430 120 S 600 150, 640 60' fill='none' stroke='%2346c089' stroke-opacity='0.06' stroke-width='2'/%3E%3C/svg%3E") repeat,
        var(--color-bg-secondary);
}

/* ============================================
   ICON SYSTEM (V5): line icons in circles
   ============================================ */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.icon-card {
    background: white;
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.icon-card h3 {
    font-size: 1.05rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.icon-card p {
    color: var(--color-text-medium);
    font-size: 0.93rem;
    line-height: 1.6;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--color-surface-blue);
}

.icon-circle svg {
    width: 26px;
    height: 26px;
    stroke: var(--color-brand-blue-500);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-circle--green {
    background: var(--color-surface-green);
}

.icon-circle--green svg {
    stroke: var(--color-brand-green-600);
}

/* ============================================
   ADD-ON BAND (CSRD / Scope 3)
   ============================================ */

.add-on-band {
    background: linear-gradient(135deg, var(--color-brand-blue-500) 0%, var(--color-brand-blue-400) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

.add-on-band svg {
    width: 34px;
    height: 34px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.add-on-band strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.add-on-band p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
}

.add-on-band a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
    margin-left: auto;
}

/* ============================================
   CASE CARDS (with quote)
   ============================================ */

.case-card {
    background: white;
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: var(--shadow-lg);
}

.case-card__img {
    position: relative;
    min-height: 260px;
}

.case-card__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card__body {
    padding: 2rem;
}

.case-card__client {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.case-card__client img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.case-card__client span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.case-card h3 {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.case-card p {
    color: var(--color-text-medium);
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-quote {
    border-left: 3px solid var(--color-brand-blue-400);
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: var(--color-text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.case-quote cite {
    display: block;
    font-style: normal;
    font-weight: 700;
    color: var(--color-text-medium);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.case-quote--green {
    border-left-color: var(--color-brand-green-500);
}

.case-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1.25rem 0;
}

.case-nums div strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-brand-blue-600);
    line-height: 1.1;
}

.case-nums--green div strong {
    color: var(--color-brand-green-600);
}

.case-nums div span {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.3;
    display: block;
    max-width: 180px;
}

.case-card__link {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
}

.case-card--betriebe .case-card__link { color: var(--color-brand-blue-600); }
.case-card--gemeinden .case-card__link { color: var(--color-brand-green-600); }

/* ============================================
   PHASE CHIPS (Gemeinden: Ablauf in Kürze)
   ============================================ */

.phase-chips {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.phase-chip {
    background: white;
    border: 1px solid var(--color-border-primary);
    border-top: 4px solid var(--color-brand-green-500);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    flex: 1 1 240px;
    max-width: 320px;
}

.phase-chip strong {
    display: block;
    font-size: 1.05rem;
    color: var(--color-text-dark);
    margin-bottom: 0.35rem;
}

.phase-chip span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-brand-green-600);
    display: block;
    margin-bottom: 0.6rem;
}

.phase-chip p {
    font-size: 0.92rem;
    color: var(--color-text-medium);
    line-height: 1.55;
    margin: 0;
}

/* ============================================
   WEEK TIMELINE (Foama-Erhebung, W1-W5)
   ============================================ */

.wk-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.wk-timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-brand-blue-500), var(--color-brand-blue-400));
}

.wk-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1rem 0;
}

.wk-item__num {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: white;
    border: 3px solid var(--color-brand-blue-500);
    color: var(--color-brand-blue-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
}

.wk-item__content {
    flex: 1;
    background: white;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-primary);
}

.wk-item__content h4 {
    color: var(--color-text-dark);
    margin-bottom: 0.35rem;
    font-size: 1.02rem;
}

.wk-item__content p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.55;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item2 {
    background: white;
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item2 button {
    all: unset;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 1rem;
    font-family: inherit;
}

.faq-item2 button:hover {
    color: var(--color-brand-blue-600);
}

.faq-item2 button .faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-blue-500);
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item2.open button .faq-icon {
    transform: rotate(45deg);
}

.faq-item2 .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item2 .faq-a p {
    padding: 0 1.35rem 1.1rem;
    margin: 0;
    color: var(--color-text-medium);
    font-size: 0.96rem;
    line-height: 1.65;
}

/* ============================================
   LOGO CAROUSEL (moved from inline styles on old index)
   ============================================ */

.logo-carousel {
    background: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border-primary);
}

.logo-carousel__label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.customer-logos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.customer-logos .slick-slide {
    margin: 0 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.customer-logos .slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.customer-logos .slick-slide img,
.customer-logos .slide img {
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    width: auto !important;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    object-fit: contain;
}

.customer-logos .slick-slide img:hover,
.customer-logos .slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   PARTNER GRID (Über Foama)
   ============================================ */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
}

.partner-grid .partner-cell {
    background: white;
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.partner-grid img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.3s ease;
}

.partner-grid .partner-cell:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   FEATURE PROSE (Gemeinden "Ihre Situation")
   ============================================ */

.rd-prose {
    max-width: 720px;
    margin: 0 auto;
}

.rd-prose p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

/* Notice box (Formate-Hinweis Gemeinden) */
.rd-note {
    background: var(--color-surface-green);
    border-left: 4px solid var(--color-brand-green-500);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    max-width: 800px;
    margin: 2rem auto 0;
    color: var(--color-text-medium);
    font-size: 0.96rem;
    line-height: 1.6;
}

.rd-note a {
    color: var(--color-brand-green-600);
    font-weight: 600;
}

/* Read-more list (Weiterlesen sections) */
.read-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.read-list a {
    display: block;
    background: white;
    border: 1px solid var(--color-border-primary);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    line-height: 1.45;
    transition: all 0.2s ease;
}

.read-list a:hover {
    border-color: var(--color-brand-blue-500);
    color: var(--color-brand-blue-600);
}

.read-list a span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-top: 0.4rem;
}

/* ============================================
   RESPONSIVE (4.7 mobile spec)
   ============================================ */

@media (max-width: 900px) {
    .rd-hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rd-hero__visual {
        max-width: 480px;
    }

    .audience-cards,
    .offer-matrix,
    .icon-grid,
    .read-list {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .rd-facts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .challenge-row {
        grid-template-columns: 1fr;
    }

    /* stacked: challenge above, answer below with accent edge (4.7) */
    .challenge-row__a::before {
        content: "";
        position: absolute;
        left: 50%;
        top: -1.5rem;
        width: 2px;
        height: 1.5rem;
        transform: translateX(-50%);
        background: var(--color-border-primary);
    }

    .challenge-row--blue .challenge-row__a::before { background: var(--color-brand-blue-500); }
    .challenge-row--green .challenge-row__a::before { background: var(--color-brand-green-500); }

    .case-card {
        grid-template-columns: 1fr;
    }

    .case-card__img {
        min-height: 200px;
    }
}

@media (max-width: 600px) {
    .rd-section {
        padding: 3rem 0;
    }

    .rd-hero {
        padding: 8rem 0 3rem;
    }

    .audience-cards,
    .offer-matrix,
    .icon-grid,
    .read-list {
        grid-template-columns: 1fr;
    }

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

    .phase-chip {
        max-width: 100%;
    }

    .rd-prose p {
        font-size: 1.05rem;
    }

    .add-on-band {
        padding: 1.35rem 1.25rem;
    }

    .add-on-band a {
        margin-left: 0;
    }
}

/* Reduced motion: rotation is disabled by JS; keep transitions calm */
@media (prefers-reduced-motion: reduce) {
    .rotating-word,
    .icon-card,
    .stage-card,
    .audience-card,
    .case-card,
    .faq-item2 .faq-a {
        transition: none !important;
    }
}

/* ============================================
   CONTACT MODAL: select styling (redesign pages)
   ============================================ */

.modal-content select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border-primary);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-dark);
    background: white;
    box-sizing: border-box;
}

/* ============================================
   FEEDBACK R1: header centering, chip offset, teaser, single cards
   ============================================ */

header nav {
    align-items: center;
}

header .nav-links {
    align-items: center;
    margin: 0 auto;
}

/* Switcher chip must clear the fixed header (~126px incl. logo) */
.switcher-chip {
    padding: 8.75rem 1rem 0;
}

/* Home project teaser: equal image heights, cards top-aligned */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
}

.teaser-grid .case-card__img {
    height: 220px;
    min-height: 0;
}

/* Single audience card section (no grid heading) */
.audience-cards--single {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

/* Hero dashboard video (auto-upgrades when /images/dashboard-hero.mp4 exists) */
.rd-hero__visual video {
    width: 100%;
    height: auto;
    display: block;
}

.modal-content textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border-primary);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-dark);
    background: white;
    box-sizing: border-box;
    resize: vertical;
}

/* ============================================
   FEEDBACK R2: centered facts, next-links, hero eyebrows & colors, 2x2 grid
   ============================================ */

.rd-facts {
    grid-template-columns: repeat(auto-fit, minmax(240px, 340px));
    justify-content: center;
}

.rd-next-link {
    text-align: center;
    margin-top: 2.5rem;
}

.rd-next-link a {
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}

.rd-next-link--betriebe a { color: var(--color-brand-blue-600); }
.rd-next-link--betriebe a:hover { text-decoration: underline; }
.rd-next-link--gemeinden a { color: var(--color-brand-green-600); }
.rd-next-link--gemeinden a:hover { text-decoration: underline; }

/* Audience eyebrow above the H1 on target pages */
.rd-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Distinct hero backgrounds per world */
.rd-hero--betriebe {
    background: linear-gradient(135deg, var(--color-brand-blue-600) 0%, var(--color-brand-blue-500) 100%);
}

.rd-hero--gemeinden {
    background: linear-gradient(135deg, var(--color-brand-green-600) 0%, var(--color-brand-green-500) 100%);
}

/* 2x2 grid variant (Ihre Situation, Betriebe) */
.icon-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
    .icon-grid--2x2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FEEDBACK R3: green gemeinden header, hero top spacing, partner links
   ============================================ */

.header--gemeinden {
    background: linear-gradient(135deg, var(--color-brand-green-600) 0%, var(--color-brand-green-500) 100%);
}

/* More breathing room between fixed header and hero content on desktop */
.rd-hero {
    padding: 10.5rem 0 4rem;
}

/* Partner cells as external links */
.partner-grid a.partner-cell {
    text-decoration: none;
}

.partner-grid a.partner-cell:hover {
    border-color: var(--color-brand-blue-500);
}

/* ============================================
   LOGO CAROUSEL SECTION (Über Foama / About):
   same background and spacing rhythm as the
   rd-section--alt partner section above it
   (4rem section padding, 1rem gap title->logos)
   ============================================ */

.logo-carousel-section {
    padding: 4rem 0;
}

.logo-carousel-section .rd-section__title {
    margin-bottom: 1rem;
}

.logo-carousel-section .customer-logos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
