/* =============================================
   KCS Körperconcept – Maritime Wellness Editorial
   Redesign basierend auf Stitch Design-System
   ============================================= */

/* --- Self-hosted Public Sans (DSGVO-konform) --- */
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/public-sans/PublicSans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/public-sans/PublicSans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- CSS Custom Properties --- */
:root {
    /* Primärfarben (verbindlich aus Logo) */
    --kcs-braun: #784b2a;
    --kcs-blau: #2071b3;
    --kcs-blau-container: #2071b3;

    /* Tertiär / Akzent */
    --kcs-petrol: #005966;
    --kcs-gruen: #267729;
    --kcs-lankow: #009FE3;

    /* Oberflächen (Tonal System) */
    --kcs-surface: #fff8f3;
    --kcs-surface-low: #fcf2e6;
    --kcs-surface-high: #f1e7db;
    --kcs-surface-white: #ffffff;

    /* Text */
    --kcs-text: #1f1b14;
    --kcs-text-light: #414750;
    --kcs-white: #FFFFFF;

    /* Outline (Ghost Borders) */
    --kcs-outline: #c1c7d1;

    /* Typografie */
    --font-main: 'Public Sans', 'Arial', 'Helvetica Neue', sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-h1: 3.5rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;

    /* Spacing */
    --section-padding: 96px 0;
    --container-width: 1280px;
    --gap: 3rem;

    /* Transitions */
    --transition: all 0.3s ease;

    /* Shadows */
    --shadow-card: 0 10px 40px -15px rgba(31, 27, 20, 0.04);
    --shadow-card-hover: 0 20px 50px -15px rgba(31, 27, 20, 0.08);
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    color: var(--kcs-text);
    background: var(--kcs-surface);
    line-height: 1.6;
}

::selection {
    background: var(--kcs-blau-container);
    color: var(--kcs-white);
}

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

a {
    color: var(--kcs-blau);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--kcs-braun);
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typografie --- */
h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    color: var(--kcs-braun);
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: var(--font-size-h3);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: var(--font-size-h4);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--kcs-text);
    line-height: 1.7;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--kcs-text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-align: center;
    line-height: 1.7;
}

.text-center { text-align: center; }
.text-white { color: var(--kcs-white); }
.text-blau { color: var(--kcs-blau); }
.text-braun { color: var(--kcs-braun); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(32, 113, 179, 0.2);
    color: var(--kcs-white);
}

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

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

.btn-sand {
    background: var(--kcs-surface-high);
    color: var(--kcs-braun);
    border-color: var(--kcs-surface-high);
}

.btn-sand:hover {
    background: var(--kcs-braun);
    color: var(--kcs-white);
    border-color: var(--kcs-braun);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
}

.navbar-logo img {
    height: 96px;
    width: auto;
}

/* Immer Farblogo zeigen */
.navbar-logo .logo-color { display: block; }
.navbar-logo .logo-white { display: none; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--kcs-blau-container);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--kcs-blau);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--kcs-braun);
}

/* Account-Link in Navigation */
.nav-account {
    margin-left: 0.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-account-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--kcs-blau-container);
}

.nav-account-link i {
    font-size: 1.25rem;
}

.nav-account-link::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--kcs-text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* =============================================
   HERO (Startseite)
   ============================================= */
.hero-claim {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* =============================================
   SECTIONS
   ============================================= */
section {
    padding: var(--section-padding);
}

.section-sand {
    background: var(--kcs-surface-low);
    clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%);
    padding-top: 120px;
}

/* Sand gefolgt von plain section: untere Diagonale hinzufügen */
.section-sand:has(+ section:not(.section-sand)) {
    clip-path: polygon(0 80px, 100% 0, 100% calc(100% - 80px), 0 100%);
    padding-bottom: calc(var(--section-padding-v, 96px) + 80px);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0;
    color: var(--kcs-braun);
}

