/* ===============================
   DESIGN SYSTEM
================================= */
:root {
    --color-primary: #2f3861;
    --color-secondary: #9096ac;
    --color-bg-light: #ffffff;
    --color-text: #4a4a49;
    --color-white: #ffffff;
    --color-accent: #cda177;
    --color-selection: rgba(1, 33, 105, 0.5);

    --font-base: "Montserrat";

    --max-width: 1200px;
    --radius: 4px;
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.06);
    --header-height: 70px;

    --bg-page: var(--color-bg-light);
    --bg-surface: var(--color-white);
    --text-main: var(--color-text);
    --text-heading: var(--color-primary);
    --border-accent: var(--color-primary);
}

@media (prefers-color-scheme: dark) {

    :root,
    body.dark-mode {
        --color-primary: #2f3861;
        --color-secondary: #9096ac;
        --color-bg-light: #4a4a49;
        --color-text: #ffffff;
        --color-white: #4a4a49;
        --color-accent: #cda177;
        --color-selection: rgba(1, 33, 105, 0.5);
    }
}




/* ===============================
   RESET & BASIS
================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    min-width: 0;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.main {
    flex: 1;
    padding-top: var(--header-height);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    z-index: 100;
}


/* ===============================
   LAYOUT
================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}


.section {
    padding: 4rem 0;
}

.section.light {
    background: var(--color-bg-light);
}


.main,
.container,
.card,
.info-card,
.leistung-card {
    min-width: 0;
}


/* ===============================
   TYPOGRAFIE
================================= */
h1,
h2,
h3 {
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: var(--color-accent);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

p {
    max-width: 65ch;
}

b,
strong {
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
}

.text-block {
    max-width: 70ch;
    margin-left: 0;
    margin-right: 0;
}

p,
li,
td,
a,
span {
    overflow-wrap: break-word;
    word-break: break-word;
}

input,
textarea,
button,
.a11y-panel,
select {
    font-family: var(--font-base);
}

::selection {
    background-color: var(--color-selection);
    color: var(--color-white);
}

/* ===============================
   FLOATING SVG BUTTON
================================ */

.floating-termin-svg {
    position: fixed;
    right: 0rem;
    bottom: 0rem;
    z-index: 1000;

    display: block;
    line-height: 0;
    /* 🔥 verhindert unsichtbare Abstände */
}

.floating-termin-svg img {
    width: 200px;
    /* 🔧 HIER steuerst du die Größe */
    height: auto;
    display: block;
    cursor: pointer;

    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Mobile */
@media (max-width: 600px) {
    .floating-termin-svg {
        right: 0rem;
        bottom: 0rem;
    }

    .floating-termin-svg img {
        width: 150px;
    }
}

/* ===============================
   HEADER / NAVIGATION
================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 10px;
    background: var(--color-bg-light);
    z-index: 100;
}

.header-inner {
    position: relative;
    /* 🔥 ENTSCHEIDEND */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo links fixieren */
.logo-wrap {
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    height: 42px;
}

.logo-weiß {
    height: 42px;
}

@media (prefers-color-scheme: dark) {
    .logo {
        display: none;
    }

    .logo-weiß {
        display: block;
    }
}

@media (prefers-color-scheme: light) {
    .logo {
        display: block;
    }

    .logo-weiß {
        display: none;
    }
}

/* Navigation rechts */
.nav-menu {
    display: flex;
    gap: 2rem;
    text-transform: uppercase;
}


.nav-menu a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .nav-menu a {
        color: var(--color-text)
    }
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .nav-menu a::after {
        background: var(--color-text);
    }
}

.nav-menu a.active {
    color: var(--color-accent);
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .nav-menu a.active::after {
        background: var(--color-accent);
    }
}


.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

    width: 40px;
    height: 40px;

    align-items: center;
    justify-content: center;
}

.nav-toggle img {
    width: 28px;
    height: 28px;
    display: block;
}

@media (prefers-color-scheme: dark) {
    .nav-toggle .menü-blau {
        display: none;
    }

    .nav-toggle .menü-weiß {
        display: block;
    }
}

