/* ===========================================================================
   TAXI · SafeWheels
   Header, Navbar, Kontakt, Footer, Akkordion-Kopfzeilen, Tabs, Buttons und
   Rundungen wie auf der BA-Seite. Der Inhalt der Akkordions ist unverändert.

   Header, Kontakt, Footer und Akkordion-Kopfzeilen rechnen in px: Diese
   Seite schaltet ihre Basisgröße unter 1200px auf 55% bzw. 50%, rem-Werte
   wären dort kleiner als auf den anderen Seiten.

   Gliederung:
     1  Variablen & Reset
     2  Header & Navigation
     3  Typografie
     4  Intro & Tags
     5  Video-Showcase
     6  Akkordion
     7  Tabs
     8  Textbausteine & Karten
     9  Bildrahmen & Raster
    10  Text-Bild-Zeilen & Galerie
    11  Ideen-Zeile
    12  Iterations-Flow
    13  WCAG: Vorher/Nachher, Alarmwege, Prozess, Tabellen
    14  Lightbox
    15  Finales Konzept
    16  Meta-Zeile
    17  Kontakt & Footer
    18  Responsive
   =========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400;500;700&family=Bricolage+Grotesque:opsz,wght@12..96,400..800&display=swap");


/* ==========================================================================
   1. VARIABLEN & RESET
   ========================================================================== */

:root {
    /* Farben wie auf allen Seiten */
    --mt-paper: #F3F4FA;
    --mt-surface: #FFFFFF;
    --mt-ink: #16172E;
    --mt-ink-soft: #4A4C66;
    --mt-line: #D9DBEA;
    --mt-blue: #0004E0;
    --mt-on-blue: #FFFFFF;
    --mt-tint: #E4E5FF;
    --mt-band: #0004E0;
    --mt-on-band: #FFFFFF;

    --mt-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    --mt-body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;

    /* EIN Seitenrand für Header, Inhalt, Kontakt und Footer */
    --mt-page-x: clamp(20px, 6vw, 90px);
    --content-margin-left: var(--mt-page-x);
    --content-margin-right: var(--mt-page-x);

    /* Namen, die der Inhalt dieser Seite benutzt */
    --bg-color: var(--mt-paper);
    --text-color: #252525;
    --main-color: var(--mt-blue);
    --white-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --border: var(--mt-line);

    --color-background-primary: #ffffff;
    --color-background-secondary: #f5f5f3;
    --color-text-secondary: #6b6b67;
    --color-border-tertiary: var(--mt-line);

    --radius-md: 14px;
    --radius-lg: 24px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
}

.dark-mode {
    --mt-paper: #0B0C24;
    --mt-surface: #14163A;
    --mt-ink: #E8E9F7;
    --mt-ink-soft: #A9ABC9;
    --mt-line: #2A2D5A;
    --mt-blue: #2f34d4;
    --mt-on-blue: #0B0C24;
    --mt-tint: #1D2060;
    --mt-band: #2f34d4;

    --bg-color: var(--mt-paper);
    --text-color: var(--mt-ink);
    --main-color: var(--mt-blue);
    --white-color: var(--mt-surface);
    --border: var(--mt-line);
    --shadow-color: rgba(0, 0, 0, .5);
    --color-background-primary: var(--mt-surface);
    --color-background-secondary: var(--mt-tint);
    --color-text-secondary: var(--mt-ink-soft);
    --color-border-tertiary: var(--mt-line);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color .3s ease, color .3s ease;
}

a { text-decoration: none; }


/* ==========================================================================
   2. HEADER & NAVIGATION (identisch zu den anderen Seiten)
   ========================================================================== */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 76px;
    padding: 0 var(--mt-page-x);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: background-color .3s ease, box-shadow .3s ease;
}

.header.sticky {
    background: color-mix(in srgb, var(--mt-paper) 85%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--mt-line);
}

.logo {
    margin-right: auto;
    font-family: var(--mt-display);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.05em;
    color: var(--mt-blue);
}

#btn2,
#darkMode-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--mt-line);
    border-radius: 50%;
    background: transparent;
    color: var(--mt-ink);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

#btn2 { font-size: 22px; margin-right: -12px; }
#darkMode-icon { font-size: 20px; }

#btn2:hover { border-color: var(--mt-blue); color: var(--mt-blue); }
#darkMode-icon:hover { border-color: var(--mt-ink); }