/* Diagonal Dividers */
.diagonal-divider-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.diagonal-divider-top {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* =============================================
   PAGE HEADER (Editorial-Stil mit Diagonale)
   ============================================= */
.page-header {
    background: var(--kcs-blau);
    color: var(--kcs-white);
    height: 28rem;
    display: flex;
    align-items: flex-start;
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Dekorative Windrose im Header */
.page-header::after {
    content: '';
    position: absolute;
    right: -8%;
    top: 15%;
    width: 28rem;
    height: 28rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='white' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='white' stroke-width='0.3'/%3E%3Ccircle cx='50' cy='50' r='15' fill='none' stroke='white' stroke-width='0.3'/%3E%3Cline x1='50' y1='2' x2='50' y2='98' stroke='white' stroke-width='0.4'/%3E%3Cline x1='2' y1='50' x2='98' y2='50' stroke='white' stroke-width='0.4'/%3E%3Cline x1='15' y1='15' x2='85' y2='85' stroke='white' stroke-width='0.3'/%3E%3Cline x1='85' y1='15' x2='15' y2='85' stroke='white' stroke-width='0.3'/%3E%3Cpolygon points='50,5 53,45 50,42 47,45' fill='white'/%3E%3Cpolygon points='50,95 53,55 50,58 47,55' fill='white'/%3E%3Cpolygon points='5,50 45,47 42,50 45,53' fill='white'/%3E%3Cpolygon points='95,50 55,47 58,50 55,53' fill='white'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.page-header h1 {
    color: var(--kcs-white);
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-align: left;
}

.page-header-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.6;
    text-align: left;
}

/* Startseite: Höherer Page-Header mit Claim + Buttons */
.page-header-home {
    min-height: 55vh;
    align-items: center;
    padding: 12rem 0 6rem;
}

.page-header-home h1 {
    max-width: 700px;
}

.page-header-home .hero-claim {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.page-header-home h1 span {
    display: block;
    font-weight: 300;
    font-size: 1.35rem;
    margin-top: 1rem;
    opacity: 0.85;
    line-height: 1.6;
}

.page-header-home .hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.breadcrumb-back:hover {
    color: var(--kcs-white);
}

/* =============================================
   ÜBER UNS
   ============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card-hover);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60%;
    height: 60%;
    border: 3px solid var(--kcs-blau);
    border-radius: 0.5rem;
    z-index: -1;
}

.about-text .values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.value-icon {
    width: 40px;
    height: 40px;
    background: var(--kcs-surface-low);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--kcs-blau);
    font-size: 1.1rem;
}

.value-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--kcs-text-light);
    margin-bottom: 0;
}

/* =============================================
   BEHANDLUNGEN (Treatment Cards – Stitch-Stil)
   ============================================= */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.treatment-card {
    display: flex;
    flex-direction: column;
    background: var(--kcs-surface-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    color: inherit;
}

.treatment-card-img {
    height: 256px;
    overflow: hidden;
    position: relative;
}

.treatment-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.treatment-card-body {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.treatment-card-body h3 {
    font-size: 1.5rem;
    color: var(--kcs-braun);
    margin-bottom: 1rem;
}

.treatment-card-body p {
    font-size: 0.95rem;
    color: var(--kcs-text-light);
    margin-bottom: 0;
    line-height: 1.7;
    flex: 1;
}

/* "Mehr erfahren" CTA auf Cards */
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
    color: var(--kcs-blau);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.treatment-card:hover .card-cta,
.location-overview-card:hover .card-cta {
    gap: 0.5rem;
}

/* =============================================
   TEAM
   ============================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.team-card {
    text-align: center;
}

.team-card-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    box-shadow: var(--shadow-card-hover);
    border: 4px solid var(--kcs-surface-white);
    background: var(--kcs-surface-low);
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.1rem;
    color: var(--kcs-braun);
    margin-bottom: 0.25rem;
}

.team-card .position {
    font-size: 0.85rem;
    color: var(--kcs-blau);
    font-weight: 600;
}

.team-card .locations-badge {
    display: inline-flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.locations-badge span {
    font-size: 0.7rem;
    background: var(--kcs-surface-low);
    color: var(--kcs-blau);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}

/* =============================================
   KURSE (Courses)
   ============================================= */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    display: flex;
    background: var(--kcs-surface-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    color: inherit;
}

.course-card-color {
    width: 8px;
    flex-shrink: 0;
}

.course-card-color.aqua { background: var(--kcs-petrol); }
.course-card-color.outdoor { background: var(--kcs-gruen); }
.course-card-color.physio { background: var(--kcs-blau); }
.course-card-color.relax { background: var(--kcs-surface-high); }

.course-card-body {
    padding: 2rem;
    flex: 1;
}

.course-card-body h3 {
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.course-card-body p {
    color: var(--kcs-text-light);
    font-size: 0.9rem;
}

.course-card-body .course-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--kcs-text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.course-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.course-badge.zertifiziert {
    background: var(--kcs-surface-low);
    color: var(--kcs-blau);
}

/* =============================================
   STANDORTE (Locations) – Übersichtsseite
   ============================================= */
.locations-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.location-overview-card {
    display: flex;
    flex-direction: column;
    background: var(--kcs-surface-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.location-overview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    color: inherit;
}

.location-overview-card.schwimmhalle {
    box-shadow: var(--shadow-card), inset 0 -3px 0 var(--kcs-lankow);
}

.location-overview-img {
    height: 256px;
    overflow: hidden;
    position: relative;
}

.location-overview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-overview-card:hover .location-overview-img img {
    transform: scale(1.05);
}

.location-partner-logo {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 120px !important;
    height: auto !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 0.5rem;
}

.location-overview-body {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-overview-body h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--kcs-braun);
}

.location-overview-body p {
    font-size: 0.95rem;
    color: var(--kcs-text-light);
    margin-bottom: 0.15rem;
}

.location-overview-body .phone {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--kcs-text);
}

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

.location-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.location-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.location-card.schwimmhalle {
    background: rgba(0, 159, 227, 0.12);
}

.location-icon {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.25rem;
}

.location-card h3 {
    color: var(--kcs-white);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.location-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.location-card .phone {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--kcs-white);
}

/* =============================================
   AQUA-BEREICH (Schwimmhalle Lankow)
   ============================================= */
.aqua-section {
    background: linear-gradient(135deg, var(--kcs-petrol) 0%, #2a7a8a 100%);
    color: var(--kcs-white);
    position: relative;
    overflow: hidden;
}

.aqua-section .section-header h2 {
    color: var(--kcs-white);
}

.aqua-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.aqua-info p {
    color: rgba(255, 255, 255, 0.9);
}

.aqua-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.aqua-image {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* =============================================
   CTA (Call to Action – Glasmorphismus)
   ============================================= */
.cta-section {
    background: var(--kcs-surface-low);
    padding: 96px 0;
    position: relative;
}

.cta-section.diagonal-top {
    clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%);
    padding-top: 120px;
}

.cta-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(32, 113, 179, 0.1);
}

.cta-glass h2 {
    font-size: 2rem;
    color: var(--kcs-braun);
    margin-bottom: 1rem;
}

.cta-glass p {
    color: var(--kcs-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
}

/* Fallback für Seiten ohne Glass-Card */
.cta-section:not(:has(.cta-glass)) {
    text-align: center;
}

.cta-section:not(:has(.cta-glass)) h2 {
    color: var(--kcs-braun);
}

.cta-section:not(:has(.cta-glass)) p {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    color: var(--kcs-text-light);
}

/* =============================================
   FOOTER (Primary-Blau)
   ============================================= */
/* Wrapper um Footer: Sand-Hintergrund mit Diagonale oben */
.footer-wrap {
    background: var(--kcs-surface-low);
    margin-top: -1px;
}

.footer {
    background: var(--kcs-blau);
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--gap);
    padding: 6rem 0 3rem;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--kcs-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

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

.teaser-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    color: var(--kcs-blau);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.treatment-card:hover .teaser-link,
.location-overview-card:hover .teaser-link {
    gap: 0.5rem;
}

/* =============================================
   DETAIL LAYOUT (Behandlung, Kurs, Standort)
   ============================================= */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-content {
    line-height: 1.8;
    color: var(--kcs-text);
}

.detail-content h3 {
    margin-top: 2rem;
}

.detail-image {
    border-radius: 0.5rem;
    width: 100%;
}

.detail-locations {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(193, 199, 209, 0.4);
}

.detail-locations h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--kcs-text-light);
    margin-bottom: 1rem;
}

.detail-locations .locations-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.detail-locations .locations-badge a {
    text-decoration: none;
    display: inline-flex;
}

.detail-locations .locations-badge a span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--kcs-surface-white);
    border: 1px solid rgba(193, 199, 209, 0.5);
    color: var(--kcs-braun);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.5rem 1rem 0.5rem 0.875rem;
    border-radius: 999px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-locations .locations-badge a span::before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-7.5-7-12a7 7 0 1 1 14 0c0 4.5-7 12-7 12z'/><circle cx='12' cy='9' r='2.5'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-7.5-7-12a7 7 0 1 1 14 0c0 4.5-7 12-7 12z'/><circle cx='12' cy='9' r='2.5'/></svg>") center / contain no-repeat;
    flex-shrink: 0;
    opacity: 0.85;
}

.detail-locations .locations-badge a:hover span {
    border-color: rgba(32, 113, 179, 0.55);
    color: var(--kcs-blau);
    background: rgba(32, 113, 179, 0.06);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.detail-locations .locations-badge a:focus-visible span {
    outline: 2px solid var(--kcs-blau);
    outline-offset: 2px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-box {
    background: var(--kcs-surface-low);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.sidebar-box h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.sidebar-box p {
    font-size: 0.9rem;
    color: var(--kcs-text-light);
}

/* =============================================
   INFO BLOCK (Öffnungszeiten etc.)
   ============================================= */
.info-block {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--kcs-surface-low);
    border-radius: 0.5rem;
}

.info-block h3 {
    color: var(--kcs-braun);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

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

.oh-table td {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.oh-table-day {
    font-weight: 600;
    width: 110px;
    color: var(--kcs-text);
}

.oh-table-break {
    color: var(--kcs-text-light);
    font-size: 0.8rem;
}

.oh-table-closed {
    color: var(--kcs-text-light);
    font-style: italic;
}

.oh-closed {
    opacity: 0.5;
}

/* =============================================
   STANDORT-DETAIL: Intro + Faktenkarten
   ============================================= */
.location-intro {
    padding: 0 2.5rem;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--kcs-text);
    margin-bottom: 3rem;
}

@media (max-width: 600px) {
    .location-intro {
        padding: 0;
    }
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.info-card {
    background: var(--kcs-surface-low);
    border-radius: 0.75rem;
    padding: 1.75rem;
}

.info-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.info-card-head i {
    font-size: 1.4rem;
    color: var(--kcs-blau);
    line-height: 1;
}

.info-card-head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--kcs-braun);
}

.info-card-address {
    font-style: normal;
    line-height: 1.7;
    color: var(--kcs-text);
}

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

.info-card-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--kcs-blau);
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-word;
}

.info-card-contact a i {
    font-size: 1.1rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.info-card-action {
    margin-top: 1.1rem;
    padding: 1.1rem 0 0;
    border: none;
    border-top: 1px solid rgba(193, 199, 209, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--kcs-blau);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.info-card-action i {
    font-size: 1.15rem;
    opacity: 0.85;
}

.info-card-action:hover {
    color: var(--kcs-braun);
}

/* Heutigen Tag dezent hervorheben */
.oh-table tr.oh-today td {
    color: var(--kcs-blau);
    font-weight: 600;
}

.oh-table tr.oh-today .oh-table-break {
    color: var(--kcs-blau);
    font-weight: 400;
    opacity: 0.8;
}

/* Kooperationspartner-Karte (Schwimmhalle) */
.info-card-partner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-card-partner img {
    max-width: 180px;
    width: 100%;
}

.info-card-partner p {
    margin: 0;
    color: var(--kcs-text-light);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   STELLENANZEIGEN
   ============================================= */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--kcs-surface-white);
    border-radius: 0.5rem;
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--kcs-blau);
}

.job-card h3 {
    margin-bottom: 0.35rem;
}

.job-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--kcs-text-light);
    margin-bottom: 0.5rem;
}

