/* ============================
   PerBabyMobile – Theme CSS
   ============================ */

/* -------- Font -------- */
@font-face {
    font-family: 'Fredoka';
    src: url('/fonts/Fredoka.ttf') format('truetype');
    font-weight: 100 900; /* Variabler Bereich */
    font-style: normal;
    font-display: swap;
}

/* -------- Design Tokens -------- */
:root {
    /* Brand - Lavendel */
    --brand-500: #A78BFA; /* primary base */
    --brand-500-rgb: 167, 139, 250;
    --brand-600: #8B5CF6; /* hover */
    --brand-700: #7C3AED; /* active */
    /* Pastell-Akzente */
    --peach-100: #ffe5e1;
    --peach-300: #ffc8c0;
    --mint-100: #e6fbf2;
    --mint-300: #c2f2df;
    --lav-100: #f3ecff;
    --lav-300: #e0d1ff;
    /* Semantik */
    --ok: #22c55e; /* freie Plätze */
    --muted: #6b7280;
    --text: #3A3A3A; /* Softes Dunkelgrau */
    --text-weak: #6E6E6E; /* Mittelgrau (Kontrast ~5.1:1) */
    /* Flächen */
    --bg: #ffffff;
    --bg-soft: #f7f9ff;
    --surface: #ffffff;
    --border: #e5e7eb;
    /* Typo & Radius */
    --font-sans: 'Fredoka', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    --bs-body-font-family: var(--font-sans);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
    /* Schatten */
    --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
    --shadow-md: 0 10px 24px rgba(24,79,158,.10);
    /* Stufen */
    --fz-1: clamp(.95rem, .9rem + .2vw, 1.05rem);
    --fz-2: clamp(1.05rem, 1rem + .3vw, 1.2rem);
    --fz-3: clamp(1.35rem, 1.2rem + .8vw, 1.75rem);
    --fz-4: clamp(1.9rem, 1.6rem + 1.5vw, 2.6rem);
    /* Bilder */
    --image-border-radius: 50px;
    --image-distance: 3px;
}

html, body {
    height: 100%;
    font-family: var(--font-sans);
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Registriere animierbare Variablen für die Blob-Positionen */
@property --p1x {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 12%;
}

@property --p1y {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8%;
}

@property --p2x {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 88%;
}

@property --p2y {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 10%;
}

@property --p3x {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 20%;
}

@property --p3y {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 88%;
}

/* -------- Dominanter Pastell-Canvas -------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(1000px 700px at var(--p1x) var(--p1y), var(--peach-300) 0%, transparent 60%), radial-gradient(1100px 750px at var(--p2x) var(--p2y), var(--mint-300) 0%, transparent 60%), radial-gradient(1100px 800px at var(--p3x) var(--p3y), var(--lav-300) 0%, transparent 60%), linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    filter: saturate(1.25) contrast(1.04);
    pointer-events: none;
    /* sanftes „Driften“ */
    animation: pastelDrift 38s ease-in-out infinite alternate;
}

/* Keyframes: wir verschieben die drei Blob-Zentren minimal */
@keyframes pastelDrift {
    0% {
        --p1x: 12%;
        --p1y: 8%;
        --p2x: 88%;
        --p2y: 10%;
        --p3x: 20%;
        --p3y: 88%;
    }

    50% {
        --p1x: 16%;
        --p1y: 11%;
        --p2x: 84%;
        --p2y: 13%;
        --p3x: 23%;
        --p3y: 84%;
    }

    100% {
        --p1x: 13%;
        --p1y: 6%;
        --p2x: 90%;
        --p2y: 8%;
        --p3x: 18%;
        --p3y: 90%;
    }
}

/* Nutzer, die weniger Bewegung wünschen, bekommen statisch */
@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container .main {
   flex: 1 0 auto;
   min-height: auto;
}

input, textarea, select, button, label {
    font-family: inherit;
}

/* -------- Page-Load Animation -------- */
.start-cloud {
    animation: cloudIn 1s ease forwards;
}