@media (prefers-color-scheme: light) {
    .nav-toggle .menü-blau {
        display: block;
    }

    .nav-toggle .menü-weiß {
        display: none;
    }
}

.Namen {
    font-weight: 500;
    font-size: 1rem;
    color: #4a4a49;
    font-style: normal;
}

/* Mobile */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        box-shadow: var(--shadow-soft);
        display: none;
        text-transform: uppercase;
    }

    .nav-menu.open {
        display: flex;
    }
}

@media (prefers-color-scheme: dark) {}

/* ===============================
   HERO
================================= */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: url("../assets/hero.jpg") center / cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    /* ← Transparenz hier steuern */
    z-index: 0;
}

.hero>* {
    position: relative;
    z-index: 1;
}


.hero-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    margin-left: 5%;
    max-width: 700px;
    box-shadow: var(--shadow-soft);
}

@media (prefers-color-scheme: dark) {
    .hero-text {
        background: rgba(74, 74, 73, 0.85);
    }
}

.hero-text h1 {
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}


.hero-text img {
    width: 22px;
    height: 22px;
    opacity: 0.65;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    margin-top: 1.5rem;
    padding: 0.75rem 1.6rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

@media (prefers-color-scheme: dark) {
    .btn {
        color: var(--color-text);
    }
}

/* ===============================
   SUB HERO (UNTERSEITEN)
================================ */

.sub-hero {
    position: relative;
    min-height: 32vh;
    /* 🔽 kleiner als vorher */
    width: 100%;
    display: flex;
    align-items: center;
    /* vertikal */
    justify-content: center;
    /* horizontal */

    background:
        var(--hero-image) center center / cover no-repeat;

}


.sub-hero-inner {
    max-width: var(--max-width);
    padding: 1.5rem;
    margin: 0 auto;
    text-align: center;
}

.sub-hero-inner::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 1.2rem auto 0;
    background: var(--color-accent);
}

.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    /* ← Transparenz hier steuern */
    z-index: 0;
}

@media (prefers-color-scheme: dark) {

    .sub-hero::before,
    .hero::before {
        background: rgba(74, 74, 73, 0.35);
        /* ← Transparenz hier steuern */
        z-index: 0;
    }

    .sub-hero-inner {
        background: rgba(74, 74, 73, 0.9);
    }

    .sub-hero h1 {
        color: var(--color-secondary);
    }
}

@media (prefers-color-scheme: light) {

    .sub-hero-inner {
        background: rgba(255, 255, 255, 0.9);
    }
}

.sub-hero>* {
    position: relative;
    z-index: 1;
}


.sub-hero-text {
    padding: 3rem;
    margin-left: 5%;
    max-width: 700px;
    box-shadow: var(--shadow-soft);
}

.sub-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--color-primary);
}

.sub-hero p {
    margin-top: 0.6rem;
    font-size: 1rem;
    color: var(--color-text);
    max-width: 60ch;
}

@media (max-width: 600px) {
    .sub-hero {
        min-height: 30vh;
    }

    .sub-hero p {
        font-size: 0.95rem;
    }
}

.sub-hero.compact {
    min-height: 28vh;
}


/* ===============================
   KARTEN & GRID
================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-white);
    padding: 2rem;
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
}

/* ===============================
   BILDER
================================= */
img {
    max-width: 100%;
    display: block;
}

.team-img {
    margin: 2rem 0;
    border-radius: var(--radius);
}

/* ===============================
   FOOTER
================================= */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* RECHTE LINK-GRUPPE */
.links-rechts-footer {
    display: flex;
    /* 🔥 wichtig */
    gap: 1.2rem;
    /* Abstand zwischen Links */
}

.footer a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.9;
}

.footer a:hover {
    opacity: 0.5;
}

@media (prefers-color-scheme: dark) {

    .footer,
    .footer a {
        color: var(--color-text);
    }
}


/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        right: 1rem;
        background: var(--color-white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-soft);
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .hero-text {
        margin: 1.5rem;
    }

    .hero-text h1 {
        font-size: clamp(1.6rem, 3vw, 2rem);
    }
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ===============================
   KONTAKTSEITE