.job-card-body p {
    font-size: 0.9rem;
    color: var(--kcs-text-light);
    margin-bottom: 0;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--kcs-surface-low);
    border-radius: 0.5rem;
    color: var(--kcs-text-light);
}

/* =============================================
   KURSKALENDER · Wochenübersicht (modern)
   ============================================= */
.cal-section { padding: 3rem 0 4rem; }

.cal-week {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.cal-day {
    background: #fff;
    border: 1px solid var(--kcs-surface-high);
    border-radius: 18px;
    padding: 1.75rem 1.75rem 1rem;
    box-shadow: var(--shadow-card);
}

.cal-day-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--kcs-surface-high);
    position: relative;
}
.cal-day-head::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 2px;
    bottom: 10px;
    width: 4px;
    border-radius: 2px;
    background: var(--kcs-blau);
}
.cal-day-head h2 {
    color: var(--kcs-braun);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}
.cal-day-count {
    font-size: 0.82rem;
    color: var(--kcs-text-light);
    font-weight: 500;
}

.cal-day-entries {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cal-entry-link {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--kcs-surface-high);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.cal-entry-link:hover {
    border-color: var(--kcs-blau);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
    color: inherit;
}
.cal-entry.is-full .cal-entry-link {
    opacity: 0.6;
    pointer-events: none;
}

.cal-entry-time {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.cal-entry-time-start {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--kcs-blau);
    letter-spacing: -0.02em;
}
.cal-entry-time-end {
    font-size: 0.82rem;
    color: var(--kcs-text-light);
    margin-top: 2px;
}

.cal-entry-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cal-entry-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.cal-entry-head h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
    color: var(--kcs-text);
    line-height: 1.3;
}
.cal-entry-category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(32, 113, 179, 0.1);
    color: var(--kcs-blau);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}