@keyframes cloudIn {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    70% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.start-pop {
    animation: popIn 0.6s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}

/* -------- Bilder -------- */
.responsive-image {
    display: block;
    overflow: hidden;
}

.responsive-image > img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.image-main {
    flex: 1 1 50%; /* zwei nebeneinander, wenn möglich */
    aspect-ratio: 4 / 3;
    max-width: calc(50% - var(--image-distance) / 2);
    border-radius: var(--image-border-radius);
}

.image-main > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Passende Rundung (links, rechts) */
.d-flex.flex-wrap > .image-main:not(:last-child) {
    margin-bottom: 0;
    margin-right: var(--image-distance);
    border-radius: var(--image-border-radius) 0 0 var(--image-border-radius);
}
.d-flex.flex-wrap > .image-main:is(:last-child) {
    border-radius: 0 var(--image-border-radius) var(--image-border-radius) 0;
}

.home-image-expand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem var(--image-distance);
}

.home-image-expand-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.home-image-expand-item > .image-main {
    flex: none;
    width: 100%;
    max-width: 100%;
}

.home-image-expand-item:first-child > .image-main {
    border-radius: var(--image-border-radius) 0 0 var(--image-border-radius);
}

.home-image-expand-item:last-child > .image-main {
    border-radius: 0 var(--image-border-radius) var(--image-border-radius) 0;
}

@media (max-width: 768px) {
    .image-main {
        flex: 1 1 100%; /* auf kleinen Screens ganze Breite */
        max-width: 100%;
    }

    /* Passende Rundung (oben, unten) */
    .d-flex.flex-wrap > .image-main:not(:last-child) {
        margin-bottom: var(--image-distance);
        margin-right: 0;
        border-radius: var(--image-border-radius) var(--image-border-radius) 0 0;
    }
    .d-flex.flex-wrap > .image-main:is(:last-child) {
        border-radius: 0 0 var(--image-border-radius) var(--image-border-radius);
    }

    .home-image-expand-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home-image-expand-item {
        gap: .75rem;
    }

    .home-image-expand-item > .image-main,
    .home-image-expand-item:first-child > .image-main,
    .home-image-expand-item:last-child > .image-main {
        border-radius: 50px;
    }
}

.image-team {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* -------- Team -------- */
.team-page {
    padding-bottom: 2.5rem;
}

.team-intro {
    max-width: 880px;
    margin-bottom: 1.5rem;
}

.team-intro h1 {
    margin-bottom: .75rem;
}

.team-intro p {
    color: var(--text-weak);
    font-size: var(--fz-2);
    line-height: 1.65;
    margin-bottom: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.team-member {
    width: 100%;
}

.team-detail-panel {
    position: relative;
    grid-column: 1 / -1;
    order: 2;
    padding: 1.25rem 1.4rem;
    color: var(--text-weak);
    background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
    backdrop-filter: blur(14px) saturate(1.18);
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    line-height: 1.55;
}

.team-detail-panel--collapsed {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    visibility: hidden;
    pointer-events: none;
    border-width: 0;
    opacity: 0;
}

.team-detail-panel--collapsed::before {
    display: none;
}

.team-detail-panel--expanded {
    visibility: visible;
    opacity: 1;
}

.team-detail-panel::before {
    content: "";
    position: absolute;
    top: -12px;
    left: var(--team-detail-anchor, 50%);
    width: 24px;
    height: 12px;
    background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
    backdrop-filter: blur(14px) saturate(1.18);
    border-left: 1px solid rgba(255,255,255,.58);
    border-top: 1px solid rgba(255,255,255,.58);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transform: translateX(-50%);
}

.team-detail-panel--member-1 {
    --team-detail-anchor: 12.5%;
}

.team-detail-panel--member-2 {
    --team-detail-anchor: 37.5%;
}

.team-detail-panel--member-3 {
    --team-detail-anchor: 62.5%;
}

.team-detail-panel--member-4 {
    --team-detail-anchor: 87.5%;
}

.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
    backdrop-filter: blur(14px) saturate(1.18);
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 50px 50px 20px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.team-member--active .team-card {
    border-color: color-mix(in srgb, var(--brand-500) 36%, rgba(255,255,255,.58));
    box-shadow: var(--shadow-md);
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand-500) 36%, rgba(255,255,255,.58));
    box-shadow: var(--shadow-md);
}