================================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;

    /* 🔥 HIER DER FIX */
    max-width: 100%;
}

.contact-card {
    background: var(--color-white);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--color-primary);
    width: 100%;
}

.opening-hours {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.opening-hours span:last-child {
    font-weight: 500;
}

/* ===============================
   TEAMSEITE
================================ */

.intro-text {
    margin: 1.5rem 0 3rem;
    max-width: 60ch;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--color-bg-light);
    padding: 1.8rem;
    border-left: 4px solid var(--color-primary);
}

.team-member h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.team-member p {
    margin: 0;
    color: var(--color-secondary);
}

/* ===============================
   SPRECHZEITEN – CONTACT CARD
================================ */

.sprechzeiten-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    column-gap: 2rem;
    row-gap: 0.8rem;
    margin-top: 1.5rem;
}

.sprechzeiten-grid .day {
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
}

.sprechzeiten-grid .day-notfall {
    font-weight: 500;
    font-size: 10px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.sprechzeiten-note a {
    font-style: italic;
    text-decoration: none;
    color: var(--color-accent);
}

.sprechzeiten-note a:hover {
    opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
    .sprechzeiten-grid .day {
        color: var(--color-text);
    }
}

.sprechzeiten-grid .time {
    white-space: nowrap;
}

.sprechzeiten-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.85;
}

.sprechzeiten-note p {
    margin: 0.2rem 0;
}

/* Mobile */
@media (max-width: 800px) {
    .sprechzeiten-grid {
        grid-template-columns: 1fr;
    }

    .sprechzeiten-grid .time {
        margin-bottom: 0.6rem;
    }

    .sprechzeiten-grid .day-notfall {
        font-size: 15px;
    }
}

/* ===============================
   CONTACT CARD – KONTAKT
================================ */

.kontakt-liste {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.kontakt-zeile {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--color-text);
}

.kontakt-zeile img {
    width: 22px;
    height: 22px;
    opacity: 0.65;
    flex-shrink: 0;
}

.kontakt-icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.kontakt-icon img {
    position: absolute;
    inset: 0;
    width: 22px;
    height: 22px;
    opacity: 0.65;
}

@media (prefers-color-scheme: dark) {
    .kontakt-zeile-icon-weiß {
        display: block;
    }

    .kontakt-zeile-icon-grau {
        display: none;
    }
}

@media (prefers-color-scheme: light) {
    .kontakt-zeile-icon-weiß {
        display: none;
    }

    .kontakt-zeile-icon-grau {
        display: block;
    }
}

.kontakt-zeile span {
    line-height: 1.4;
}

.kontakt-zeile:hover span {
    text-decoration: none;
    opacity: 0.5;
}


/* ===============================
   CONTACT CARD – BANK
================================ */

.bank-liste {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
}

.bank-liste li {
    margin: 0.4rem 0;
}

.bank-liste a {
    text-decoration: none;
    color: var(--color-text);
}

/* ===============================
   LEISTUNGEN
================================ */

.container-wide {
    max-width: 1600px;
    /* 🔥 breiter als normaler Content */
    margin: 0 auto;
    padding: 2rem;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.leistung-card {
    background: var(--color-white);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--color-primary);
}

.leistung-card h3 {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.leistung-card ul {
    padding-left: 1.2rem;
    margin: 0.8rem 0 0;
}

.leistung-card li {
    margin: 0.4rem 0;
}

.leistungen-intro {
    max-width: 75ch;
    margin-bottom: 4rem;
    text-align: left;
}

.leistungen-intro p {
    margin-bottom: 1.2rem;
}

.leistungen-claim {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--color-primary);
}

li a {
    color: var(--color-accent);
    font-weight: 500;
    font-style: italic;
    text-decoration: none;
}

li a:hover {
    color: var(--color-secondary);
}

/* Mobile */
@media (max-width: 700px) {
    .leistungen-grid {
        grid-template-columns: 1fr;
    }

    .leistung-card {
        padding: 2rem;
    }
}

/* ===============================
   PRAXIS – INHALT
================================ */

.text-block {
    max-width: 70ch;
}