.cal-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.88rem;
    color: var(--kcs-text-light);
}
.cal-entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.cal-entry-meta i {
    color: var(--kcs-blau);
    font-size: 1rem;
}
.cal-entry-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.cal-entry-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--kcs-braun);
    font-weight: 500;
}
.cal-entry-partner i { font-size: 0.95rem; }

.cal-entry-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
}
.cal-entry-arrow {
    font-size: 1.25rem;
    color: var(--kcs-outline);
    transition: var(--transition);
}
.cal-entry-link:hover .cal-entry-arrow {
    color: var(--kcs-blau);
    transform: translateX(3px);
}

.badge-full {
    font-size: 0.72rem;
    font-weight: 700;
    color: #a13a1c;
    background: #fbe5e0;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .cal-day { padding: 1.25rem 1.25rem 0.75rem; }
    .cal-day-head::before { left: -1.25rem; }
    .cal-entry-link {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    .cal-entry-time {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }
    .cal-entry-status { justify-content: flex-start; }
    .cal-entry-arrow { display: none; }
}

/* =============================================
   SCHEDULE TABLE
   ============================================= */
.course-schedule-block h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.schedule-table-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--kcs-surface-white);
}

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

.schedule-table th,
.schedule-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.9rem;
}

.schedule-table th {
    font-weight: 700;
    color: var(--kcs-braun);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.25rem;
}

.schedule-table tbody tr {
    transition: background 0.2s ease;
}

.schedule-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.5);
}

.schedule-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.7);
}

.schedule-table tbody td {
    border-bottom: 1px solid rgba(193, 199, 209, 0.12);
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

/* =============================================
   BUCHUNGSFORMULAR & KUNDENBEREICH
   ============================================= */
.booking-course-info {
    background: var(--kcs-surface-low);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.booking-course-info h2 {
    margin-bottom: 0.5rem;
}

.booking-run-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--kcs-text-light);
}

.booking-run-details i {
    color: var(--kcs-blau);
}

.booking-form h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-top: 1rem;
}

.booking-form h3:first-of-type {
    padding-top: 0;
}

.booking-form .form-group {
    margin-bottom: 1rem;
}

.booking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(193, 199, 209, 0.3);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--kcs-surface-white);
    transition: var(--transition);
}

.booking-form input:focus {
    outline: none;
    border-color: var(--kcs-blau);
    box-shadow: 0 0 0 3px rgba(32, 113, 179, 0.1);
}

.booking-form .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint-block {
    font-size: 0.85rem;
    color: var(--kcs-text-light);
    margin-bottom: 1rem;
}

.gdpr-consent {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--kcs-surface-low);
    border-radius: 0.5rem;
}

.gdpr-consent label {
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
}

.gdpr-consent a {
    color: var(--kcs-blau);
    text-decoration: underline;
}

.booking-logged-in {
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.booking-logged-in i {
    font-size: 1.2rem;
    color: var(--kcs-gruen);
}

.booking-urgency {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.btn-lg {
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
}

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

.btn-outline-danger {
    background: none;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    text-decoration: none;
}

.btn-outline-danger:hover {
    background: #fde8e8;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

/* Login */
.login-wrapper {
    max-width: 460px;
    margin: 0 auto;
}

.login-form {
    background: var(--kcs-surface-white);
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-card);
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.login-form input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(193, 199, 209, 0.3);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--kcs-surface-white);
}

.login-form input:focus {
    outline: none;
    border-color: var(--kcs-blau);
    box-shadow: 0 0 0 3px rgba(32, 113, 179, 0.1);
}

.login-hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--kcs-text-light);
    text-align: center;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fde8e8;
    color: #c0392b;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.alert-success i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Meine Buchungen */
.my-bookings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--kcs-surface-white);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--kcs-blau);
}

.booking-card.storniert {
    opacity: 0.5;
    border-left-color: #ccc;
}

.booking-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--kcs-text-light);
}