#menu-icon {
    display: none;
    font-size: 32px;
    color: var(--mt-ink);
    background: transparent;
    cursor: pointer;
}

#pfeiloben { color: var(--mt-band); }

.navbar {
    display: flex;
    gap: 32px;
}

.navbar a {
    position: relative;
    padding: 4px 0;
    font-family: var(--mt-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--mt-ink);
    transition: color .2s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--mt-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.navbar a:hover::after,
.navbar a.active::after { transform: scaleX(1); }

.navbar a.active { color: var(--mt-blue); }

.lang-switch {
    display: flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--mt-line);
    border-radius: 999px;
}

.lang-switch .lang-option {
    padding: 9px 11px;
    border-radius: 999px;
    background: transparent;
    font-family: var(--mt-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--mt-ink-soft);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.lang-switch .lang-option:hover { color: var(--mt-ink); }

.lang-switch .lang-option.active {
    background: var(--mt-ink);
    color: var(--mt-paper);
}

.lang-switch .lang-sep { display: none; }


/* ==========================================================================
   3. TYPOGRAFIE
   ========================================================================== */

h1 {
    text-align: left;
    font-size: 4.7rem;
    color: var(--text-color);
    font-weight: 570;
    margin-bottom: 0.1rem;
}

h1 span,
h2 span { color: var(--main-color); }

h2 {
    text-align: left;
    font-size: 2.3rem;
    color: var(--text-color);
    font-weight: 700;
    margin-top: 3rem;
}

h3 {
    text-align: left;
    font-size: 2.3rem;
    color: var(--text-color);
    font-weight: 700;
    margin-top: 4.3rem;
    margin-bottom: 0.7rem;
}

h4 {
    text-align: left;
    font-size: 2.3rem;
    color: var(--text-color);
    font-weight: 700;
    margin-top: 1.3rem;
}

h5 {
    text-align: left;
    font-size: 2.3rem;
    color: var(--text-color);
    font-weight: 700;
    margin-top: 2.3rem;
    margin-bottom: 1rem;
}

h7 {
    text-align: left;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.text-highlight {
    background: color-mix(in srgb, var(--main-color) 10%, transparent);
    color: var(--text-color);
    padding: 0.01em;
    border-radius: 3px;
    font-weight: 400;
}

.placeholder-text { font-style: italic; }


/* ==========================================================================
   4. INTRO & TAGS
   ========================================================================== */

.projekt-titel-wrapper { width: 100%; }

.about-content p {
    font-size: 1.4rem;
    width: 100%;
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--text-color);
}

.projekt-tags-header {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 2.4rem;
}

/* Tools blau hinterlegt, Themen umrandet - wie auf der Startseite */
.tag {
    font-size: 1.1rem;
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--mt-tint);
    border: 1px solid transparent;
    color: var(--mt-blue);
}

.tag-highlight {
    background: transparent;
    border-color: var(--mt-line);
    color: var(--mt-ink-soft);
}

.intro-row {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    width: calc(100% - var(--content-margin-left) - var(--content-margin-right));
    margin: 17.4rem 0 17rem var(--content-margin-left);
}

.intro-text {
    flex: 0 0 51%;
    min-width: 0;
}

.intro-image {
    flex: 1;
    min-width: 0;
    align-self: stretch;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==========================================================================
   5. VIDEO-SHOWCASE (4 Screen-Recordings unter dem Intro)
   ========================================================================== */

.intro-videos {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3.5rem;
    width: calc(100% - var(--content-margin-left) - var(--content-margin-right));
    margin: 0 auto 8rem;
}

.intro-video {
    width: 160px;
    aspect-ratio: 9 / 19;
    object-fit: cover;
    border-radius: 23.7px;
    box-shadow: 0 0.2rem 0.6rem var(--shadow-color);
    display: block;
}


/* ==========================================================================
   6. AKKORDION
   Kopfzeile wie auf der BA-Seite, der Inhalt wie bisher.
   ========================================================================== */

.accordion-wrapper {
    width: calc(100% - var(--content-margin-left) - var(--content-margin-right));
    margin-top: 6rem;
    margin-left: var(--content-margin-left);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border: 1px solid var(--mt-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white-color);
    transition: border-color .25s ease;
}

.accordion-item:has(.accordion-header[aria-expanded="true"]) {
    border-color: var(--mt-blue);
}

.accordion-header {
    width: 100%;
    padding: 13px 23px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 23px;
    background: transparent;
    cursor: pointer;
    font-family: var(--mt-display);
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--mt-ink);
    text-align: left;
    transition: color .2s ease;
}