.closing-text {
    max-width: 65ch;
}

/* ===============================
   PRAXIS – GALERIE
================================ */

.praxis-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 1000px;
}

.praxis-galerie img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ===============================
   INFO-CARDS (PRAXIS)
================================ */

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
}

.info-card {
    background: var(--color-white);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--color-primary);
}

.info-card h2 {
    margin-top: 0;
}

.info-card p {
    max-width: none;
    /* wichtig: nicht künstlich schmal */
}

/* Mobile */
@media (max-width: 600px) {
    .info-card {
        padding: 2rem;
    }
}

/* ===============================
   RECHTSTEXTE (IMPRESSUM / DATENSCHUTZ)
================================ */

.legal-container {
    max-width: 1200px;
    /* deutlich breiter */
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
    row-gap: 3rem;
}

.legal-block h2 {
    margin-top: 0;
}

.legal-block p {
    max-width: none;
    /* 🔥 GANZ WICHTIG */
}

/* Mobile */
@media (max-width: 900px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   GOÄ-TABELLE
================================ */

.goae-table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    font-size: 0.95rem;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

/* Kopfzeile */
.goae-table thead th {
    text-align: left;
    padding: 0.9rem 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Zellen */
.goae-table td {
    padding: 0.8rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid #e6e6e6;
}

/* Spalten-Ausrichtung */
.goae-table td:nth-child(1),
.goae-table td:nth-child(3) {
    white-space: nowrap;
    font-weight: 500;
    color: var(--color-primary);
}

.goae-table td:nth-child(4) {
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
}

/* Zebra-Streifen (ruhig) */
.goae-table tbody tr:nth-child(even) {
    background: #fafafa;
}

@media (prefers-color-scheme: dark) {
    .goae-table tbody tr:nth-child(even) {
        background: var(--color-bg-light);
    }

    .goae-table thead th {
        color: var(--color-text);
    }

    .goae-table {
        color: var(--color-text);
    }

}

/* Summenzeile */
.goae-table tfoot td {
    padding: 1rem;
    font-weight: 600;
    background: var(--color-bg-light);
    border-top: 2px solid var(--color-primary);
}

.goae-table tfoot td:last-child {
    text-align: right;
    color: var(--color-primary);
}

.goae-table {
    table-layout: fixed;
}

.goae-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 700px) {
    .goae-table {
        display: block;
        width: 100%;
        overflow-x: hidden;
    }
}


/* ===============================
   MOBILE DARSTELLUNG
================================ */

@media (max-width: 700px) {

    /* Card-Layout bleibt */
    .goae-table tr {
        padding: 1.2rem 1.4rem;
    }

    /* GOÄ-Nr. */
    .goae-table td:nth-child(1) {
        font-size: 0.8rem;
        color: var(--color-secondary);
        margin-bottom: 0.4rem;
    }

    /* LEISTUNG = Fokus */
    .goae-table td:nth-child(2) {
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: none;
        /* 🔥 empfehlenswert */
        color: var(--color-primary);
        margin-bottom: 0.6rem;
        line-height: 1.45;
    }

    /* Satz */
    .goae-table td:nth-child(3) {
        font-size: 0.85rem;
        color: var(--color-secondary);
        margin-bottom: 0.4rem;
    }

    /* Betrag */
    .goae-table td:nth-child(4) {
        margin-top: 0.6rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--color-primary);
        text-align: right;
    }

    @media (prefers-color-scheme: dark) {

        /* Card-Layout bleibt */
        .goae-table tr {
            padding: 1.2rem 1.4rem;
        }

        .goae-table thead tr th {
            color: var(--color-text);
        }

        /* GOÄ-Nr. */
        .goae-table td:nth-child(1) {
            font-size: 0.8rem;
            color: var(--color-text);
            margin-bottom: 0.4rem;
        }

        /* LEISTUNG = Fokus */
        .goae-table td:nth-child(2) {
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: none;
            /* 🔥 empfehlenswert */
            color: var(--color-text);
            margin-bottom: 0.6rem;
            line-height: 1.45;
        }

        /* Satz */
        .goae-table td:nth-child(3) {
            font-size: 0.85rem;
            color: var(--color-text);
            margin-bottom: 0.4rem;
        }

        /* Betrag */
        .goae-table td:nth-child(4) {
            margin-top: 0.6rem;
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--color-text);
            text-align: right;
        }

        .goea-table td::before {
            color: var(--color-text);
        }

    }

}