.booking-card-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-booking-bestaetigt { background: #e8f5e9; color: #2e7d32; }
.badge-booking-warteliste { background: #fff8e1; color: #f57f17; }
.badge-booking-storniert { background: #efebe9; color: #795548; }
.badge-booking-abgeschlossen { background: #e3f2fd; color: #1565c0; }

/* Konto löschen */
.delete-warning {
    text-align: center;
    padding: 2rem;
    background: #fde8e8;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.delete-warning h3 {
    margin: 0.5rem 0;
}

.delete-warning ul {
    text-align: left;
    max-width: 400px;
    margin: 1rem auto;
}

/* =============================================
   FAQ-AKKORDEON
   ============================================= */
.faq-accordion {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.faq-item {
    background: var(--kcs-surface-white);
    border: 1px solid rgba(193, 199, 209, 0.45);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(32, 113, 179, 0.35);
    box-shadow: var(--shadow-card);
}

.faq-item[open] {
    border-color: rgba(32, 113, 179, 0.55);
    box-shadow: var(--shadow-card-hover);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    font-weight: 600;
    color: var(--kcs-braun);
    font-size: 1.0625rem;
    line-height: 1.4;
    min-height: 56px;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: '';
    display: none;
}

.faq-item summary:hover {
    color: var(--kcs-blau);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--kcs-blau);
    outline-offset: -2px;
    border-radius: 14px;
}

.faq-question {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--kcs-surface-low);
    color: transparent;
    transition: background 0.25s ease, transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--kcs-braun);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: background 0.25s ease, transform 0.3s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item:hover .faq-icon {
    background: rgba(32, 113, 179, 0.12);
}

.faq-item:hover .faq-icon::before,
.faq-item:hover .faq-icon::after {
    background: var(--kcs-blau);
}

.faq-item[open] .faq-icon {
    background: var(--kcs-blau);
    transform: rotate(180deg);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
    background: var(--kcs-white);
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
    padding: 1rem 1.75rem 1.5rem;
    color: var(--kcs-text-light);
    font-size: 0.9875rem;
    line-height: 1.7;
    border-top: 1px solid rgba(193, 199, 209, 0.35);
}

@media (max-width: 600px) {
    .faq-item summary {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        gap: 0.875rem;
    }

    .faq-answer {
        padding: 0.875rem 1.25rem 1.25rem;
    }
}

/* =============================================
   MODAL
   ============================================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn 0.2s ease;
}

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

.modal {
    background: var(--kcs-surface-white);
    border-radius: 0.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-sm { max-width: 400px; }
.modal-md { max-width: 540px; }
.modal-lg { max-width: 800px; }

/* Close-Button über dem Hero */
.modal .modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--kcs-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal .modal-close:hover {
    background: var(--kcs-surface-white);
    transform: scale(1.1);
}

/* Hero-Bild im Modal */
.modal-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.modal-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: var(--kcs-white);
}

.modal-hero-overlay h3 {
    color: var(--kcs-white);
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.modal-hero-overlay p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.95rem;
}

/* Modal-Body */
.modal-body {
    padding: 1.75rem 2rem 1rem;
}

.modal-intro {
    color: var(--kcs-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Formularfelder im Modal */
.modal-form-group {
    margin-bottom: 1.25rem;
}

.modal-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--kcs-text);
    margin-bottom: 0.4rem;
}

.modal-form-group input[type="text"],
.modal-form-group input[type="email"],
.modal-form-group input[type="tel"],
.modal-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(193, 199, 209, 0.3);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--kcs-surface);
    color: var(--kcs-text);
    transition: var(--transition);
    box-sizing: border-box;
}

.modal-form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

.modal-form-group input::placeholder,
.modal-form-group textarea::placeholder {
    color: rgba(65, 71, 80, 0.4);
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: var(--kcs-blau);
    box-shadow: 0 0 0 3px rgba(32, 113, 179, 0.1);
    background: var(--kcs-surface-white);
}

.modal-title {
    margin: 0 0 0.5rem;
    color: var(--kcs-braun);
    font-size: 1.4rem;
}

.modal-optional {
    font-weight: 400;
    color: var(--kcs-text-light);
    font-size: 0.8rem;
}

.modal-form-group input[type="file"] {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    border: 1px dashed rgba(193, 199, 209, 0.7);
    border-radius: 0.5rem;
    background: var(--kcs-surface);
    color: var(--kcs-text);
    box-sizing: border-box;
    cursor: pointer;
}

.modal-form-group input[type="file"]:hover {
    border-color: var(--kcs-blau);
}

.modal-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--kcs-text-light);
}

/* =============================================
   SITE-FLASH (globale Erfolgs-/Fehlermeldung)
   ============================================= */
.site-flash {
    border-bottom: 1px solid rgba(193, 199, 209, 0.35);
}

.site-flash .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.site-flash i {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.site-flash span {
    flex: 1;
    font-size: 0.95rem;
    color: var(--kcs-text);
    line-height: 1.4;
}

.site-flash-success {
    background: rgba(38, 119, 41, 0.10);
}

.site-flash-success i {
    color: var(--kcs-gruen);
}

.site-flash-error {
    background: rgba(179, 38, 30, 0.10);
}

.site-flash-error i {
    color: #b3261e;
}

.site-flash-close {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--kcs-text-light);
    padding: 0 0.25rem;
    flex-shrink: 0;
}

.site-flash-close:hover {
    color: var(--kcs-text);
}

/* Datenschutz-Checkbox */
.modal-privacy {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(193, 199, 209, 0.15);
}

.modal-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--kcs-text-light);
    line-height: 1.5;
}

.modal-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--kcs-blau);
}

.modal-privacy a {
    color: var(--kcs-blau);
    font-weight: 600;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 2rem 1.75rem;
}