.accordion-header span { font-family: inherit; }

.accordion-header:hover,
.accordion-header[aria-expanded="true"] { color: var(--mt-blue); }

.accordion-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--mt-line);
    border-radius: 50%;
    font-size: 21px;
    font-style: normal;
    color: var(--text-color);
    transition: transform .35s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.accordion-header:hover .accordion-icon {
    border-color: var(--mt-blue);
    color: var(--mt-blue);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
    background: var(--mt-blue);
    border-color: var(--mt-blue);
    color: var(--mt-on-blue);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.8rem;
}

.accordion-body.open {
    max-height: 6000px;
    padding: 2rem 3rem;
    margin-top: -1.4rem;
}

.accordion-body p {
    font-size: 1.5rem;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0 0 0.1rem;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
}


/* ==========================================================================
   7. TABS als Pills
   ========================================================================== */

.konzept-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 1.7rem 0 1rem;
}

.konzept-tab {
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.8rem 1.4rem;
    border: 1px solid var(--mt-line);
    border-radius: 999px;
    background: transparent;
    color: var(--mt-ink-soft);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.konzept-tab:hover {
    border-color: var(--mt-blue);
    color: var(--mt-blue);
}

.konzept-tab.active,
.konzept-tab.active:hover {
    border-color: var(--mt-blue);
    background: var(--mt-blue);
    color: var(--mt-on-blue);
}

.konzept-panel { animation: fadeInPanel 0.25s ease; }

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}


/* ==========================================================================
   8. TEXTBAUSTEINE & KARTEN
   ========================================================================== */

.content-section { margin-bottom: 2.5rem; }

.section-body {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-top: 10rem;
}

.section-body-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-top: 1rem;
    display: block;
}