a {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.a11y-toggle {
    position: fixed;
    bottom: 1.2rem;
    left: 1.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    cursor: pointer;
    z-index: 1200;
}

.a11y-toggle img {
    width: 26px;
    height: 26px;
    margin: auto;
}

/* ===============================
   A11Y PANEL
================================ */

.a11y-toggle {
    position: fixed;
    bottom: 1.2rem;
    left: 1.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    cursor: pointer;
    z-index: 1200;
}

.a11y-toggle img {
    width: 26px;
    height: 26px;
}

/* Panel */
.a11y-panel {
    position: fixed;
    bottom: 80px;
    left: 1.2rem;
    width: 260px;
    background: #fff;
    color: #000;
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
    border-radius: 6px;
    z-index: 1200;
}

.a11y-panel h2 {
    font-size: 1.1rem;
    margin-top: 0;
}

.a11y-group {
    margin-bottom: 1rem;
}

.a11y-buttons {
    display: flex;
    gap: 0.5rem;
}

.a11y-buttons button,
.a11y-close {
    padding: 0.4rem 0.8rem;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
}

/* ===============================
   HIGH CONTRAST MODE
================================ */

body.high-contrast {
    background: var(--color-text);
    color: var(--color-white);
}

body.high-contrast .leistungen-card li {
    background: var(--color-text);
    color: var(--color-text);
}

body.high-contrast a {
    color: #ffd400;
}

body.high-contrast .header,
body.high-contrast .footer,
body.high-contrast .card,
body.high-contrast .info-card {
    background: var(--color-text);
    color: var(--color-white);
    border-color: #ffd400;
}

.cv-section {
    padding: 4rem 1.5rem;
    background: var(--color-bg-light);
}

.cv-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 3rem;
}

.cv-title {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.cv-intro {
    max-width: 60ch;
    margin-bottom: 2.5rem;
}

.cv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-list li {
    margin-bottom: 1.2rem;
    font-weight: bold;
}

.cv-year {
    font-weight: 600;
    min-width: 90px;
    display: inline-block;
    color: var(--color-primary);
    font-weight: normal;
}

.cv-place {
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-weight: normal;
}

.cv-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

/* Mobile */
@media (max-width: 900px) {
    .cv-wrapper {
        grid-template-columns: 1fr;
    }
}


/* ===============================
   Rezeptformular – Praxis CI
================================ */

.recipe-order {
    max-width: 640px;
}

.recipe-order__title {
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.recipe-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
    border: 1px solid var(--color-secondary);
    border-radius: var(--radius);
    padding: 0.65rem 0.7rem;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg-light);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft)
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
}

.form-submit:hover {
    background: color-mix(in srgb, var(--color-primary) 85%, black);
}

.form-success {
    color: var(--color-primary);
    font-weight: 500;
}