.modal-footer .btn i {
    margin-right: 0.3rem;
}

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

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --font-size-h1: 2.5rem;
        --font-size-h2: 1.5rem;
        --gap: 2rem;
    }



    .page-header h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        gap: 2rem;
    }

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

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

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

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

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

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
        --font-size-h1: 2rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Nav Mobile */
    /* backdrop-filter macht die Navbar zum Bezugsrahmen für position:fixed →
       das Vollbild-Menü würde sonst an der Navbar (statt am Viewport) kleben. */
    .navbar {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: var(--kcs-white);
    }

    .navbar .container {
        height: 72px;
    }

    .navbar-logo img {
        height: 52px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        background: var(--kcs-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        color: var(--kcs-text) !important;
        font-size: 1.1rem;
    }

    .nav-account {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 1rem;
        border-top: 1px solid rgba(193, 199, 209, 0.15);
    }

    /* Page Header Mobile */
    .page-header {
        height: auto;
        min-height: 16rem;
        padding: 6rem 0 3.5rem; /* unter der 72px hohen Mobil-Navbar freihalten */
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header-home {
        min-height: 45vh;
        padding: 8rem 0 4rem;
    }

    .page-header-home .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .page-header-home .hero-buttons .btn {
        text-align: center;
    }

    .schedule-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Content Mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-text .values {
        grid-template-columns: 1fr;
    }

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

    .treatment-card-img {
        height: 200px;
    }

    .treatment-card-body {
        padding: 1.5rem;
    }

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

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

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

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        order: -1;
    }

    .footer {
        clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 4rem 0 2rem;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .schedule-table {
        font-size: 0.8rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem;
    }

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

    .booking-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .booking-run-details {
        flex-direction: column;
        gap: 0.3rem;
    }

    .cta-glass {
        padding: 2rem;
    }

    .location-overview-body {
        padding: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

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

    .team-card-img {
        width: 140px;
        height: 140px;
    }
}

/* =============================================================
   KURSKATALOG · Filterleiste, Karten, Detail, Anbieter-Box
   ============================================================= */

.course-hero-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(32, 113, 179, 0.08);
    color: var(--kcs-blau);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.course-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

/* --- Filter-Leiste (mit diagonalem Abschluss oben + unten) --- */
.course-filter-section {
    padding: calc(2.5rem + 80px) 0 calc(1.5rem + 60px);
    background: var(--kcs-surface-low);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
    margin-top: -80px;
    position: relative;
    z-index: 1;
}
.course-filter-section-compact {
    padding: calc(2rem + 80px) 0 calc(1rem + 60px);
}
/* Hero über Filter-Section stapeln, damit die Hero-Diagonale sauber bleibt */
.page-header {
    position: relative;
    z-index: 2;
}
.course-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.course-search-wrap {
    position: relative;
    background: #fff;
    border: 1px solid var(--kcs-outline);
    border-radius: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.course-search-wrap:focus-within {
    border-color: var(--kcs-blau);
    box-shadow: 0 0 0 3px rgba(32, 113, 179, 0.12);
}
.course-search-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kcs-text-light);
    font-size: 1.25rem;
}
.course-search-wrap input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px 18px 14px 50px;
    font: inherit;
    color: var(--kcs-text);
    outline: none;
    border-radius: 14px;
}
.filter-axis {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.filter-axis-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--kcs-text-light);
}
.filter-axis-label i {
    font-size: 1rem;
    color: var(--kcs-blau);
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--kcs-outline);
    color: var(--kcs-text);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.2;
}
.filter-pill i {
    font-size: 1.05rem;
    color: var(--kcs-text-light);
}
.filter-pill:hover {
    border-color: var(--kcs-blau);
    color: var(--kcs-blau);
    transform: translateY(-1px);
}
.filter-pill:hover i { color: var(--kcs-blau); }
.filter-pill.active {
    background: var(--kcs-blau);
    border-color: var(--kcs-blau);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(32, 113, 179, 0.45);
}
.filter-pill.active i { color: #fff; }
.filter-pill-count {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}
.filter-pill.active .filter-pill-count {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
.filter-reset-row { text-align: right; }
.filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--kcs-text-light);
    padding: 6px 12px;
    border-radius: 999px;
    transition: var(--transition);
}
.filter-reset-btn:hover { color: var(--kcs-braun); background: rgba(120, 75, 42, 0.06); }

/* --- Ergebnis-Kopfzeile --- */
.courses-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 1rem;
    color: var(--kcs-text-light);
    font-size: 0.95rem;
}

/* --- Kurs-Karte V2 (mit Bild + Badges) --- */
.course-card-v2 {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}
.course-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    color: inherit;
    border-color: var(--kcs-surface-high);
}
.course-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--kcs-surface-high);
}
.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.course-card-v2:hover .course-card-image img {
    transform: scale(1.05);
}
.course-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
}
.course-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    color: var(--kcs-text);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}
.course-card-v2 .course-card-color {
    height: 3px;
    width: 100%;
}
.course-card-v2 .course-card-body {
    padding: 1.25rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}
.course-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}
.course-card-v2 h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--kcs-text);
    margin: 0;
    line-height: 1.25;
}
.course-card-v2 p {
    color: var(--kcs-text-light);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--kcs-text-light);
    margin-top: auto;
    padding-top: 0.5rem;
}
.course-card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.course-card-meta .meta-accent { color: var(--kcs-gruen); font-weight: 600; }
.course-card-partner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    margin: 0.25rem -0.4rem -0.4rem;
    background: var(--kcs-surface-low);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--kcs-text-light);
}
.course-card-partner img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}
.course-card-partner i {
    color: var(--kcs-braun);
    font-size: 1.1rem;
}
.course-card-partner strong { color: var(--kcs-text); }