.Platz { margin-bottom: 0.7rem; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.content-card {
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
}

.content-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-card-title i {
    font-size: 16px;
    color: var(--main-color);
}

.content-card p {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.65;
}


/* ==========================================================================
   9. BILDRAHMEN & RASTER
   ========================================================================== */

.img-frame {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 0.1rem 0.3rem var(--shadow-color);
    cursor: zoom-in;
    transition: box-shadow 0.25s ease;
}

.img-frame:hover { box-shadow: 0 0.4rem 1rem var(--shadow-color); }

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.img-frame:hover img { transform: scale(1.05); }

.aspect-landscape { aspect-ratio: 16 / 9; margin-bottom: 1.5rem; }
.aspect-phone     { aspect-ratio: 9 / 20; }
.aspect-idea      { aspect-ratio: 4.3 / 4; margin-bottom: 1rem; }

.img-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

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


/* ==========================================================================
   10. TEXT-BILD-ZEILEN & GALERIE
   ========================================================================== */

.text-image-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.text-image-row-boxed {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 0.5rem;
}

.text-image-row .text-col          { flex: 0 1 120px; min-width: 664px; }
.text-image-row .text-col-showcase { flex: 1 1 380px; min-width: 420px; }
.text-image-row .text-col2         { flex: 0 1 120px; min-width: 1200px; }

.text-image-row .image-col {
    flex: 1 1 100px;   /* stand vorher als "1 1 1 100px" da - ungültig, wurde ignoriert */
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
    align-items: flex-start;
}

.image-col .img-frame.aspect-phone {
    flex: 1 1 150px;
    max-width: 170px;
    max-height: 252px;
}

.image-col.image-col-compact .img-frame.aspect-phone {
    flex: 0 0 108px;
    max-width: 108px;
    width: 108px;
}

.mini-gallery2 {
    position: relative;
    flex: 1 1 480px;
    max-width: 700px;
    aspect-ratio: 10 / 5.5;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-left: 1rem;
}

.mini-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.mini-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.mini-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(22, 23, 46, .45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color .2s ease;
}

.mini-gallery-arrow:hover { background: var(--mt-blue); }

.mini-gallery-arrow-prev { left: 1rem; }
.mini-gallery-arrow-next { right: 1rem; }


/* ==========================================================================
   11. IDEEN-ZEILE (Bild + Text)
   ========================================================================== */

.idea-intro-row {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.idea-intro-row .idea-text {
    flex: 1 1 380px;
    min-width: 260px;
}

.idea-intro-row .idea-text2 {
    flex: 1 1 380px;
    min-width: 260px;
    max-width: 920px;
    margin-right: 5rem;
}

.idea-intro-row .idea-text h3,
.idea-intro-row .idea-text2 h3 { margin-top: 0; }

.idea-intro-row .idea-image {
    flex: 0 0 200px;
    max-width: 200px;
    margin-top: 3rem;
}

.idea-intro-row .idea-image .img-frame { width: 100%; }

.idea-image-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
}

.idea-image-row .idea-image {
    flex: 1 1 0;
    max-width: none;
    margin-top: 0;
}

/* Bild rechts, vom Text umflossen */
.idea-intro-row--wrap { display: block; }

.idea-intro-row--wrap::after {
    content: "";
    display: table;
    clear: both;
}

.idea-intro-row--wrap .idea-image {
    float: right;
    width: 200px;
    max-width: 200px;
    flex: none;
    margin: 3.4rem 0 1.5rem 2.5rem;
}

.idea-intro-row--wrap .idea-text {
    flex: none;
    min-width: 0;
}


/* ==========================================================================
   12. ITERATIONS-FLOW (Problem → Lösung)
   ========================================================================== */

.flow-rows {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
    --img-w: 170px;
    --arrow-w: 64px;
    --slot-gap: 1rem;
}

.flow-row-full {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.flow-text {
    flex: 1 1 auto;
    min-width: 220px;
    max-width: 470px;
}

.flow-segment {
    display: grid;
    grid-template-columns: var(--img-w) var(--arrow-w) var(--img-w) var(--arrow-w) var(--img-w);
    align-items: center;
    column-gap: var(--slot-gap);
    width: calc(3 * var(--img-w) + 2 * var(--arrow-w) + 4 * var(--slot-gap));
    flex: 0 0 auto;
    margin-left: auto;
}

.flow-segment .img-frame.aspect-phone {
    width: var(--img-w);
    min-width: var(--img-w);
    max-width: var(--img-w);
}

.flow-arrow {
    font-size: 4rem;
    color: var(--main-color);
    line-height: 1.4;
    justify-self: center;
}

.flow-plus {
    font-size: 3.4rem;
    color: var(--main-color);
    line-height: 1;
    justify-self: center;
}


/* ==========================================================================
   13. WCAG
   ========================================================================== */

/* --- Vorher/Nachher-Bereiche --- */

.vn-section,
.vn-table-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.vn-section {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.vn-table-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vn-table-section .wcag-table-wrapper { margin-top: 0; }

/* Screens paarweise (Vorher → Nachher), so viele wie in eine Zeile passen.
   Ein <br> im HTML erzwingt einen Umbruch, zwei <br> zusätzlich eine Lücke. */
.vn-grid-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 4.3rem;
    margin: 1.3rem 0 -1rem;
}

.vn-grid-row br {
    flex: 0 0 100%;
    height: 0;
    margin: 0;
}

.vn-pair,
.vn-pair2 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 0 0 auto;
}

.vn-pair2 { margin-left: -4rem; }

.vn-pair .img-frame.aspect-phone,
.vn-pair2 .img-frame.aspect-phone {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
}

.vn-arrow {
    font-size: 3.6rem;
    color: var(--main-color);
    line-height: 1;
    flex: 0 0 auto;
}

.wcag-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    background: var(--main-color);
    color: var(--white-color);
}

.wcag-badge-sm {
    font-size: 1rem;
    padding: 0.25rem 0.8rem;
    white-space: nowrap;
}

/* --- Alarmierungswege --- */

.alarm-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 4rem 0 7rem;
}