.team-card__image-frame {
    aspect-ratio: 4 / 5;
    width: 100%;
    background: linear-gradient(135deg, var(--lav-100), var(--mint-100));
}

.team-card__image {
    display: block;
    width: 100%;
    height: 100%;
}

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

.team-card__body {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem;
}

.team-card__name {
    margin: 0;
    color: var(--text);
    font-size: var(--fz-3);
    font-weight: 800;
    line-height: 1.15;
}

.team-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: .65rem .8rem;
    text-align: left;
    font-family: inherit;
    color: var(--brand-700);
    background: color-mix(in srgb, var(--lav-100) 70%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-500) 28%, transparent);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
    list-style: none;
}

.team-card__summary::after {
    content: "";
    display: inline-flex;
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    background:
        linear-gradient(#fff, #fff) center / .62rem .16rem no-repeat,
        linear-gradient(#fff, #fff) center / .16rem .62rem no-repeat,
        var(--brand-500);
    border-radius: 50%;
}

.team-member--active .team-card__summary::after {
    background:
        linear-gradient(#fff, #fff) center / .62rem .16rem no-repeat,
        var(--brand-500);
}

.team-card__details-content {
    max-width: 960px;
}

.team-card__details-content > :last-child {
    margin-bottom: 0;
}

.expandable-two__content--collapsed {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    visibility: hidden;
    pointer-events: none;
}

.expandable-two__content--expanded {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    visibility: visible;
    pointer-events: auto;
}

.team-contact {
    margin-top: 1.75rem;
}

@media (max-width: 1199.98px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-member--1,
    .team-member--2 {
        order: 1;
    }

    .team-member--3,
    .team-member--4 {
        order: 3;
    }

    .team-detail-panel--member-1,
    .team-detail-panel--member-2 {
        order: 2;
    }

    .team-detail-panel--member-3,
    .team-detail-panel--member-4 {
        order: 4;
    }

    .team-detail-panel--member-1,
    .team-detail-panel--member-3 {
        --team-detail-anchor: 25%;
    }

    .team-detail-panel--member-2,
    .team-detail-panel--member-4 {
        --team-detail-anchor: 75%;
    }
}

@media (max-width: 575.98px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card__body {
        padding: .9rem;
    }

    .team-card__name {
        font-size: 1.45rem;
    }

    .team-member--1 {
        order: 1;
    }

    .team-detail-panel--member-1 {
        order: 2;
    }

    .team-member--2 {
        order: 3;
    }

    .team-detail-panel--member-2 {
        order: 4;
    }

    .team-member--3 {
        order: 5;
    }

    .team-detail-panel--member-3 {
        order: 6;
    }

    .team-member--4 {
        order: 7;
    }

    .team-detail-panel--member-4 {
        order: 8;
    }

    .team-detail-panel {
        padding: 1rem;
    }

    .team-detail-panel {
        --team-detail-anchor: 50%;
    }
}

.image-text {
    aspect-ratio: 4 / 3;
    border-radius: var(--image-border-radius);
    max-width: 100%;
    height: auto;
}

.image-text > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.image-text[src*="prag"],
.media-figure > .image-text:has(img[src*="prag"]) {
    aspect-ratio: 16 / 9;
}

.image-text--portrait {
    aspect-ratio: 3 / 4;
}

/* Container cleared floats*/
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* Bildbox und Slideshow responsiv */
.media-wrap {
    display: block;
}

.media-body {
    min-width: 0;
}

.media-figure > * {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: var(--image-border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.media-figure > .carousel-drop {
    aspect-ratio: 2560 / 1500;
    border-radius: 50px 50px 50px 10px;
    overflow: hidden;
}

.carousel-drop .carousel-inner,
.carousel-drop .carousel-item,
.carousel-drop__image {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.carousel-drop .carousel-inner {
    position: relative;
}

.carousel-drop__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.testimonial-section {
    display: grid;
    gap: 1rem;
}

.testimonial-section__intro p {
    color: var(--text-weak);
    margin-bottom: 0;
}

.testimonial-carousel {
    position: relative;
    min-height: 18rem;
    padding: 2.5rem 3.75rem 3rem;
    background: rgba(255,255,255,.76);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 20px 20px 20px 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.testimonial-carousel .carousel-inner,
.testimonial-carousel .carousel-item {
    min-height: 12rem;
}

.testimonial-slide {
    display: grid;
    align-content: center;
    min-height: 12rem;
    text-align: center;
}

.testimonial-slide blockquote {
    margin: 0;
}

.testimonial-slide p {
    max-width: 48rem;
    margin: 0 auto 1.25rem;
    font-size: var(--fz-2);
    line-height: 1.65;
}

.testimonial-slide footer {
    display: grid;
    gap: .15rem;
    color: var(--text-weak);
}

.testimonial-slide footer strong {
    color: var(--text);
}

.testimonial-carousel .carousel-indicators {
    margin-bottom: 1rem;
}

.testimonial-carousel .carousel-indicators [data-bs-target] {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background-color: var(--brand-600);
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 3rem;
    opacity: 1;
}

.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-size: 55%;
    background-color: var(--brand-500);
    box-shadow: var(--shadow-sm);
}

.media-figure > .rain-drop-image-left {
    border-radius: 50px 50px 10px 50px;
}

.media-figure > .rain-drop-image-right {
    border-radius: 50px 50px 50px 10px;
}

.media-figure {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .media-figure {
        width: 50%;
    }

    .media-figure.media-figure-left {
        float: left;
        margin: 0 1.25rem .75rem 0;
    }

    .media-figure.media-figure-right {
        float: right;
        margin: 0 0 .75rem 1.25rem;
    }
}


/* -------- Glas-Effekt für wichtige Flächen -------- */
.site-header .navbar,
.hero,
.card,
.site-footer {
    margin-top: auto;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    backdrop-filter: blur(14px) saturate(1.25);
    border: 1px solid rgba(255,255,255,.38);
    box-shadow: var(--shadow-md);
}

/* Fallback ohne backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header .navbar,
    .hero,
    .card,
    .site-footer {
        background: #ffffff; /* opak */
        border: 1px solid var(--border);
    }
}

/* -------- Header / Nav -------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar {
    border-bottom: 1px solid var(--border);
}

    .site-header .navbar .container-fluid {
        flex-wrap: wrap;
    }

/* Nav horizontal + Umbruch + Abstände */
.navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .25rem .5rem;
}

/* Link-Padding kompakter auf kleinen Screens */
.navbar .nav-link {
    padding: .5rem .75rem;
    color: var(--muted);
    font-size: var(--fz-1);
}

    .navbar .nav-link.active,
    .navbar .nav-link:hover {
        color: var(--text)
    }

.logo-full {
    max-height: 2rem;
    display: inline;
}

/* Wenn der Platz knapp wird → kleineres Logo */
@media (max-width: 768px) {
    .logo-full {
        max-height: 1.5rem;
    }
}

/* Wenn der Platz sehr knapp wird → kein Logo */
@media (max-width: 600px) {
    .logo-full {
        display: none;
    }
}

/* Call to Action */
.btn-cta {
    font-size: 1rem;
    font-weight: 700;
}

/* Wenn der Platz knapp wird → kleinerer Call to Action Button */
@media (max-width: 768px) {
    .btn-cta {
        font-size: .75rem;
        font-weight: 600;
    }
}

/* -------- Hero -------- */
.hero {
    padding: 3rem 2rem 2rem 2rem;
    border-radius: 5px;
    border-bottom: 1px solid rgba(255,255,255,.35);
    margin-bottom: 1.5rem;
}
    .hero .lead {
        color: var(--text-weak);
    }

    .hero h1 {
        font-size: var(--fz-4);
        font-weight: 800;
        margin-bottom: .35rem;
    }

    .hero .hero-subtitle {
        font-size: var(--fz-3);
        font-weight: 700;
        margin-bottom: .5rem;
    }

    .hero .logo {
        max-height: 5em;
    }

/* -------- Buttons (Grundstil) -------- */
.btn,
.btn-primary {
    --bs-btn-bg: var(--brand-500);
    --bs-btn-border-color: var(--brand-500);
    --bs-btn-hover-bg: var(--brand-600);
    --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-700);
    --bs-btn-active-border-color: var(--brand-700);
    border-radius: 999px;
    font-weight: 500;
    padding: .62rem 1.1rem;
    box-shadow: var(--shadow-sm);
    color: #fff; /* Standard: weiße Schrift */
}

/* -------- Hintergrund -------- */
.bg-primary {
    --bs-primary-rgb: var(--brand-500-rgb);
}

/* -------- Kleine, farbige „Chips“ -------- */
.pbm-chip {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    background: var(--mint-300);
    color: #064e3b;
}

/* -------- Nutzen-Icons -------- */
.benefit {
    padding-left: 2rem;
    position: relative
}

    .benefit::before {
        content: "●";
        position: absolute;
        left: 0;
        top: .15rem;
        width: 1rem;
        height: 1rem;
        line-height: 1rem;
        text-align: center;
        color: #fff;
        background: var(--brand-500);
        border-radius: 50%;
        font-size: .6rem;
        box-shadow: var(--shadow-sm);
    }


/* -------- Cards -------- */
.card {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.38);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

    .card .card-title {
        font-weight: 800
    }

/* Kurskarte */
.course-card .price {
    font-size: 1.05rem
}

.badge {
    border-radius: 999px;
    padding: .4rem .6rem;
    font-weight: 700;
    letter-spacing: .2px;
}

    .badge.bg-success {
        background-color: var(--ok) !important
    }

    .badge.bg-secondary {
        background-color: #cbd5e1 !important;
        color: #111 !important
    }

/* Subtile Pastell-Rahmen */
.color-frame {
    outline: 8px solid rgba(224, 209, 255, 0.26);
    outline-offset: -8px;
}

/* -------- Listen -------- */
ul {
    margin-bottom: .75rem
}

    ul li {
        margin: .25rem 0
    }

/* -------- Formulare -------- */
.form-label {
    font-weight: 700
}

.form-control, .form-select, textarea {
    border-radius: var(--radius-md);
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.88);
    color: var(--text);
    padding: .65rem .8rem;
    -webkit-backdrop-filter: blur(6px) saturate(1.1);
    backdrop-filter: blur(6px) saturate(1.1);
}

    .form-control:focus, .form-select:focus, textarea:focus {
        border-color: var(--brand-500);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 25%, transparent);
    }