.btn-lebenslauf {
    border: 2px solid var(--color-primary);
    opacity: 1;
    background-color: transparent;
    box-shadow: var(--shadow-soft);
    padding: 0.5rem;
    border-radius: var(--radius);
    margin-top: 10px;
    color: var(--color-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-lebenslauf:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.nav-menu a:focus,
.nav-menu a:focus-visible,
.nav-toggle:focus,
.nav-toggle:focus-visible {
    outline: none;
    box-shadow: none;
}

/* ===============================
   ===== MOBILE WIDTH FIXES =====
   ans Dateiende setzen
================================= */

/* Global overflow guard */
html,
body {
    overflow-x: hidden;
}

/* harte Wortumbrüche */
h1,
h2,
h3,
p,
li,
td,
span {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Container nie breiter als Viewport */
.section,
.main {
    max-width: 100%;
}

/* GRID MIN WIDTH FIXES */

.leistungen-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.info-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Card padding mobil reduzieren */
@media (max-width: 600px) {

    .leistung-card,
    .info-card,
    .contact-card,
    .card {
        padding: 1.6rem !important;
    }
}

/* Hero mobile safe */
@media (max-width: 600px) {

    .hero-text,
    .sub-hero-text {
        margin: 1rem !important;
        padding: 1.5rem !important;
        max-width: 100%;
    }
}

/* Nav Menu darf nicht Viewport sprengen */
@media (max-width: 768px) {
    .nav-menu {
        width: calc(100vw - 32px);
        max-width: 320px;
    }
}

/* Tabellen dürfen umbrechen */
.goae-table td {
    white-space: normal !important;
}

/* Bilder nie breiter */
img {
    max-width: 100%;
    height: auto;
}

/* Floating Button begrenzen */
.floating-termin-svg img {
    max-width: 45vw;
}

/* ===============================
   MOBILE GOÄ-TABELLE – CARD VIEW
================================ */

@media (max-width: 700px) {

    .goae-table,
    .goae-table thead,
    .goae-table tbody,
    .goae-table th,
    .goae-table tr {
        display: block;
        width: 100%;
    }

    .goae-table thead {
        display: none;
        word-break: none;
    }

    .goae-table tr {
        margin-bottom: 1.2rem;
        background: var(--color-bg-light);
        box-shadow: var(--shadow-soft);
        padding: 1rem;
    }

    .goae-table td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.4rem 0;
        border: none;
        text-align: right;
    }

    .goae-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-primary);
        text-transform: uppercase;
        text-align: left;
        flex: 1;
    }

    .goae-table td:last-child {
        font-weight: 600;
    }

    .goae-table tfoot {
        display: block;
    }

    .goae-table tfoot tr {
        background: var(--color-primary);
        color: white;
        border-radius: var(--radius);
    }

    .goae-table tfoot td::before {
        content: "";
    }

    .goae-table td::before {
        min-width: 7.5rem;
        /* 🔥 verhindert Buchstaben-Stapel */
        flex: 0 0 7.5rem;
        white-space: normal;
    }
}

.news-section {
    padding: 5rem 1.5rem;
    background: var(--bg-page);
}

.news-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.news-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--text-main);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--bg-surface);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    border-left: 4px solid var(--color-primary);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.news-card h3 {
    margin: 0.8rem 0;
    color: var(--text-heading);
}

.news-card a {
    display: inline-block;
    margin-top: 1rem;
    font-weight: normal;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.news-card a:hover {
    font-weight: bold;
    color: var(--color-accent);
}

.news-card.important {
    border-left: 4px solid var(--color-accent);
}

.news-button {
    text-align: center;
    margin-top: 3rem;
}

.news-page {
    background: var(--bg-page);
}

/* Hero */

.news-hero {
    padding: 4rem 1.5rem 2rem 1.5rem;
    text-align: center;
}

.news-hero h1 {
    margin-bottom: 0.6rem;
}

.news-hero-intro {
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-text);
}

/* Archiv */

.news-archive {
    padding: 3rem 1.5rem 5rem 1.5rem;
}

.news-archive-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.news-archive-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.news-archive-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: 0.6rem;
}

.news-archive-item h2 {
    margin-bottom: 0.8rem;
}

.news-archive-item p {
    line-height: 1.6;
}

.hero-popup {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-popup.hidden {
    display: none;
}

.hero-popup-box {
    background: var(--color-bg-light);
    padding: 2rem;
    max-width: 500px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-popup-box h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hero-popup-box button {
    margin-top: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--radius);
}

.closures-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.closure-item {
    padding: 1rem;
    background: var(--color-bg-light);
    border-radius: var(--radius);
}

.closure-date {
    font-weight: 600;
    color: var(--color-primary);
}

.closure-title {
    font-weight: 600;
    margin-top: 0.2rem;
}

.next-closures {
    padding: 3rem;
    padding-top: 1rem;
    background-color: var(--color-primary);
    display: flex;
    align-items: flex-start;
}

.next-closures .container h2 {
    align-items: flex-start;
    color: white;
}