.alarm-card {
    background: var(--color-background-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
}

.alarm-card-icon {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--main-color) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.alarm-card-icon i {
    font-size: 2.2rem;
    color: var(--main-color);
}

.alarm-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.alarm-trigger-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.alarm-trigger { font-weight: 600; }

.alarm-trigger-arrow {
    font-size: 1.6rem;
    color: var(--main-color);
}

.alarm-target { color: var(--color-text-secondary); }

.alarm-card-note {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* --- Prozess: Annotation-Galerien --- */

.process-gallery,
.process-gallery2,
.process-gallery3 {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.process-gallery  { margin-top: 2rem; }
.process-gallery2,
.process-gallery3 { margin-top: 3rem; }

.process-gallery-item {
    flex: 1 1 340px;
    max-width: 390px;
    aspect-ratio: 5 / 4;
    margin-bottom: 0;
}

.process-gallery-4 .process-gallery-item {
    flex: 1 1 220px;
    max-width: 290px;
}

.process-gallery2-item,
.process-gallery3-item {
    flex: 1 1 380px;
    max-width: 700px;
    margin-bottom: 0;
}

.process-gallery2-item { aspect-ratio: 4 / 3.55; }
.process-gallery3-item { aspect-ratio: 4 / 5.45; }

/* --- Prozess: Zeitleiste --- */

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
}

.process-timeline::before {
    content: "";
    position: absolute;
    top: calc(1rem + 2.8rem);
    left: 6%;
    right: 6%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.process-station {
    position: relative;
    z-index: 1;
    flex: 1 1 150px;
    max-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}

.process-station-icon {
    flex: 0 0 5.6rem;
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 50%;
    background: var(--white-color);
    border: 2px solid var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-station-icon i {
    font-size: 2.3rem;
    color: var(--main-color);
}

.process-station-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0.7rem;
}

.process-station-text {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* --- Work-in-Progress-Hinweis --- */

.wip-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: color-mix(in srgb, var(--main-color) 8%, transparent);
    border: 1px dashed var(--main-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.wip-banner-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.wip-banner-text {
    font-size: 1.3rem;
    color: var(--text-color);
    line-height: 1.5;
    font-style: italic;
}

/* --- Tabellen --- */

.wcag-table-wrapper {
    margin-top: 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.wcag-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
}

.wcag-table th {
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    color: var(--main-color);
    background: var(--color-background-secondary);
    padding: 1rem 1.25rem;
    white-space: nowrap;
}

.wcag-table td {
    padding: 1rem 1.25rem;
    color: var(--text-color);
    line-height: 1.6;
    vertical-align: top;
    border-top: 1px solid var(--border);
}

.wcag-table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--color-background-secondary) 55%, transparent);
}

/* Schweregrad-Gruppen */
.severity-label {
    display: inline-block;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
}

.severity-label.severity-kritisch      { color: #c0392b; }
.severity-label.severity-schwerwiegend { color: #d9762f; }
.severity-label.severity-moderat       { color: #ab8615; }
.severity-label.severity-gering        { color: #3d8b5f; }

.wcag-table-severity tr.severity-heading-row td {
    padding-top: 1rem;
    padding-bottom: 0.6rem;
    border-top: 3px solid var(--border) !important;
}

.wcag-table-severity tr.severity-row-kritisch      { background: rgba(192, 57, 43, 0.08) !important; }
.wcag-table-severity tr.severity-row-schwerwiegend { background: rgba(217, 118, 47, 0.08) !important; }
.wcag-table-severity tr.severity-row-moderat       { background: rgba(201, 162, 39, 0.1) !important; }
.wcag-table-severity tr.severity-row-gering        { background: rgba(61, 139, 95, 0.08) !important; }


/* ==========================================================================
   14. LIGHTBOX
   ========================================================================== */

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 36, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.lightbox-overlay.active { display: flex; }

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2.2rem;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--mt-blue); }

.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev  { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 2rem; top: 50%; transform: translateY(-50%); }

body.lightbox-open {
    position: fixed;
    left: 0;
    width: 100%;
    overflow: hidden;
}


/* ==========================================================================
   15. FINALES KONZEPT (Onboarding-Galerie + Videos)
   ========================================================================== */

.onboarding-gallery {
    display: flex;
    gap: 4.7rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}

.onboarding-gallery .img-frame {
    flex: 1 1 0;
    max-width: 19rem;
    min-width: 19rem;
}

.final-concept-caption {
    font-size: 35px;
    color: var(--text-color);
    line-height: 1.75;
    width: 100%;
    margin: 10rem 0;
    text-align: left;
}

.final-concept-video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    gap: 5rem;
    margin: -3rem 0 4rem;
}

.final-concept-video-cell {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.final-concept-video-item {
    position: relative;
    aspect-ratio: 9 / 19;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    margin-top: 3.5rem;
}

.final-concept-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.final-concept-video-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.6rem;
    z-index: 2;
}

.final-concept-video-btn {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.final-concept-video-btn:hover { background: var(--mt-blue); }

.final-concept-video-caption {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.45;
    text-align: left;
}


/* ==========================================================================
   16. META-ZEILE (wie auf der BA-Seite)
   ========================================================================== */

.meta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--mt-line);
    border: 1px solid var(--mt-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: calc(100% - var(--content-margin-left) - var(--content-margin-right));
    margin: 7rem 0 7rem var(--content-margin-left);
}

.meta-item {
    min-width: 0;
    padding: 14px 20px;
    background: var(--mt-surface);
}

.meta-label {
    margin-bottom: 4px;
    font-family: var(--mt-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--mt-blue);
}

.meta-value {
    font-family: var(--mt-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--mt-ink);
}


/* ==========================================================================
   17. KONTAKT & FOOTER (wie auf der BA-Seite)
   ========================================================================== */

.contact {
    margin-top: 240px;
    padding: 120px var(--mt-page-x) 100px;
    border-radius: 40px 40px 0 0;
    background: var(--mt-band);
    color: var(--mt-on-band);
}

.contact .contact-heading {
    margin: 0 0 32px;
    font-family: var(--mt-display);
    font-weight: 700;
    font-size: clamp(40px, 5.5vw, 64px);
    line-height: 1;
    letter-spacing: -0.035em;
    color: inherit;
}

.contact .contact-heading span { color: inherit; }

.contact-mail {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(0.7rem, 1.7vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    opacity: .85;
    transition: opacity .2s ease;
}

.contact-mail:hover { opacity: 1; }

.contact .contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 36px;
    margin-top: 40px;
}

.contact .contact-meta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mt-body);
    font-size: 18px;
    color: inherit;
    opacity: .85;
    transition: opacity .2s ease;
}

.contact .contact-meta a:hover { opacity: 1; }
.contact .contact-meta i { font-size: 24px; color: inherit; }

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px var(--mt-page-x);
    background: var(--mt-band);
    border-top: 1px solid color-mix(in srgb, var(--mt-on-band) 20%, transparent);
}

