/* ==========================================================================
   1. VARIABLEN & GRUNDEINSTELLUNGEN
   ========================================================================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #c0a375;
    --accent-hover: #b09365;
    --accent-light: #fcfbf8;
    --text-color: #333;
    --light-bg: #f4f6f7;
    --white: #ffffff;
    --header-height: 90px;
    --header-scroll-height: 70px;
    --border-radius: 6px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Lange deutsche Komposita duerfen nie ueber den Viewport hinauslaufen */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
dt,
dd,
figcaption,
blockquote,
label,
.hb-kicker,
.hb-hero-chips span,
.section-title,
.section-intro {
    overflow-wrap: break-word;
    word-break: break-word;
}

section[id] {
    scroll-margin-top: calc(var(--header-scroll-height) + 24px);
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

body.modal-open .quick-contact {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Hintergrund für Seiten mit Header-Boxen (Kontakt, Impressum, Datenschutz) */
body:has(.page-header),
body:has(.contact-header),
html:not(:has(header)) body {
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (Gemeinsam)
   ========================================================================== */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.04);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header.scrolled {
    height: var(--header-scroll-height);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    color: var(--accent-color);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 3px;
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu a:not([href$="kontakt.php"])::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:not([href$="kontakt.php"]):hover::after {
    width: 100%;
}

.nav-menu a.nav-link.is-active {
    color: var(--accent-color);
}

.nav-menu a.nav-link.is-active:not([href$="kontakt.php"])::after {
    width: 100%;
    height: 2px;
    box-shadow: 0 4px 10px rgba(192, 163, 117, 0.45);
}

.nav-menu a.nav-link-accent {
    color: var(--accent-color);
    font-weight: 650;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    border: 0;
    background: rgba(18, 29, 41, 0.52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Kontakt-Button Styling im Menü */
.nav-menu a[href$="kontakt.php"] {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 4px 6px rgba(192, 163, 117, 0.2);
}

.nav-menu a[href$="kontakt.php"]:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(192, 163, 117, 0.4);
}

/* Hamburger Menü (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 35px;
    height: 25px;
    position: relative;
    z-index: 2000;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 11px;
}

.bar:nth-child(3) {
    top: 22px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ==========================================================================
   3. SEITEN-KÖPFE (Impressum & Kontakt)
   ========================================================================== */
.page-header,
.contact-header {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    margin-top: 0;
}

.page-header {
    padding: 150px 20px 80px;
}

.contact-header {
    padding: 130px 20px 90px;
}

.page-header h1,
.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-header p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* ==========================================================================
   4. DYNAMISCHE CONTAINER
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Container auf Startseite (innerhalb von Sections) */
section .container {
    padding: 0 20px;
}

/* Container für Impressum & Datenschutz (Weiße Box) */
.page-header+.container,
html:not(:has(header)) .container {
    max-width: 800px;
    background: var(--white);
    border-radius: 8px;
    z-index: 10;
}

/* Spezifisch für Impressum */
.page-header+.container {
    margin: -40px auto 80px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Spezifisch für Datenschutz (Seite ohne Header) */
html:not(:has(header)) .container {
    margin: 60px auto;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Container für Kontaktseite */
.contact-header+.container {
    max-width: 1100px;
    margin: -60px auto 50px;
    padding: 0 20px;
    z-index: 10;
    box-shadow: none;
    background: transparent;
}

.legal-container {
    max-width: 850px;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.legal-container h2 {
    display: block;
    width: fit-content;
}

.legal-note {
    background: #fff8ed;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    color: #5f4a2d;
    padding: 18px 20px;
    margin: 25px 0;
}

/* ==========================================================================
   5. RECHTSTEXTE (Typografie in Impressum & Datenschutz)
   ========================================================================== */
html:not(:has(header)) .container h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

.page-header+.container h2,
.page-header+.container h3,
html:not(:has(header)) .container h2,
html:not(:has(header)) .container h3 {
    color: var(--primary-color);
    display: inline-block;
}

.page-header+.container h2,
html:not(:has(header)) .container h2 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.page-header+.container h3 {
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    margin: 30px 0 15px;
}

html:not(:has(header)) .container h3 {
    font-size: 1.1rem;
    color: #555;
    margin-top: 20px;
}

.page-header+.container p,
.page-header+.container ul,
html:not(:has(header)) .container p,
html:not(:has(header)) .container ul {
    margin-bottom: 20px;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Listenpunkte wiederherstellen */
.page-header+.container ul,
html:not(:has(header)) .container ul {
    padding-left: 20px;
    list-style: disc;
}

.page-header+.container li,
html:not(:has(header)) .container li {
    margin-bottom: 8px;
}

/* Links im Text */
.page-header+.container a.text-link,
html:not(:has(header)) .container a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.page-header+.container a.text-link {
    border-bottom: 1px solid var(--accent-color);
}

html:not(:has(header)) .container a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.page-header+.container a.text-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--primary-color);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   6. STARTSEITE (Hero, Sections, Cards)
   ========================================================================== */
section {
    padding: 90px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 25px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-title.left-aligned {
    text-align: left;
}

.section-title.left-aligned::after {
    left: 0;
    transform: none;
}

.section-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Abschluss-Absatz einer Sektion mit weiterführenden Links */
.section-outro {
    max-width: 750px;
    margin: 50px auto 0;
    text-align: center;
    color: #666;
    font-size: 1.02rem;
    line-height: 1.8;
}

.section-outro a {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--accent-color);
}

.section-outro a:hover {
    color: var(--accent-hover);
}

/* Verlinkte Karten-Überschriften in der Leistungsübersicht */
.service-card h3 a {
    color: inherit;
}

.service-card h3 a:hover,
.service-card h3 a:focus-visible {
    color: var(--accent-hover);
}

.hero {
    background:
        linear-gradient(90deg, rgba(26, 37, 47, 0.92) 0%, rgba(32, 45, 58, 0.84) 42%, rgba(32, 45, 58, 0.32) 100%),
        image-set(
            url('assets/images/ivica-zadro-hero-2000.webp') type('image/webp'),
            url('assets/images/ivica-zadro-hero-2000.jpg') type('image/jpeg')
        );
    background-size: cover;
    background-position: center right;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: var(--white);
    padding: 130px 20px 70px;
    position: relative;
}

.hero-content {
    max-width: 720px;
    width: 100%;
    margin-left: max(20px, calc((100vw - 1100px) / 2));
}

.klassik-section {
    background-color: var(--light-bg);
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 .hero-h1-name {
    display: block;
    margin-top: 0.5rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   PROFILBILD (Desktop: Deutlich größer)
   ========================================================================== */
.hero-profile {
    position: absolute;
    top: 180px;
    left: 5%;
    width: 180px;
    /* Vergrößert von 140px */
    height: 180px;
    /* Vergrößert von 140px */
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: transform 0.3s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.65rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 660px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.8;
}

.hero-heilberufe-link {
    width: fit-content;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 2rem;
    padding: 10px 4px 9px;
    border-bottom: 2px solid rgba(192, 163, 117, 0.82);
    color: var(--white);
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.hero-heilberufe-link i {
    color: var(--accent-color);
    font-size: 0.84rem;
}

.hero-heilberufe-link:hover,
.hero-heilberufe-link:focus-visible {
    color: var(--accent-color);
    border-color: var(--white);
    gap: 23px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Über mich */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.about-img-container img {
    width: 100%;
    height: clamp(460px, 42vw, 560px);
    object-fit: cover;
    object-position: 60% 38%;
    display: block;
    border-radius: 4px;
    box-shadow: 15px 15px 0 0 #f0f0f0;
    border: 1px solid #eee;
}

.about-content h3,
.about-content .about-kicker {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.about-content h2,
.about-content .about-claim {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.about-content p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.quote-box {
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--secondary-color);
}

.btn-text-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.btn-text-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--primary-color);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card,
.heilberufe-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 4px;
    transition: all 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card {
    border: 1px solid #eee;
}

.service-card::before,
.heilberufe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transition: height 0.3s;
}

.service-card::before {
    background: var(--primary-color);
}

.heilberufe-card::before {
    background: var(--accent-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-card:hover::before {
    height: 5px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-icon {
    color: var(--secondary-color);
    font-size: 1.4rem;
    opacity: 0.8;
}

.service-intro {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 12px;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.service-list li::before {
    content: "\2713";
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: #cfd5db;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.25s ease;
}

.service-card:hover .service-list li::before,
.heilberufe-card:hover .service-list li::before {
    color: var(--accent-color);
}

/* Heilberufe Section */
.heilberufe-section {
    background-color: var(--accent-light);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.heilberufe-card {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(192, 163, 117, 0.2);
}

.heilberufe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(192, 163, 117, 0.15);
}

.heilberufe-card h3 {
    color: #8d7043;
    margin-bottom: 15px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.intro-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    line-height: 1.6;
}

/* Spezialisierungsnachweis */
.proof-section {
    background:
        radial-gradient(circle at 82% 22%, rgba(192, 163, 117, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 249, 0.98));
    border-top: 1px solid rgba(44, 62, 80, 0.08);
}

.heilberufe-card h3 .fas {
    color: var(--accent-color);
}

.proof-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(520px, 1.05fr);
    gap: 60px;
    align-items: center;
}

.proof-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.proof-points {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.proof-points div {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-left: 3px solid var(--accent-color);
    border-radius: 6px;
    padding: 16px 18px;
    box-shadow: 0 10px 26px rgba(26, 37, 47, 0.04);
}

.proof-points strong,
.proof-points span {
    display: block;
}

.proof-points strong {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.proof-points span {
    color: #666;
    line-height: 1.5;
}

.certificate-card {
    position: relative;
    padding: 4px;
    overflow: visible;
    isolation: isolate;
}

.certificate-heading {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 4px 4px 18px;
    color: var(--primary-color);
    text-align: center;
}

.certificate-heading span {
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.certificate-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 0.72;
    padding: 20px 20px 56px;
    border: 0;
    border-radius: 8px;
    background:
        linear-gradient(135deg, #ffffff, #f6f4ef);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 0 0 1px rgba(44, 62, 80, 0.08),
        0 12px 28px rgba(26, 37, 47, 0.12);
    transition: transform 0.34s ease, box-shadow 0.34s ease;
}

.certificate-preview picture {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(26, 37, 47, 0.14);
}

.certificate-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 53% 48%;
    display: block;
    transform: scale(1.035);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.certificate-stack {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
    border-radius: 12px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(192, 163, 117, 0.14), rgba(192, 163, 117, 0) 60%),
        linear-gradient(180deg, #fbfaf7, #f1ede5);
    box-shadow:
        inset 0 0 0 1px rgba(192, 163, 117, 0.22),
        0 20px 50px rgba(26, 37, 47, 0.08);
}

.certificate-stack::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 32px;
    bottom: 32px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(192, 163, 117, 0.5), transparent);
    transform: translateX(-0.5px);
    pointer-events: none;
}

.certificate-preview-primary,
.certificate-preview-secondary {
    position: relative;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(44, 62, 80, 0.08), 0 10px 24px rgba(26, 37, 47, 0.1);
}

.certificate-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-top: 2px solid var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.certificate-card:hover .certificate-preview-primary,
.certificate-card:hover .certificate-preview-secondary,
.certificate-preview:hover,
.certificate-preview:focus-visible {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(44, 62, 80, 0.08), 0 22px 44px rgba(26, 37, 47, 0.18);
}

.certificate-preview:hover::after,
.certificate-preview:focus-visible::after {
    opacity: 1;
}

.certificate-preview:focus-visible {
    outline: 3px solid rgba(192, 163, 117, 0.42);
    outline-offset: 4px;
}

.certificate-preview:hover img {
    transform: scale(1.055);
}

.certificate-doc-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    background: linear-gradient(180deg, #fbfaf7, #f1ede5);
    color: var(--primary-color);
    border-top: 1px solid rgba(192, 163, 117, 0.35);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 11px 12px;
}

.certificate-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 6px));
    background: rgba(44, 62, 80, 0.92);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 7px 13px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.certificate-preview:hover .certificate-zoom,
.certificate-preview:focus-visible .certificate-zoom {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.certificate-meta {
    padding: 16px 4px 2px;
    color: var(--secondary-color);
    text-align: center;
}

.certificate-meta strong,
.certificate-meta span {
    display: block;
}

.certificate-meta strong {
    font-size: 0.98rem;
}

.certificate-meta span {
    color: #687783;
    font-size: 0.88rem;
    margin-top: 3px;
}

/* ==========================================================================
   7. KONTAKTSEITE KOMPONENTEN
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: var(--white);
    padding: 45px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid var(--accent-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.contact-card:hover {
    transform: translateY(-7px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(192, 163, 117, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: background 0.3s;
}

.contact-card:hover .icon-circle {
    background-color: rgba(192, 163, 117, 0.2);
}

.contact-card h3,
.contact-card .contact-card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.35rem;
    font-weight: 600;
}

.contact-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.contact-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.contact-form-section {
    max-width: 960px;
    margin: 42px auto 58px;
}

.contact-form-panel {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    gap: 0;
    align-items: stretch;
    background: var(--white);
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(26, 37, 47, 0.1);
    overflow: hidden;
}

.contact-form-intro {
    position: relative;
    padding: 34px 34px;
    background:
        linear-gradient(145deg, #2c3e50 0%, #20303d 58%, #192532 100%);
    color: var(--white);
    min-height: 100%;
}

.contact-form-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.form-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form-intro h2 {
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

.contact-form-intro p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    line-height: 1.65;
}

.form-trust-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.form-trust-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.form-trust-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(192, 163, 117, 0.16);
    color: var(--accent-color);
    flex: 0 0 30px;
    font-size: 0.82rem;
}

.contact-form {
    padding: 32px 34px 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    position: relative;
    margin-bottom: 14px;
}

.form-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--primary-color);
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-field label span {
    color: #7b8790;
    font-size: 0.78rem;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(44, 62, 80, 0.16);
    border-radius: 6px;
    background: #fbfaf7;
    color: var(--text-color);
    font: inherit;
    font-size: 0.97rem;
    padding: 12px 13px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.form-field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary-color) 50%),
        linear-gradient(135deg, var(--primary-color) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.form-field textarea {
    resize: vertical;
    min-height: 128px;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: rgba(192, 163, 117, 0.72);
    background: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(192, 163, 117, 0.16);
}

.form-field.field-invalid input,
.form-field.field-invalid select,
.form-field.field-invalid textarea {
    border-color: #b84a4a;
    background: #fff8f8;
    animation: fieldShake 0.34s ease;
}

.field-error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #9d3939;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.field-error.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.message-tools {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.char-count {
    flex: 0 0 auto;
    margin-top: 6px;
    color: #7b8790;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-consent {
    margin: 4px 0 18px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #687783;
    font-size: 0.84rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.consent-label a {
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-consent.field-invalid .consent-label {
    color: #9d3939;
}

.form-consent.field-invalid input[type="checkbox"] {
    outline: 2px solid #b84a4a;
    outline-offset: 2px;
}

.form-consent .field-error {
    margin-top: 4px;
    margin-left: 28px;
}

.form-hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 188px;
    min-height: 44px;
    padding: 11px 22px;
    border: 0;
    border-radius: 4px;
    background: var(--primary-color);
    color: var(--white);
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(44, 62, 80, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.contact-submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.contact-submit-btn:hover,
.contact-submit-btn:focus-visible {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(44, 62, 80, 0.22);
}

.contact-submit-btn:hover::before,
.contact-submit-btn:focus-visible::before {
    transform: translateX(120%);
}

.contact-submit-btn:focus-visible {
    outline: 3px solid rgba(192, 163, 117, 0.38);
    outline-offset: 4px;
}

.contact-form.is-sending .contact-submit-btn {
    pointer-events: none;
    background: var(--secondary-color);
}

.contact-form.is-sending .contact-submit-btn i,
.contact-form.is-sending .btn-label {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
}

.contact-form.is-sending .btn-loader {
    opacity: 1;
    transform: scale(1);
    animation: spin 0.8s linear infinite;
}

.form-status {
    position: relative;
    flex: 1 1 260px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 6px;
    padding: 12px 14px 12px 44px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.form-status::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.form-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.form-status.is-visible::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.form-status.is-success {
    background: #edf8f1;
    color: #236b3a;
    box-shadow: inset 0 0 0 1px rgba(35, 107, 58, 0.16);
    animation: successPulse 0.58s ease;
}

.form-status.is-success::before {
    content: "\f00c";
}

.form-status.is-error {
    background: #fff4f4;
    color: #9d3939;
    box-shadow: inset 0 0 0 1px rgba(157, 57, 57, 0.16);
    animation: fieldShake 0.34s ease;
}

.form-status.is-error::before {
    content: "\f071";
}

/* Contact experience: quiet motion, clear feedback and a dedicated receipt. */
.contact-form-panel { border-radius: 18px; }
.contact-form-section { scroll-margin-top: 110px; }
.contact-form-intro { display: flex; flex-direction: column; padding: 40px 34px; }
.contact-form-intro h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -0.025em; }
.form-personal-note { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 42px; }
.form-monogram { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #c0a37580; border-radius: 50%; font: 22px Georgia, serif; color: #dfc9a6; }
.form-personal-note strong, .form-personal-note div span { display: block; }
.form-personal-note div span { margin-top: 3px; color: #c4cdd4; font-size: .78rem; }
.contact-form-intro .form-direct-link { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #ffffff24; font-size: .82rem; }
.form-direct-link a { display: inline-block; margin-top: 6px; color: #e3cda9; font-size: 1rem; text-decoration: none; }
.form-required-note, .form-delivery-note, .form-field-hint { color: #5d6c76; font-size: .8rem; line-height: 1.6; }
.form-required-note { margin: 0 0 24px; }
.form-delivery-note { margin: 16px 0 0; }
.form-field-hint { display: block; margin-top: 8px; }
.contact-form .form-field input, .contact-form .form-field textarea { border-radius: 8px; }
.contact-form .form-field.field-invalid input, .contact-form .form-field.field-invalid textarea, .contact-form .form-status.is-error { animation: none; }
.contact-form .form-field:focus-within label { color: #836537; }
.contact-form .form-field label { transition: color .2s ease; }
.contact-form .char-count { color: #5d6c76; font-variant-numeric: tabular-nums; }
.contact-form .char-count.is-near-limit { color: #9d3939; }
.contact-form .contact-submit-btn { min-height: 50px; border-radius: 8px; }
.contact-form .contact-submit-btn i { transition: transform .22s ease; }
.contact-form .contact-submit-btn:hover i { transform: translate(3px, -3px); }
.contact-form .contact-submit-btn:hover { background: #354e63; }
.contact-form.is-sending .btn-label { opacity: 1; padding-right: 22px; }
.contact-form.is-sending .btn-loader { right: 16px; width: 17px; height: 17px; }
.contact-form.is-sending .contact-submit-btn i { display: none; }
.contact-form .form-status { flex-basis: 100%; }
.contact-form .form-status:empty { display: none; }
.contact-form .form-status.is-pending { padding-left: 14px; color: #52616d; background: #f5f3ee; }
.contact-form [disabled] { cursor: wait; }
.contact-form[hidden], .form-success[hidden] { display: none; }
.form-success { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 34px; }
.form-success:focus { outline: none; }
.form-success { scroll-margin-top: 140px; }
.form-success h2 { margin: 0 0 16px; font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.2; color: var(--primary-color); }
.form-success p { color: #52616d; font-size: .95rem; line-height: 1.7; margin-bottom: 20px; }
.form-success .form-kicker { color: #80643b; font-size: .7rem; }
.form-success-mark { width: 64px; height: 64px; border-radius: 50%; background: #edf4ee; color: #35674a; margin-bottom: 28px; }
.form-success-mark svg { width: 100%; height: 100%; }
.form-success-mark path { stroke-dasharray: 44; stroke-dashoffset: 0; animation: contact-check .65s ease both; }
.form-success .form-receipt-note { background: #f7f5f1; border-left: 2px solid #c0a375; padding: 16px; font-size: .84rem; }
.form-success .form-reference { font-size: .78rem; letter-spacing: .03em; }
.form-again-link { color: var(--primary-color); font-size: .9rem; font-weight: 700; text-underline-offset: 5px; }
@keyframes contact-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes contact-check { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }
/* The form and its receipt share one surface; only their state changes. */
.contact-form-stage { min-width: 0; align-self: start; overflow: hidden; }
.contact-form-panel { box-shadow: 0 18px 60px rgba(26,37,47,.08); }
.contact-form .form-field input, .contact-form .form-field textarea {
    background: #fbfcfc;
    border-color: #dce2e6;
    border-radius: 11px;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.contact-form .form-field.field-invalid input, .contact-form .form-field.field-invalid textarea {
    border-color: #b76a60;
    background: #fffaf9;
}
.contact-form .field-error { font-weight: 500; transition: opacity .28s ease, transform .28s ease; }
.contact-form .form-status.is-error {
    background: #fcf3f0;
    color: #8d453c;
    box-shadow: inset 3px 0 #b76a60;
    border-radius: 10px;
    animation: contact-feedback .35s ease both;
}
.contact-form .contact-submit-btn { border-radius: 11px; box-shadow: 0 5px 14px #2c3e501a; }
.form-success-mark { position: relative; flex-shrink: 0; width: 60px; height: 60px; margin-bottom: 24px; animation: contact-seal .7s cubic-bezier(.22,1,.36,1) both; }
.form-success-mark::after { content: ""; position: absolute; inset: -7px; border: 1px solid #35674a20; border-radius: 50%; animation: contact-seal .9s .1s both; }
.form-success-mark path { animation-delay: .15s; }
.form-success > .form-kicker, .form-success > h2, .form-success > p, .form-success > section, .form-success > a {
    animation: contact-reveal .65s .12s cubic-bezier(.22,1,.36,1) both;
}
.form-success > section { animation-delay: .23s; }
.form-success .form-receipt-note { width: 100%; box-sizing: border-box; border: 1px solid #e6ebe5; background: #f6f9f5; border-radius: 11px; padding: 13px 16px; }
.form-summary { width: 100%; box-sizing: border-box; margin: 2px 0 22px; border: 1px solid #e3e7ea; border-radius: 14px; padding: 20px; background: #fbfcfc; }
.form-summary[hidden] { display: none; }
.form-summary h3 { margin: 0 0 16px; font-size: .92rem; color: var(--primary-color); }
.form-summary-details { margin: 0; display: grid; gap: 10px; }
.form-summary-details > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 12px; font-size: .82rem; line-height: 1.5; }
.form-summary-details > div[hidden] { display: none; }
.form-summary-details dt { color: #64727c; }
.form-summary-details dd { margin: 0; color: #2c3e50; overflow-wrap: anywhere; }
.form-success .form-summary-message { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #e3e7ea; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; max-height: 240px; overflow-y: auto; }
@keyframes contact-feedback { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes contact-seal { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 600px) {
    .form-personal-note { padding-top: 24px; }
    .form-success { padding: 32px 22px; }
    .contact-form .message-tools { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-form-panel *, .contact-form-panel *::before, .contact-form-panel *::after { transition: none !important; animation: none !important; }
}

.map-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.map-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

.map-intro {
    max-width: 750px;
    margin: -12px auto 32px;
    text-align: center;
    color: #555;
    font-size: 1.02rem;
    line-height: 1.75;
}

.map-intro a {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--accent-color);
}

.map-intro a:hover {
    color: var(--accent-hover);
}

/* Hinweis zur Terminvereinbarung in der Kontaktkarte */
.contact-card-note {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* Brotkrümelnavigation in den zentrierten Seitenköpfen */
.page-header .hb-breadcrumb,
.contact-header .hb-breadcrumb {
    justify-content: center;
}

/* Redaktioneller Stand von Inhaltsseiten */
.content-updated {
    margin: 44px auto 0;
    max-width: 750px;
    text-align: center;
    color: #7a8794;
    font-size: 0.88rem;
    line-height: 1.7;
}

.map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 430px;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    background-image: radial-gradient(#ccc 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-consent-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    margin: 0 20px;
}

.map-consent-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.map-consent-box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

.map-consent-box a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.btn-load-map {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-transform: uppercase;
}

.btn-load-map:hover {
    background-color: var(--accent-hover);
}

.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid rgba(44, 62, 80, 0.18);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 700;
    background: var(--white);
}

.map-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.map-attribution {
    margin-top: 12px;
    color: #667;
    font-size: 0.9rem;
    text-align: center;
}

/* ==========================================================================
   8. FOOTER & MODAL
   ========================================================================== */
footer {
    background-color: #1a252f;
    color: var(--white);
    padding: 70px 20px 30px;
    font-size: 0.95rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto 50px;
    gap: 40px;
}

.footer-col h4,
.footer-col .footer-heading {
    color: var(--accent-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-col p {
    color: #8fa1b3;
    margin-bottom: 12px;
}

.footer-col a {
    color: #8fa1b3;
    transition: color 0.3s;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

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

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: #555;
    font-size: 0.85rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal img.certificate-modal-img {
    clip-path: inset(0 2.6% 1.2% 3.2%);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
    border: 0;
    background: transparent;
    line-height: 1;
}

.close:hover,
.close:focus-visible {
    color: var(--accent-color);
}

/* Schnellkontakt */
.quick-contact {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1300;
    pointer-events: none;
}

.desktop-contact-fab {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 18px 44px rgba(26, 37, 47, 0.22);
    pointer-events: auto;
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.desktop-contact-fab i {
    color: var(--accent-color);
    font-size: 1rem;
    flex: 0 0 auto;
}

.desktop-contact-fab span {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.94rem;
    font-weight: 700;
    transform: translateX(-6px);
    transition: max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, transform 0.26s ease, margin-left 0.26s ease;
}

.desktop-contact-fab:hover,
.desktop-contact-fab:focus-visible {
    width: 146px;
    gap: 9px;
    background: #223446;
    box-shadow: 0 22px 52px rgba(26, 37, 47, 0.28);
    transform: translateY(-2px);
}

.desktop-contact-fab:hover span,
.desktop-contact-fab:focus-visible span {
    max-width: 82px;
    opacity: 1;
    transform: translateX(0);
}

.mobile-contact-pill {
    display: none;
}

/* ==========================================================================
   9. MOBILE OPTIMIERUNG
   ========================================================================== */
@media (max-width: 960px) {

    .quick-contact {
        left: 0;
        right: 0;
        bottom: max(6px, env(safe-area-inset-bottom));
        display: flex;
        justify-content: center;
        padding: 0 14px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    }

    .quick-contact.is-ready {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    body.nav-open .quick-contact {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .desktop-contact-fab {
        display: none;
    }

    .mobile-contact-pill {
        width: min(100%, 390px);
        min-height: 62px;
        display: grid;
        grid-template-columns: 1fr 1fr 38px;
        align-items: center;
        gap: 6px;
        padding: 7px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 16px 46px rgba(26, 37, 47, 0.2);
        backdrop-filter: blur(16px);
        pointer-events: auto;
        animation: mobilePillEnter 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .mobile-contact-pill[hidden] {
        display: none !important;
    }

    .quick-contact-action,
    .quick-contact-close {
        min-width: 0;
        min-height: 48px;
        border: 0;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        font: inherit;
        font-weight: 700;
    }

    .quick-contact-action {
        gap: 8px;
        padding: 0 12px;
        background: rgba(44, 62, 80, 0.06);
    }

    .quick-contact-call {
        background: var(--primary-color);
        color: var(--white);
    }

    .quick-contact-action i {
        color: var(--accent-color);
        font-size: 0.92rem;
    }

    .quick-contact-call i {
        color: var(--accent-color);
    }

    .quick-contact-close {
        width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        background: rgba(44, 62, 80, 0.08);
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .quick-contact-close:hover,
    .quick-contact-close:focus-visible {
        background: rgba(44, 62, 80, 0.14);
        transform: rotate(8deg);
    }

    .mobile-contact-pill.is-dismissing {
        animation: mobilePillExit 0.38s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
    }

    /* Nav & Header */
    .nav-container {
        padding: 0 1.15rem;
    }

    .hamburger {
        display: block;
        width: 48px;
        height: 48px;
        margin-right: -9px;
        border-radius: 50%;
    }

    .hamburger:focus-visible {
        outline: 3px solid rgba(192, 163, 117, 0.45);
        outline-offset: 2px;
    }

    .hamburger .bar {
        width: 28px;
        left: 10px;
    }

    .hamburger .bar:nth-child(1) {
        top: 14px;
    }

    .hamburger .bar:nth-child(2) {
        top: 23px;
    }

    .hamburger .bar:nth-child(3) {
        top: 32px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(88vw, 360px);
        max-width: none;
        height: 100vh;
        height: 100dvh;
        background-color: var(--white);
        padding: 94px 20px max(28px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        z-index: 1500;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-bottom-left-radius: 20px;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        text-align: left;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        min-height: 56px;
        display: flex;
        align-items: center;
        padding: 14px 12px;
        border-bottom: 1px solid #edf0f2;
        width: 100%;
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

    .nav-menu a:not([href$="kontakt.php"])::after {
        display: none;
    }

    .nav-menu a.nav-link.is-active:not([href$="kontakt.php"]) {
        color: var(--primary-color);
        background: rgba(192, 163, 117, 0.12);
        box-shadow: inset 3px 0 0 var(--accent-color);
    }

    .nav-menu a.nav-link-accent {
        color: #8d7043;
        box-shadow: inset 3px 0 0 rgba(192, 163, 117, 0.75);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a[href$="kontakt.php"] {
        width: 100%;
        min-height: 52px;
        margin-top: 24px;
        margin-left: 0;
        border-bottom: none;
        justify-content: center;
    }

    .nav-menu a.nav-link.is-active:not([href$="kontakt.php"])::after {
        width: 0;
    }

    /* Startseite / Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-cta-row {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        gap: 12px;
        margin: 0 auto;
    }

    .hero-heilberufe-link {
        min-height: 44px;
        margin: 0 auto 1.5rem;
        padding: 8px 3px;
        font-size: 1rem;
    }

    /* Mobile Reparatur für den Hero-Bereich */
    .hero {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        background:
            radial-gradient(circle at 85% 20%, rgba(192, 163, 117, 0.18), transparent 48%),
            linear-gradient(160deg, #16212b 0%, #1a252f 45%, #202d3a 100%);
        padding: 108px 18px 38px;
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
        max-width: none;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.15rem;
        max-width: 34rem;
    }

    /* Index Sections */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-img-container {
        display: block;
        max-width: 380px;
        width: 100%;
        margin: 0 auto;
    }

    .about-img-container img {
        width: 100%;
        height: auto;
        max-height: 440px;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: 50% 25%;
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        border: 1px solid #e5e5e5;
    }

    .about-content {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
    }

    .services-grid,
    .hb-audience-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .service-card,
    .heilberufe-card {
        padding: 28px 22px;
    }

    .proof-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .section-title.left-aligned {
        text-align: center;
    }

    .section-title.left-aligned::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .proof-content {
        text-align: center;
    }

    .proof-points div {
        text-align: left;
    }

    .certificate-card {
        padding: 14px;
        overflow: hidden;
    }

    .certificate-heading {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding-bottom: 14px;
    }

    .certificate-stack {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: none;
        margin: 0;
        padding: 10px;
    }

    .certificate-stack::before {
        top: 16px;
        bottom: 16px;
    }

    .certificate-preview-primary,
    .certificate-preview-secondary {
        box-shadow: inset 0 0 0 1px rgba(44, 62, 80, 0.08), 0 6px 16px rgba(26, 37, 47, 0.08);
    }

    .certificate-card:hover .certificate-preview-primary,
    .certificate-card:hover .certificate-preview-secondary {
        transform: none;
    }

    .certificate-preview {
        aspect-ratio: 0.74;
        padding: 10px;
    }

    .certificate-preview img {
        object-position: 53% 47%;
    }

    .certificate-doc-label {
        bottom: 10px;
        font-size: 0.66rem;
        padding: 5px 9px;
    }

    .certificate-zoom {
        display: none;
    }

    /* Dynamische Header & Boxen */
    .page-header {
        padding: 120px 20px 50px;
    }

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

    .page-header+.container {
        margin: -30px 15px 50px;
        padding: 30px 20px;
    }

    .contact-header {
        padding: 110px 20px 60px;
    }

    .contact-header h1 {
        font-size: 1.9rem;
    }

    .contact-header+.container {
        margin-top: -30px;
        padding: 0 15px;
    }

    /* Kontakt */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        padding: 20px;
        border-bottom: none;
        border-left: 5px solid var(--accent-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 15px 0 0;
        flex-shrink: 0;
    }

    .card-text-wrapper {
        flex: 1;
        min-width: 150px;
    }

    .contact-card h3,
    .contact-card .contact-card-title {
        margin-bottom: 4px;
        font-size: 1.15rem;
    }

    .contact-card p {
        margin-bottom: 0;
        font-size: 0.9rem;
        line-height: 1.4;
        color: #777;
    }

    .contact-btn {
        width: 100%;
        margin-top: 15px;
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
        background-color: var(--secondary-color);
    }

    .contact-form-section {
        margin: 30px 0 46px;
    }

    .contact-form-panel {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-intro {
        padding: 28px 22px;
    }

    .contact-form-intro h2 {
        font-size: 1.45rem;
    }

    .contact-form-intro p {
        font-size: 0.96rem;
    }

    .form-trust-list {
        gap: 12px;
        margin-top: 18px;
    }

    .form-trust-list div {
        align-items: flex-start;
        font-size: 0.92rem;
    }

    .contact-form {
        padding: 24px 20px 22px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .message-tools {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .contact-submit-btn {
        width: 100%;
    }

    .form-status {
        width: 100%;
        flex-basis: auto;
    }

    .map-container {
        aspect-ratio: auto;
        min-height: 420px;
    }

    .map-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0 15px;
    }

    .map-consent-box {
        width: calc(100% - 16px);
        min-width: 0;
        margin: 0 8px;
        padding: 24px 16px;
    }

    .map-actions {
        flex-direction: column;
    }

    .btn-load-map,
    .map-link {
        width: 100%;
        min-width: 0;
        padding-left: 14px;
        padding-right: 14px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Footer & Logo */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    body:has(.quick-contact) footer {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .logo {
        align-items: flex-start;
    }

    .footer-col {
        min-width: 100%;
    }
}

@keyframes mobilePillEnter {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.96);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes mobilePillExit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(calc(100% + 18px)) scale(0.94);
    }
}

@keyframes fieldShake {
    0%,
    100% {
        transform: translateX(0);
    }

    24% {
        transform: translateX(-5px);
    }

    48% {
        transform: translateX(5px);
    }

    72% {
        transform: translateX(-3px);
    }
}

@keyframes successPulse {
    0% {
        transform: translateY(8px) scale(0.98);
    }

    70% {
        transform: translateY(0) scale(1.02);
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   10. SCROLL ANIMATIONEN
   ========================================================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    /* Schiebt das Element leicht nach unten */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
    /* Optimiert die Performance im Browser */
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    /* Setzt die Verschiebung zurück */
}

/* Wichtig für die Barrierefreiheit: Deaktiviert die Animation für Nutzer, 
   die in ihrem Betriebssystem "Reduzierte Bewegung" eingestellt haben. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   11. HEILBERUFE-LANDINGPAGE
   ========================================================================== */

/* --- Wiederverwendbare Buttons & Kicker --- */
.hb-kicker {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.btn-solid,
.btn-ghost,
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.btn-solid {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(192, 163, 117, 0.3);
}

.btn-solid:hover,
.btn-solid:focus-visible {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(192, 163, 117, 0.42);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(44, 62, 80, 0.2);
}

.btn-dark:hover,
.btn-dark:focus-visible {
    background: #223446;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(44, 62, 80, 0.28);
}

/* --- Hero (Heilberufe-Variante) --- */
.hero.hero-hb {
    background:
        linear-gradient(115deg, rgba(20, 29, 38, 0.95) 0%, rgba(28, 40, 52, 0.88) 44%, rgba(41, 54, 68, 0.55) 100%),
        radial-gradient(circle at 86% 22%, rgba(192, 163, 117, 0.28), transparent 44%),
        image-set(
            url('assets/images/ivica-zadro-hero-2000.webp') type('image/webp'),
            url('assets/images/ivica-zadro-hero-2000.jpg') type('image/jpeg')
        );
    background-size: cover;
    background-position: center right;
    min-height: 78vh;
}

.hb-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.hb-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.hb-breadcrumb a:hover {
    color: var(--accent-color);
}

.hb-breadcrumb i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.hb-breadcrumb [aria-current] {
    color: var(--white);
    font-weight: 600;
}

.hero-hb h1 .accent {
    color: var(--accent-color);
}

.hb-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: -1.5rem 0 2.4rem;
}

.hb-hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hb-hero-chips i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.hb-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Trust-Bar --- */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.trust-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 26px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-item i {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 163, 117, 0.12);
    color: var(--accent-color);
    font-size: 1.1rem;
}

.trust-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.98rem;
    line-height: 1.2;
}

.trust-item span {
    display: block;
    color: #7b8790;
    font-size: 0.82rem;
    margin-top: 2px;
}

/* --- Warum spezialisierte Beratung --- */
.hb-why {
    background-color: var(--light-bg);
}

.hb-why-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

/* Ohne Nebenspalte: Textspalte mittig und in lesbarer Breite halten */
.hb-why-grid:not(:has(.hb-pain-card)) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 860px;
    margin: 0 auto;
}

.hb-why-text p {
    color: #555;
    font-size: 1.06rem;
    line-height: 1.85;
    margin-bottom: 18px;
}

.hb-pain-card {
    background: var(--white);
    border: 1px solid rgba(192, 163, 117, 0.15);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hb-pain-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 163, 117, 0.4);
    box-shadow: 0 20px 40px rgba(192, 163, 117, 0.1), 0 1px 3px rgba(0, 0, 0, 0.01);
}

.hb-pain-card h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary-color);
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(192, 163, 117, 0.12);
}

.hb-pain-card h3 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(192, 163, 117, 0.08);
    color: var(--accent-color);
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hb-pain-card:hover h3 i {
    background-color: var(--accent-color);
    color: var(--white);
}

.hb-pain-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #555;
    font-size: 0.98rem;
    line-height: 1.55;
}

.hb-pain-list li:last-child {
    margin-bottom: 0;
}

.hb-pain-list li i {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 4px;
    flex: 0 0 auto;
}

/* --- Zielgruppen --- */
.hb-audience {
    background-color: var(--accent-light);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.hb-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.hb-audience-card {
    background: var(--white);
    border: 1px solid rgba(192, 163, 117, 0.15);
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hb-audience-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 163, 117, 0.5);
    box-shadow: 0 16px 32px rgba(192, 163, 117, 0.12), 0 1px 3px rgba(0, 0, 0, 0.01);
}

.hb-audience-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(192, 163, 117, 0.08);
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hb-audience-card:hover i {
    background-color: var(--accent-color);
    color: var(--white);
    transform: scale(1.03);
}

.hb-audience-card h3 {
    color: var(--primary-color);
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.35;
}

/* Variante: Karte als Link mit Kurzbeschreibung (Leistungsübersicht) */
.hb-audience-grid-links .hb-audience-card {
    align-items: flex-start;
    color: inherit;
}

.hb-audience-grid-links .hb-audience-card > div,
.hb-audience-grid-links .hb-audience-card h3 {
    flex: 1;
}

.hb-audience-grid-links .hb-audience-card h3 {
    margin-bottom: 6px;
}

.hb-audience-grid-links .hb-audience-card span {
    display: block;
    color: #667381;
    font-size: 0.92rem;
    line-height: 1.55;
}

.hb-audience-grid-links .hb-audience-card:hover h3 {
    color: var(--accent-hover);
}

/* --- Ablauf / Prozess --- */
.hb-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 30px;
}

.hb-step {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: 10px;
    padding: 40px 26px 28px;
    box-shadow: 0 12px 30px rgba(26, 37, 47, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hb-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 37, 47, 0.1);
}

.hb-step-num {
    position: absolute;
    top: -23px;
    left: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 10px 22px rgba(44, 62, 80, 0.25);
}

.hb-step h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-size: 1.08rem;
    margin: 4px 0 12px;
}

.hb-step h3 i {
    color: var(--accent-color);
    font-size: 1.05rem;
}

.hb-step p {
    color: #666;
    font-size: 0.94rem;
    line-height: 1.65;
}

/* --- FAQ (natives details/summary) --- */
.hb-faq-list {
    max-width: 840px;
    margin: 10px auto 0;
    display: grid;
    gap: 14px;
}

.hb-faq-item {
    background: var(--white);
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(26, 37, 47, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hb-faq-item[open] {
    border-color: rgba(192, 163, 117, 0.5);
    box-shadow: 0 14px 30px rgba(26, 37, 47, 0.08);
}

.hb-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.02rem;
    line-height: 1.4;
}

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

.hb-faq-item summary:hover {
    color: var(--accent-hover);
}

.hb-faq-item summary i {
    flex: 0 0 auto;
    color: var(--accent-color);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.hb-faq-item[open] summary i {
    transform: rotate(180deg);
}

.hb-faq-answer {
    padding: 0 24px 22px;
    color: #555;
    font-size: 0.98rem;
    line-height: 1.75;
}

.hb-faq-answer p {
    margin-bottom: 12px;
}

.hb-faq-answer p:last-child {
    margin-bottom: 0;
}

/* --- Abschluss-CTA-Band --- */
.hb-cta-band {
    background:
        radial-gradient(circle at 85% 12%, rgba(192, 163, 117, 0.22), transparent 42%),
        linear-gradient(145deg, #2c3e50 0%, #20303d 58%, #192532 100%);
    color: var(--white);
    text-align: center;
}

.hb-cta-inner {
    max-width: 760px;
    margin: 0 auto;
}

.hb-cta-band h2 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
}

.hb-cta-band p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.hb-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Mobile-Optimierung Heilberufe-Seite --- */
@media (max-width: 960px) {

    /* Silbentrennung auf schmalen Screens: verhindert abgeschnittene Ueberschriften */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .hero-content h1,
    .page-header h1,
    .section-title,
    .section-intro,
    .hero-subtitle {
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    .hero.hero-hb {
        min-height: auto;
        background:
            radial-gradient(circle at 85% 20%, rgba(192, 163, 117, 0.22), transparent 48%),
            linear-gradient(160deg, #131c26 0%, #17232e 45%, #1f2b37 100%);
        background-size: cover;
        background-position: center 22%;
    }

    .hb-breadcrumb {
        justify-content: center;
        margin-bottom: 16px;
    }

    .hb-hero-chips {
        justify-content: center;
        gap: 8px;
        margin: -0.25rem 0 1.5rem;
    }

    .hb-hero-chips span {
        padding: 7px 11px;
        font-size: 0.78rem;
    }

    .hb-cta-row {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .btn-solid,
    .btn-ghost,
    .btn-dark {
        width: 100%;
    }

    .trust-bar-inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
    }

    .hb-why-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hb-audience-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hb-pain-card {
        padding: 28px 22px;
    }

    .hb-audience-card {
        min-height: 76px;
        padding: 17px 18px;
    }

    .hb-steps {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hb-cta-band h2 {
        font-size: 1.6rem;
    }

    .hb-cta-buttons {
        flex-direction: column;
    }

    .hb-faq-item summary {
        min-height: 58px;
        padding: 17px 18px;
        font-size: 0.98rem;
    }

    .hb-faq-answer {
        padding: 0 18px 19px;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .certificate-doc-label {
        max-width: calc(100% - 12px);
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.15;
    }

    .modal {
        padding: 64px 14px 20px;
    }

    .modal img,
    .modal img.certificate-modal-img {
        max-width: min(100%, 720px);
        max-height: calc(100dvh - 92px);
        object-fit: contain;
    }

    .close {
        top: max(12px, env(safe-area-inset-top));
        right: 14px;
        width: 48px;
        height: 48px;
    }

}

@media (max-width: 359px) {
    .trust-bar-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 430px) {
    .logo {
        font-size: 1.5rem;
    }

    .logo span {
        font-size: 0.76rem;
        letter-spacing: 1.7px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 2.35rem);
        line-height: 1.08;
        margin-bottom: 1rem;
    }

    .hero-content h1 .hero-h1-name {
        font-size: 1.15rem;
        margin-top: 0.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.62;
    }

    .section-title {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .page-header h1 {
        max-width: 100%;
        font-size: clamp(1.55rem, 8vw, 1.85rem);
        line-height: 1.15;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .section-intro {
        margin-bottom: 36px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .about-content h2,
    .about-content .about-claim {
        font-size: 1.85rem;
    }

    .service-card h3,
    .heilberufe-card h3 {
        align-items: flex-start;
        font-size: 1.13rem;
        line-height: 1.35;
    }

    .mobile-contact-pill {
        min-height: 58px;
        grid-template-columns: 1fr 1fr 36px;
        padding: 5px;
    }

    .quick-contact-action {
        padding: 0 8px;
        font-size: 0.92rem;
    }
}

@media (max-width: 359px) {
    .hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-cta-row,
    .hb-cta-row {
        gap: 10px;
    }

    .btn-solid,
    .btn-ghost,
    .btn-dark {
        padding-left: 18px;
        padding-right: 18px;
        font-size: 0.92rem;
    }

    .service-card,
    .heilberufe-card,
    .hb-pain-card {
        padding-left: 18px;
        padding-right: 18px;
    }
}