/* -------- Anmeldung -------- */
.card.help {
    background: linear-gradient(180deg, color-mix(in srgb, var(--mint-300) 22%, rgba(255,255,255,.9)) 0%, rgba(255,255,255,.85) 100%);
}

.feedback-pop {
    animation: fb-pop 360ms ease-out both;
}

@keyframes fb-pop {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    60% {
        opacity: 1;
        transform: translateY(0) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1.00);
    }
}

/* -------- Footer -------- */
.site-footer {
    background: radial-gradient(180px 120px at 85% 10%, var(--mint-100), transparent 60%), radial-gradient(140px 100px at 10% 40%, var(--peach-100), transparent 60%), rgba(255,255,255,.68);
}

.no-break {
    word-break: keep-all; /* bricht nur an Leerzeichen, nicht an Bindestrichen */
}

/* -------- Bewegungspräferenz -------- */
@media (prefers-reduced-motion:reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}

/* -------- Fehler-UI -------- */
#blazor-error-ui {
    background: #fee2e2;
    color: #111;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    padding: .6rem 1.2rem;
    box-shadow: 0 -2px 6px rgba(0,0,0,.08);
    display: none;
    z-index: 1000
}

    #blazor-error-ui .dismiss {
        cursor: pointer
    }

@media (max-width: 575.98px) {
    .testimonial-carousel {
        min-height: 20rem;
        padding: 2rem 2.75rem 3rem;
        border-radius: 36px 36px 36px 10px;
    }

    .testimonial-carousel .carousel-control-prev,
    .testimonial-carousel .carousel-control-next {
        width: 2.5rem;
    }

    .testimonial-slide p {
        font-size: 1rem;
    }
}