.footer-text p {
    font-family: var(--mt-body);
    font-size: 14px;
    color: var(--mt-on-band);
}

.footer-iconTop a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mt-on-band);
    transition: transform .25s ease;
}

.footer-iconTop a:hover { transform: translateY(-3px); }

.footer-iconTop a i {
    font-size: 22px;
    color: var(--mt-band);
}


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

/* --- Basisgröße (wie bisher) --- */

@media (max-width: 1200px) { html { font-size: 55%; } }
@media (max-width: 450px)  { html { font-size: 50%; } }


/* --- Text-Bild-Zeilen und Flow ab 1140px ---
   Die festen Mindestbreiten der Textspalten werden aufgehoben, damit der
   Text schmaler wird statt aus dem Kasten zu laufen. Der Flow mit seiner
   festen Breite von rund 700px bricht schon hier auf ein flexibles Layout um. */

@media (max-width: 1140px) {

    .text-image-row .text-col,
    .text-image-row .text-col2,
    .text-image-row .text-col-showcase {
        min-width: 0;
        flex: 1 1 220px;
    }

    .image-col.image-col-compact .img-frame.aspect-phone {
        flex: 0 0 92px;
        max-width: 92px;
        width: 92px;
    }

    .flow-row-full {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-text {
        max-width: 100%;
        min-width: 0;
    }

    .flow-segment {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .flow-segment .img-frame.aspect-phone {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }
}


/* --- Intro ab 1024px: Bild direkt unter die Überschrift --- */

@media (max-width: 1024px) {

    .intro-row {
        flex-direction: column;
        gap: 2rem;
    }

    .intro-text { display: contents; }

    .intro-row .projekt-titel-wrapper { order: 1; }
    .intro-row .intro-image           { order: 2; width: 100%; }
    .intro-row .about-content         { order: 3; }
    .intro-row .projekt-tags-header   { order: 4; margin-top: 0; }
}


/* --- Vorher/Nachher und Videos ab 1000px --- */

@media (max-width: 1000px) {

    .vn-grid-row { gap: 1.6rem; }

    .vn-pair .img-frame.aspect-phone,
    .vn-pair2 .img-frame.aspect-phone {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
    }

    .vn-arrow { font-size: 3rem; }

    /* steht .vn-pair2 in einer eigenen Zeile, würde der negative Rand
       ihn über den Kasten hinausziehen */
    .vn-pair2 { margin-left: 0; }

    .final-concept-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}


/* --- Tabellen mit 5 Spalten ab 975px: jede Zeile wird eine Karte --- */

@media (max-width: 975px) {

    .wcag-table-wrapper:has(.wcag-table-severity) {
        overflow-x: visible;
        border: none;
        border-radius: 0;
    }

    .wcag-table-severity,
    .wcag-table-severity tbody {
        display: block;
        width: 100%;
    }

    .wcag-table-severity thead { display: none; }

    .wcag-table-severity tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 1.2rem 1.4rem;
        margin-bottom: 1rem;
    }

    .wcag-table-severity tbody td {
        display: block;
        border-top: none;
        padding: 0.5rem 0;
    }

    .wcag-table-severity tbody td::before {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03rem;
        color: var(--main-color);
        margin-bottom: 0.2rem;
    }

    .wcag-table-severity tbody td:nth-child(1)::before { content: "WCAG-Kriterium"; }
    .wcag-table-severity tbody td:nth-child(2)::before { content: "Thema"; }
    .wcag-table-severity tbody td:nth-child(3)::before { content: "Problem"; }
    .wcag-table-severity tbody td:nth-child(4)::before { content: "Nutzer:innengruppe"; }
    .wcag-table-severity tbody td:nth-child(5)::before { content: "Lösung"; }

    .wcag-table-severity tbody tr.severity-heading-row {
        border: none;
        border-radius: 0;
        padding: 1.8rem 0 0.2rem;
        margin-bottom: 0;
        background: transparent !important;
    }

    .wcag-table-severity tbody tr.severity-heading-row td {
        padding: 0;
        border-top: none !important;
    }

    .wcag-table-severity tbody tr.severity-heading-row td::before { content: none; }
}


/* --- Annotation-Galerie (3 Bilder) ab 941px untereinander --- */

@media (max-width: 941px) {
    .process-gallery:not(.process-gallery-4) .process-gallery-item {
        flex: 1 1 100%;
        max-width: none;
    }
}


/* --- Tablet: Sandwich-Menü, Galerien, Zeitleiste ab 900px --- */

@media (max-width: 900px) {

    .header { gap: 12px; }

    #btn2 { margin-right: 0; }

    #menu-icon { display: block; }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px var(--mt-page-x) 24px;
        background: var(--mt-paper);
        border-bottom: 1px solid var(--mt-line);
        box-shadow: 0 12px 24px rgba(22, 23, 46, .08);
    }

    .navbar.active { display: flex; }

    .navbar a {
        display: block;
        padding: 14px 0;
        font-family: var(--mt-display);
        font-size: 24px;
        font-weight: 600;
    }

    .navbar a::after { display: none; }

    .intro-videos { gap: 2rem; }
    .intro-video  { width: 130px; }

    /* Farbpaletten-Galerie unter den Text, linksbündig */
    .text-image-row:has(.mini-gallery2) {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-image-row:has(.mini-gallery2) .text-col-showcase {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    .text-image-row:has(.mini-gallery2) .text-col-showcase .section-body {
        font-size: 14px;
    }

    .mini-gallery2 {
        flex: 0 1 100%;
        width: 100%;
        max-width: 420px;
        margin: 0;
    }

    .alarm-overview { grid-template-columns: 1fr; }

    /* Zeitleiste senkrecht, Linie läuft hinter den Icons */
    .process-timeline {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-timeline::before {
        top: 2.8rem;
        bottom: 2.8rem;
        left: 2.8rem;
        right: auto;
        width: 2px;
        height: auto;
        transform: translateX(-1px);
    }

    .process-station {
        flex-direction: row;
        width: 100%;
        max-width: none;
        text-align: left;
        align-items: center;
        gap: 1.2rem;
    }

    .process-gallery-4 .process-gallery-item {
        flex: 1 1 45%;
        max-width: none;
    }

    .wcag-table { font-size: 1.2rem; }

    .wcag-table th,
    .wcag-table td { padding: 0.8rem 1rem; }

    .contact {
        margin-top: 60px;
        padding-top: 90px;
        border-radius: 28px 28px 0 0;
    }
}


/* --- Handy ab 768px --- */

@media (max-width: 768px) {

    .accordion-header { padding: 22px; }

    .accordion-body { padding: 0 1.6rem; }
    .accordion-body.open { padding: 2rem 1.6rem; }

    .text-image-row-boxed,
    .vn-table-section,
    .vn-section { padding: 1.5rem; }

    .intro-row { margin-top: 12rem; margin-bottom: 8rem; }

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

    .process-gallery-4 .process-gallery-item {
        flex: 1 1 100%;
        max-width: none;
    }
}


/* --- Ab 700px: Text und Screens untereinander --- */

@media (max-width: 700px) {

    .text-image-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* in Spaltenrichtung wirkt flex-basis auf die Höhe - deshalb auto */
    .text-image-row .text-col,
    .text-image-row .text-col2,
    .text-image-row .text-col-showcase {
        flex: 0 1 auto;
        width: 100%;
    }

    .text-image-row .image-col {
        width: 100%;
        justify-content: flex-start;
    }

    .image-col.image-col-compact .img-frame.aspect-phone {
        flex: 0 0 118px;
        max-width: 118px;
        width: 118px;
    }

    .two-col { grid-template-columns: 1fr; }
    .two-col > * { min-width: 0; }

    .idea-image-row { flex-direction: column; }

    .idea-intro-row .idea-image {
        max-width: 320px;
        width: 100%;
    }

    /* Konzept-Tab: Bild unter den Text statt über die Überschrift */
    .idea-intro-row--wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .idea-intro-row--wrap > .idea-text,
    .idea-intro-row--wrap > .idea-text2 { order: 1; }

    .idea-intro-row--wrap > .idea-image {
        order: 2;
        float: none;
        width: 100%;
        max-width: 320px;
        margin: 1.5rem 0 0 0;
    }

    .idea-intro-row--wrap > .idea-image-row { order: 3; }

    .process-gallery-item,
    .process-gallery2-item,
    .process-gallery3-item {
        flex: 1 1 100%;
        max-width: none;
    }
}


/* --- Ab 620px: Flow und Vorher/Nachher untereinander, Pfeile nach unten,
       zweispaltige Impact-Tabelle als Karten --- */

@media (max-width: 620px) {

    .flow-segment {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-segment .img-frame.aspect-phone,
    .vn-pair .img-frame.aspect-phone,
    .vn-pair2 .img-frame.aspect-phone {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
    }

    .flow-segment .flow-arrow,
    .vn-pair .vn-arrow,
    .vn-pair2 .vn-arrow {
        display: block;
        width: 130px;
        text-align: center;
        transform: rotate(90deg);
    }

    .vn-pair .vn-arrow,
    .vn-pair2 .vn-arrow { font-size: 2.8rem; }

    .flow-segment .flow-plus,
    .vn-pair .flow-plus,
    .vn-pair2 .flow-plus {
        display: block;
        width: 130px;
        text-align: center;
    }

    .vn-pair,
    .vn-pair2 {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
    }

    .vn-grid-row { gap: 2.5rem; }

    .wcag-table-wrapper:has(.wcag-table:not(.wcag-table-severity)) {
        overflow-x: visible;
        border: none;
        border-radius: 0;
    }

    .wcag-table:not(.wcag-table-severity),
    .wcag-table:not(.wcag-table-severity) tbody {
        display: block;
        width: 100%;
    }

    .wcag-table:not(.wcag-table-severity) thead { display: none; }

    .wcag-table:not(.wcag-table-severity) tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 1.2rem 1.4rem;
        margin-bottom: 1rem;
        background: transparent;
    }

    .wcag-table:not(.wcag-table-severity) tbody td {
        display: block;
        border-top: none;
        padding: 0.5rem 0;
    }

    .wcag-table:not(.wcag-table-severity) tbody td::before {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03rem;
        color: var(--main-color);
        margin-bottom: 0.2rem;
    }

    .wcag-table:not(.wcag-table-severity) tbody td:nth-child(1)::before { content: "Nutzer:innengruppe"; }
    .wcag-table:not(.wcag-table-severity) tbody td:nth-child(2)::before { content: "Nutzen"; }
}


/* --- Kleine Handys --- */

@media (max-width: 480px) {

    .lang-switch .lang-option { padding: 4px 8px; }

    #btn2,
    #darkMode-icon {
        width: 38px;
        height: 38px;
    }

    .footer {
        flex-direction: column-reverse;
        gap: 16px;
    }
}