/* --- Course-Badges (einheitlich) --- */
.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.course-badge i { font-size: 0.95rem; }
.course-badge-verordnung     { background: #fff1e8; color: #a0451a; }
.course-badge-praevention_20 { background: #e8f3e8; color: #1f6a2b; }
.course-badge-offen          { background: #e8f1fb; color: #1a5b98; }
.course-badge-kasse          { background: #fef7df; color: #816800; }
.course-badge-neutral        { background: var(--kcs-surface-high); color: var(--kcs-text-light); }

/* Belastungs-Badge (pro Durchlauf) */
.intensity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.intensity-badge i { font-size: 0.9rem; }
.intensity-leicht { background: #e8f3e8; color: #1f6a2b; }
.intensity-mittel { background: #fef3d7; color: #8a6500; }
.intensity-schwer { background: #fbe5e0; color: #a13a1c; }
.run-intensity-wrap { margin-top: 0.35rem; }

/* --- Empty-State mit Icon --- */
.empty-state-filter {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--kcs-surface-low);
    border-radius: 18px;
    color: var(--kcs-text-light);
}
.empty-state-filter i {
    font-size: 3rem;
    color: var(--kcs-blau);
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}
.empty-state-filter h3 { color: var(--kcs-text); margin-bottom: 0.5rem; }

/* --- Kursdetail-Layout --- */
.course-detail-main { padding: 3rem 0 4rem; }
.course-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
}
.course-detail-content { min-width: 0; }
.course-detail-hero {
    border-radius: 18px;
    overflow: hidden;
    margin: 0 0 2rem;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-card);
}
.course-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}
.course-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--kcs-surface-high);
    color: var(--kcs-text-light);
    font-size: 0.8rem;
    border-radius: 999px;
    font-weight: 500;
}
.course-section { margin-bottom: 2.5rem; }
.course-section-small { margin-bottom: 1.5rem; }
.course-section h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--kcs-text);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.course-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--kcs-blau);
    border-radius: 2px;
}
.course-section h3 {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.course-prose { color: var(--kcs-text-light); line-height: 1.7; }
.course-prose p + p { margin-top: 1rem; }

/* Info-Kacheln: Zielgruppe / Nutzen / Voraussetzungen */
.course-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}
.course-info-card {
    background: #fff;
    border: 1px solid var(--kcs-surface-high);
    border-radius: 14px;
    padding: 1.2rem;
    transition: var(--transition);
}
.course-info-card:hover {
    border-color: var(--kcs-blau);
    box-shadow: var(--shadow-card);
}
.course-info-head {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--kcs-blau);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.course-info-card p {
    color: var(--kcs-text-light);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* Termine-Liste */
.course-runs-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.course-run-item {
    display: grid;
    grid-template-columns: minmax(140px, 0.6fr) 1.2fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--kcs-surface-high);
    border-radius: 14px;
    transition: var(--transition);
}
.course-run-item:hover {
    border-color: var(--kcs-blau);
    box-shadow: var(--shadow-card);
}
.course-run-item.is-full { opacity: 0.65; }
.run-when .run-day {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--kcs-text);
}
.run-when .run-time {
    color: var(--kcs-text-light);
    font-size: 0.92rem;
}
.run-when .run-start {
    font-size: 0.82rem;
    color: var(--kcs-blau);
    font-weight: 600;
    margin-top: 0.25rem;
}
.run-when .run-entry-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--kcs-gruen);
    font-weight: 600;
    margin-top: 0.35rem;
}
.run-where { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; color: var(--kcs-text-light); }
.run-where > div { display: inline-flex; align-items: center; gap: 0.4rem; }
.run-where i { color: var(--kcs-blau); }
.run-partner-inline { font-size: 0.83rem; color: var(--kcs-braun) !important; }
.run-partner-inline i { color: var(--kcs-braun) !important; }
.run-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}
/* Kosten & Finanzierung */
.course-financing-box {
    background: linear-gradient(135deg, var(--kcs-surface-low) 0%, var(--kcs-surface-high) 100%);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
}
.course-financing-intro {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-weight: 500;
    color: var(--kcs-text);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.course-financing-intro i {
    font-size: 1.3rem;
    color: var(--kcs-blau);
    flex-shrink: 0;
    margin-top: 2px;
}
.course-financing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.course-financing-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--kcs-text-light);
    font-size: 0.94rem;
}
.course-financing-list i { color: var(--kcs-gruen); font-weight: 700; }
.course-certificate {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--kcs-text-light);
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.course-certificate code {
    background: rgba(32, 113, 179, 0.08);
    color: var(--kcs-blau);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Consolas', monospace;
}

/* --- Anbieter-Box (Sidebar) --- */
.course-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 100px;
}
.provider-card {
    background: #fff;
    border: 2px solid var(--kcs-surface-high);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
}
.provider-card.is-partner {
    border-color: var(--kcs-braun);
    background: linear-gradient(180deg, #fffcf7 0%, #ffffff 100%);
}
.provider-card.is-internal {
    border-color: var(--kcs-blau-container);
    background: linear-gradient(180deg, #f4f9fd 0%, #ffffff 100%);
}
.provider-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.provider-card.is-partner .provider-card-label {
    background: rgba(120, 75, 42, 0.1);
    color: var(--kcs-braun);
}
.provider-card.is-internal .provider-card-label {
    background: rgba(32, 113, 179, 0.1);
    color: var(--kcs-blau);
}
.provider-card-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}
.provider-logo {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--kcs-surface-high);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.provider-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.provider-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--kcs-text);
    line-height: 1.25;
}
.provider-description {
    color: var(--kcs-text-light);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}
.provider-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--kcs-surface-high);
}
.provider-contacts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--kcs-text-light);
}
.provider-contacts i {
    color: var(--kcs-braun);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.provider-contacts a {
    color: var(--kcs-text);
    font-weight: 500;
}
.provider-contacts a:hover { color: var(--kcs-blau); }

.sidebar-box-contact {
    text-align: center;
    background: var(--kcs-surface-low);
    border: 1px solid var(--kcs-surface-high);
    border-radius: 14px;
    padding: 1.25rem;
}
.sidebar-box-contact h4 { margin-bottom: 0.4rem; }
.sidebar-box-contact p { font-size: 0.9rem; color: var(--kcs-text-light); margin-bottom: 0.9rem; }
.btn-block { display: inline-flex; justify-content: center; gap: 0.4rem; width: 100%; }

/* --- Responsive --- */
@media (max-width: 960px) {
    .course-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .course-detail-sidebar { position: static; }
}
@media (max-width: 700px) {
    .course-run-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .run-action { align-items: flex-start; }
    .filter-pills { gap: 0.35rem; }
    .filter-pill { font-size: 0.85rem; padding: 6px 12px; }
}

/* ============================================================
   IMPRESSIONEN / BILDERGALERIE (Standort-Detail)
   ============================================================ */
.section-header-sub {
    margin-top: 0.5rem;
    color: var(--kcs-text-light);
    font-size: 1.05rem;
}

.impressions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

/* Erstes Bild größer hervorheben (modernes asymmetrisches Raster) */
.impressions-grid .impression-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.impression-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--kcs-surface-high);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

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

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

.impression-item:hover img {
    transform: scale(1.06);
}

.impression-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kcs-white);
    font-size: 2rem;
    background: linear-gradient(180deg, rgba(32, 113, 179, 0) 40%, rgba(32, 113, 179, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impression-item:hover .impression-zoom,
.impression-item:focus-visible .impression-zoom {
    opacity: 1;
}

.impression-item:focus-visible {
    outline: 3px solid var(--kcs-blau);
    outline-offset: 2px;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(31, 27, 20, 0.92);
    backdrop-filter: blur(4px);
}

.lightbox.active {
    display: flex;
    animation: lightboxFade 0.25s ease;
}

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

.lightbox-figure {
    margin: 0;
    max-width: min(1100px, 90vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--kcs-white);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
}

.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 768px) {
    .impressions-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.6rem;
    }
    .impressions-grid .impression-item:first-child {
        grid-column: span 2;
        grid-row: auto;
    }
    .lightbox { padding: 1rem; }
    .lightbox-close { top: 0.75rem; right: 0.75rem; width: 42px; height: 42px; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 1.4rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* =============================================
   KARRIERE-SEITE
   ============================================= */
/* Utilities (ergänzt) */
.text-muted { color: var(--kcs-text-light); }
.mt-md { margin-top: 1rem; }
.mt-xl { margin-top: 3rem; }

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--kcs-text);
    margin-bottom: 1.5rem;
}

/* Benefit-/Werte-Raster (3 Spalten, eigenständig – nicht nur .about-text) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem 2rem;
}

/* Benefit-Karten im Dreiergrid (umrahmt, große Icons – wie Kurs-Karten) */
.values-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.values-cards .value-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    background: var(--kcs-surface-white);
    border: 1px solid rgba(193, 199, 209, 0.4);
    border-radius: 0.75rem;
    padding: 2.5rem 1.75rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.values-cards .value-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.values-cards .value-icon {
    width: 80px;
    height: 80px;
    font-size: 2.4rem;
}

.values-cards .value-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--kcs-braun);
}

.values-cards .value-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .values-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .values-cards { grid-template-columns: 1fr; }
}

/* Job-Karten-Button: einzeilig, kompakt */
.job-card-action .btn {
    white-space: nowrap;
}

/* Check-Listen */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--kcs-blau);
    font-weight: 700;
}

/* Zwei-Spalten-Karten */
.two-col-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.two-col-cards .card-body h3 {
    margin-top: 0;
    color: var(--kcs-braun);
}

/* Bewerbungs-Box */
.apply-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--kcs-surface-low);
    border-radius: 0.75rem;
    padding: 2.5rem;
}

/* Im dunkleren Sand-Bereich: Box im helleren Sandton absetzen */
.section-sand .apply-box {
    background: var(--kcs-surface);
}

.apply-box-text h2 {
    margin-top: 0;
    color: var(--kcs-braun);
}

.apply-box-contact {
    background: var(--kcs-surface-white);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.apply-ansprech {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--kcs-text-light);
    margin: 0 0 0.25rem;
}

.apply-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--kcs-braun);
    margin: 0 0 1rem;
}

.apply-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--kcs-blau);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.apply-contact-link i {
    font-size: 1.15rem;
    opacity: 0.85;
}

/* Job-Meta im blauen Seitenkopf */
.job-meta-header {
    margin-top: 1rem;
}

.job-meta-header span {
    color: rgba(255, 255, 255, 0.9);
}

.page-header-actions {
    margin-top: 1.5rem;
}

.page-header-actions .btn i {
    margin-right: 0.4rem;
}

.job-detail-content {
    max-width: 760px;
    line-height: 1.7;
}

.job-detail-content .lead {
    color: var(--kcs-text);
}

.job-detail-content h3 {
    margin: 2rem 0 0.75rem;
    color: var(--kcs-braun);
    font-size: 1.25rem;
}

.job-detail-content h3:first-child {
    margin-top: 0;
}

.job-detail-content ul {
    margin: 0 0 1.25rem;
    padding-left: 0;
    list-style: none;
}

.job-detail-content li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.6rem;
}

.job-detail-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--kcs-blau);
    font-weight: 700;
}

.job-detail-content p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .two-col-cards { grid-template-columns: 1fr; }
    .apply-box { grid-template-columns: 1fr; padding: 1.75rem; }
}

/* =============================================
   RECHTSTEXTE (Impressum / Datenschutz)
   ============================================= */
.legal-content {
    max-width: 820px;
    line-height: 1.8;
    color: var(--kcs-text);
}

.legal-content h2 {
    color: var(--kcs-braun);
    font-size: 1.5rem;
    margin: 2.5rem 0 0.75rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--kcs-text);
    font-size: 1.15rem;
    margin: 1.75rem 0 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 0 0 1rem 1.25rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--kcs-blau);
    font-weight: 600;
    word-break: break-word;
}

/* =============================================
   LEITBILD (Über uns) – Intro volle Breite + Werte als Zweier-Grid
   ============================================= */
.leitbild-intro-wrap {
    text-align: center;
    margin-bottom: 2.5rem;
}

.leitbild-intro {
    max-width: 760px;
    margin: 1rem auto 0;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--kcs-text);
}

/* Zweier-Grid mit identischer Karten-/Icon-Größe wie .values-cards (Karriere) */
.values-cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

/* =============================================
   TEAM nach Bereichen (Über uns)
   ============================================= */
.team-department {
    margin-top: 3rem;
}

.team-department:first-of-type {
    margin-top: 0;
}

.team-department-title {
    text-align: center;
    color: var(--kcs-braun);
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--kcs-surface-high);
}

