/*
Theme Name: Florian Pudwell
Theme URI: https://www.pudwell-gutachten.de
Author: Florian Pudwell
Author URI: https://www.pudwell-gutachten.de
Description: Florian Pudwell Theme.
Version: 1.0.0
License: Proprietary
License URI:
Text Domain: fp-theme
*/

/* ============================================================
   FONTS
   ============================================================ */

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   CSS RESET & BASICS
   ============================================================ */

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

/* ============================================================
   CSS VARIABLES
   ============================================================ */

:root {
    --color-background:   #ffffff;
    --color-text:         #1a1a1a;
    --color-accent:       #05604b;
    --color-accent-hover: #044a3a;
    --color-accent-light: #e8f5f1;
    --color-gray-light:   #f5f5f5;
    --color-gray-border:  #e5e5e5;
    --color-gray-medium:  #737373;

    --font-text:       'Poppins', sans-serif;
    --font-ui:         'Poppins', sans-serif;

    --max-width:       1400px;
    --spacing-s:       0.75rem;
    --spacing-m:       1.5rem;
    --spacing-l:       3rem;
    --spacing-xl:      5rem;
}

/* ============================================================
   BASE STYLES
   ============================================================ */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.75;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */

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

.site-main {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-m);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* CTA buttons */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-accent);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    border: 2px solid var(--color-accent);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-cta:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #ffffff;
}

.btn-cta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Outlined button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--color-accent);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    border: 2px solid var(--color-accent);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-outline svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Main header row */
.header-main {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-border);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

@media (max-width: 1200px) and (min-width: 961px) {
    .header-main .container {
        justify-content: center;
    }
}

/* Branding */
.site-branding {
    flex-shrink: 0;
}

/* Custom logo (image) */
.custom-logo-link {
    display: block;
}

.custom-logo {
    height: 50px;
    width: auto;
    display: block;
}

/* Text fallback when no logo uploaded */
.site-branding > a {
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-title {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.site-description {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.main-navigation li a {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.25s ease, background 0.25s ease;
    display: block;
    position: relative;
}

/* Subtle underline animation on hover */
.main-navigation > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-navigation > ul > li > a:hover::before,
.main-navigation > ul > li.current-menu-item > a::before,
.main-navigation > ul > li.current_page_item > a::before,
.main-navigation > ul > li.current-menu-ancestor > a::before,
.main-navigation > ul > li.current_page_ancestor > a::before {
    transform: scaleX(1);
}

/* Hover color */
.main-navigation li a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Current menu item */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: bold;
}

/* Active page: bold + green + underline */
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current_page_item > a,
.main-navigation > ul > li.current-menu-ancestor > a,
.main-navigation > ul > li.current_page_ancestor > a {
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: underline;
}

.main-navigation > ul > li.current-menu-ancestor > a::before {
    transform: scaleX(1);
}

/* Parent items with sub-menus: arrow indicator */
.main-navigation li.menu-item-has-children > a {
    padding-right: 2rem;
    position: relative;
}

.main-navigation li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid currentColor;
    transition: transform 0.25s ease;
}

.main-navigation li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown sub-menu (desktop) */
.main-navigation li {
    position: relative;
}

.main-navigation ul ul {
    position: absolute;
    top: 40px;
    left: 0;
    min-width: 120px;
    background: var(--color-background);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    padding: 0.4rem 0;
    flex-direction: column;
    gap: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    display: flex;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul li a {
    padding: 0.6rem 1rem;
    margin: 0 0.4rem;
    font-size: 0.85rem;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-navigation ul ul li a:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.main-navigation ul ul li.current-menu-item a,
.main-navigation ul ul li.current_page_item a {
    color: var(--color-accent);
    font-weight: 700;
    background: var(--color-accent-light);
}

/* Nested sub-menus (3rd level) */
.main-navigation ul ul ul {
    top: -0.4rem;
    left: calc(100% + 0.25rem);
}

/* Header CTA buttons (desktop only) */
.header-cta-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-text);
    color: var(--color-accent);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Large touch target */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
    pointer-events: none;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */

.site-main {
    padding: var(--spacing-l) 0;
}

/* ============================================================
   POST LIST (Blog Overview)
   ============================================================ */

.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-l);
}

.post-card {
    padding-bottom: var(--spacing-l);
    border-bottom: 1px solid var(--color-gray-border);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card .entry-title {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-s);
}

.post-card .entry-title a {
    text-decoration: none;
    color: var(--color-text);
}

.post-card .entry-title a:hover {
    color: var(--color-accent);
}

.post-meta {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--color-gray-medium);
    margin-bottom: var(--spacing-s);
}

.post-excerpt {
    margin-bottom: var(--spacing-m);
}

.read-more {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 1px;
    transition: opacity 0.2s;
}

.read-more:hover {
    opacity: 0.75;
    color: var(--color-accent);
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */

.entry-header {
    margin-bottom: var(--spacing-l);
}

.entry-title {
    font-family: var(--font-ui);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-s);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-ui);
    font-weight: 700;
    line-height: 1.3;
    margin-top: var(--spacing-l);
    margin-bottom: var(--spacing-s);
}

.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.1rem; }

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
    margin-bottom: var(--spacing-m);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
}

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

.entry-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--spacing-m);
    color: var(--color-gray-medium);
    font-style: italic;
}

.entry-content pre,
.entry-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: var(--color-gray-light);
    border-radius: 4px;
}

.entry-content code {
    padding: 0.15em 0.4em;
}

.entry-content pre {
    padding: var(--spacing-m);
    overflow-x: auto;
    margin-bottom: var(--spacing-m);
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* Featured image */
.post-thumbnail {
    margin-bottom: var(--spacing-l);
}

.post-thumbnail img {
    width: 100%;
    border-radius: 4px;
}

/* ============================================================
   COMMENTS
   ============================================================ */

.comments-area {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-l);
    border-top: 1px solid var(--color-gray-border);
}

.comments-title {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-l);
}

/* ============================================================
   404 PAGE
   ============================================================ */

.error-404 {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.error-404 .page-title {
    font-family: var(--font-ui);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-gray-border);
    line-height: 1;
    margin-bottom: var(--spacing-m);
}

.error-404 .page-subtitle {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-l);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: #05604b;
    border-top: none;
    padding: var(--spacing-l) 0;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Footer navigation */
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    list-style: none;
}

.footer-nav a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.footer-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer copyright */
.footer-copyright {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-copyright p {
    margin: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.navigation {
    margin-top: var(--spacing-l);
    padding-top: var(--spacing-l);
    border-top: 1px solid var(--color-gray-border);
    font-family: var(--font-ui);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-m);
}

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

@media (max-width: 960px) {
    /* Show hamburger */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        flex-shrink: 0;
    }

    .header-main .container {
        position: relative;
    }

    /* Full-screen mobile menu overlay */
    .main-navigation ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        box-sizing: border-box;
        z-index: 9999;
        background: var(--color-background);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        padding: 5rem var(--spacing-m) 2rem;
        gap: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 160px;
    }

    .main-navigation li {
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .main-navigation.is-open ul {
        display: flex;
    }

    /* Keep nested submenus collapsed until parent li is .is-open */
    .main-navigation.is-open ul ul {
        display: none;
    }

    /* Expand only when .is-open is on the parent li */
    .main-navigation li.menu-item-has-children.is-open > ul {
        display: flex;
    }

    /* Close button styling for open state */
    .main-navigation.is-open .menu-toggle {
        position: fixed;
        top: 0.5rem;
        right: var(--spacing-m);
        z-index: 10000;
        width: 56px;
        height: 56px;
    }

    .main-navigation li a {
        padding: 1.1rem 0;
        border-radius: 0;
        border-bottom: 1px solid var(--color-gray-border);
        font-size: 1.25rem;
        font-weight: 700;
    }

    .main-navigation li:last-child > a {
        border-bottom: none;
    }

    /* Mobile: disable desktop hover underline */
    .main-navigation > ul > li > a::before {
        display: none;
    }

    /* Mobile dropdown overrides */
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 0;
        width: 100%;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        display: none;
        overflow: hidden;
    }

    .main-navigation li:hover > ul {
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .main-navigation ul ul li a {
        padding: 1rem 0 1rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 400;
        color: var(--color-gray-medium);
        border-bottom: 1px solid var(--color-gray-border);
        white-space: normal;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .main-navigation ul ul li:last-child > a {
        border-bottom: none;
    }

    .main-navigation ul ul li a:hover {
        padding-left: 1.5rem;
        color: var(--color-accent);
    }

    /* Bigger dropdown arrow on mobile */
    .main-navigation li.menu-item-has-children > a {
        padding-right: 2.5rem;
    }

    .main-navigation li.menu-item-has-children > a::after {
        right: 0.5rem;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 9px solid currentColor;
        transition: transform 0.25s ease;
    }

    .main-navigation li.menu-item-has-children.is-open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .header-cta-desktop {
        display: none;
    }

    .site-title {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    :root {
        --spacing-l: 2rem;
        --spacing-xl: 3rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .header-phone span {
        display: none;
    }

    .site-description {
        display: none;
    }

    .iso-badge {
        display: none;
    }
}


/* ============================================================
   LANDING PAGE
   ============================================================ */

/* Hide empty #primary from header: flex:1 would leave a gap under the header */
.fp-shell-no-main #primary.site-main {
    display: none !important;
}

/* --- Landing: Hero --- */

.landing-hero {
    background: var(--color-accent);
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
}

.landing-hero.has-bg-image {
    background-color: var(--color-accent);
}

.hero-bg-image {
    position: absolute;
    left: 50% !important;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Desktop: green fade + photo (original split look) — image URL from --hero-bg-image on section */
.landing-hero.has-bg-image .hero-bg-image {
    background-image: linear-gradient(to right, var(--color-accent), transparent 50%), var(--hero-bg-image);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-title {
    font-family: var(--font-text);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Zwei logische Zeilen im Hero-Titel (klarer Abstand, kein „mittig im Satz“-Umbruch) */
.hero-title .hero-title-line {
    display: block;
    text-wrap: balance;
}

.hero-title .hero-title-line + .hero-title-line {
    margin-top: 0.45em;
}

/* Hero Titel — Variante V6: erste Zeile dominant, zweite Zeile kleiner (Desktop-Basis, Mobile siehe unten) */
.hero-title.hero-title--v6 {
    font-weight: 400;
}

.hero-title.hero-title--v6 .hero-title-line:first-child {
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero-title.hero-title--v6 .hero-title-line:nth-child(2) {
    margin-top: 0.7em;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.hero-title.hero-title--v6 .hero-title-line:nth-child(2) .hero-highlight {
    font-weight: 600;
}

.hero-highlight {
    color: #a8e6cf;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 440px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-google-rating {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.hero-stars {
    display: flex;
    gap: 0.15rem;
}

.hero-google-rating strong {
    font-weight: 700;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
}

.btn-cta-large:hover {
    transform: translateY(-1px);
}

a.btn-cta.btn-cta-large {
    background: #ffffff;
    color: var(--color-accent);
}

a.btn-cta.btn-cta-large:hover {
    background: #f0f0f0;
    color: var(--color-accent-hover);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* --- Landing: Services --- */

.landing-services {
    background: var(--color-gray-light);
    padding: 3rem 0;
}

.section-title {
    font-family: var(--font-text);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 0.5rem;
}

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

.section-title-white {
    color: #ffffff;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-medium);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle-white {
    color: rgba(255, 255, 255, 0.85);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--color-accent);
    text-decoration: none;
}

.service-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.service-body {
    flex: 1;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.service-tag {
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-gray-medium);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--color-text);
    padding-left: 1.25rem;
    position: relative;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.service-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: auto;
    padding-top: 0.75rem;
}

.services-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--color-accent-light);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
}

.services-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.services-notice p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
}


/* --- Landing: Process --- */

.landing-process {
    background: #ffffff;
    padding: 3rem 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 1rem 0;
}

.process-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--color-gray-medium);
    line-height: 1.6;
}

.process-connector {
    width: 2px;
    height: 32px;
    background: var(--color-accent);
    opacity: 0.3;
}


/* --- Landing: About --- */

.landing-about {
    background: var(--color-accent-light);
    padding: 3rem 0;
}

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

/* About Gallery Grid (links, 6 Bilder in 2x3 bzw 3x2) */
.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 960px) {
    .about-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

.about-gallery-grid .gallery-item {
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: block;
    cursor: pointer;
}

.about-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    object-position: top;
}

.about-gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.about-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
}

.btn-outline-green {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline-green:hover {
    background: var(--color-accent);
    color: #ffffff;
}


/* --- Landing: Regions --- */

.landing-regions {
    background: #ffffff;
    padding: 3rem 0;
}

.regions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.region-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-border);
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.region-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(5, 96, 75, 0.12);
    color: var(--color-accent);
}

.region-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 700;
}

.region-arrow {
    color: var(--color-gray-medium);
    transition: color 0.2s ease, transform 0.2s ease;
}

.region-card:hover .region-arrow {
    color: var(--color-accent);
    transform: translateX(3px);
}

/* --- Landing: Knotenpunkte — wie „Ihr Gutachter“: mintgrün, klar von FAQ (grau) getrennt --- */

.landing-knoten {
    background: var(--color-accent-light);
    padding: 3rem 0;
    border-top: 1px solid rgba(5, 96, 75, 0.12);
}

/* Titel/Subtitel wie in der statischen Vorschau (nicht Desktop-2rem-Landing-Default) */
.landing-knoten .section-title {
    font-size: 1.5rem;
}

.landing-knoten .section-subtitle {
    margin-bottom: 1.75rem;
}

.knoten-groups {
    display: grid;
    gap: 1.25rem;
    margin-top: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

@media (min-width: 900px) {
    .knoten-groups {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1.5rem;
        align-items: stretch;
    }
}

.knoten-group {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.65rem 1.4rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.knoten-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        var(--color-accent-light) 55%,
        rgba(232, 245, 241, 0.35) 100%
    );
}

.knoten-group:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(5, 96, 75, 0.18);
}

.knoten-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1.1rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.knoten-group-title::before {
    content: "";
    width: 5px;
    height: 1.2em;
    border-radius: 3px;
    background: var(--color-accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(5, 96, 75, 0.12);
}

.knoten-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.knoten-bullet {
    position: relative;
    padding-left: 3rem;
    min-height: 2.35rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-gray-medium);
}

/* Icon: Verkehrszeichen — Raute in Akzentgrün (wie Theme) */
.knoten-bullet::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background-color: var(--color-accent-light);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M12%203.5%20L20.5%2012%20L12%2020.5%20L3.5%2012%20Z%27%20fill%3D%27%2305604b%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.35%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 72% 72%;
    box-shadow: inset 0 0 0 1px rgba(5, 96, 75, 0.12);
}

.knoten-label {
    font-weight: 700;
    color: var(--color-text);
}

.knoten-sep {
    font-weight: 400;
    color: var(--color-gray-medium);
}

.knoten-text {
    font-weight: 400;
}


/* --- Landing: FAQ --- */

.landing-faq {
    background: var(--color-gray-light);
    padding: 3rem 0;
    border-top: 1px solid var(--color-gray-border);
}

.faq-list {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 960px) {
    .faq-list {
        grid-template-columns: 1fr 1fr;
    }
}

.faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid var(--color-gray-border);
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: var(--color-accent);
}

.faq-question {
    padding: 1.1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

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

.faq-answer p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-gray-medium);
}


/* --- Landing: Form --- */

.landing-form {
    background: var(--color-accent);
    padding: 3rem 0;
}

.form-wrapper {
    max-width: 560px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.accident-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-gray-light);
    border: 2px solid var(--color-gray-border);
    border-radius: 8px;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--color-gray-border);
    border-radius: 8px;
    text-align: center;
    background: var(--color-gray-light);
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.file-upload:hover .file-upload-label {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

.file-upload-label span {
    font-size: 0.85rem;
    color: var(--color-gray-medium);
}

.file-upload-hint {
    font-size: 0.8rem !important;
    color: var(--color-accent) !important;
    font-weight: 700;
}

.fp-photo-help {
    font-size: 0.8rem;
    color: var(--color-gray-medium);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.file-upload.has-files .file-upload-label {
    border-color: var(--color-accent);
    border-style: solid;
    background: var(--color-accent-light);
}

.fp-photo-preview {
    margin-top: 1rem;
}

.fp-photo-count {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 0.75rem;
}

.fp-photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 0.5rem;
}

.fp-photo-thumb-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.fp-photo-thumb-img {
    width: 100%;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-gray-border);
    background: #fff;
}

.fp-photo-thumb-placeholder {
    width: 100%;
    height: 76px;
    border-radius: 6px;
    background: var(--color-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-gray-medium);
}

.fp-photo-thumb-name {
    font-size: 0.65rem;
    line-height: 1.25;
    color: var(--color-gray-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-submit {
    width: 100%;
    background: var(--color-accent);
    color: #ffffff;
    font-family: var(--font-ui);
    position: relative;
    min-height: 3.25rem;
}

.btn-submit:hover:not(:disabled) {
    background: var(--color-accent-hover);
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.92;
}

.btn-submit-content,
.btn-submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-submit-loading {
    display: none;
}

.btn-submit.is-loading .btn-submit-content {
    display: none;
}

.btn-submit.is-loading .btn-submit-loading {
    display: flex;
}

.btn-submit-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: fp-accident-spin 0.75s linear infinite;
    flex-shrink: 0;
}

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

.btn-submit-loading-text {
    font-weight: 600;
}

.form-message-inline {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
}

.form-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-gray-medium);
    margin-top: 1rem;
}

/* Checkbox Datenschutz / AGB */
.form-group-checkbox {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.checkbox-text {
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.checkbox-text a:hover {
    opacity: 0.8;
}


/* --- WhatsApp Float --- */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: whatsapp-pulse 2s infinite;
}


/* --- Sticky Mobile CTA Bar --- */

.mobile-cta-bar {
    display: none;
}


/* ============================================================
   LANDING PAGE: responsive (tablet)
   ============================================================ */

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }

    /* Vier Leistungskarten: 2×2 statt 3+1 */
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 960px) {
    .regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================================
   LANDING PAGE: responsive (desktop)
   ============================================================ */

@media (min-width: 960px) {
    .landing-hero {
        padding: 5rem 0;
    }

    /* Hero ohne V6: einheitliche Größe; V6 steuert Zeilen per .hero-title-line */
    .landing-hero .hero-title:not(.hero-title--v6) {
        font-size: clamp(1.5rem, 2.2vw, 2.25rem);
        text-align: left;
    }

    .landing-hero .hero-title.hero-title--v6 {
        text-align: left;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        max-width: 450px;
    }

    .section-title {
        font-size: 2rem;
    }

    .landing-services,
    .landing-process,
    .landing-about,
    .landing-regions,
    .landing-knoten,
    .landing-faq,
    .landing-form {
        padding: 4rem 0;
    }

    /* Process horizontal layout */
    .process-steps {
        flex-direction: row;
        max-width: 100%;
        gap: 0;
        align-items: flex-start;
    }

    .process-step {
        flex: 1;
    }

    .process-connector {
        width: 60px;
        height: 2px;
        margin-top: 28px;
        flex-shrink: 0;
    }

    /* About two-column: 50/50 */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* Form wider padding */
    .accident-form {
        padding: 2.5rem;
    }
}


/* ============================================================
   ABOUT GALLERY
   ============================================================ */

.about-gallery,
.about-gallery-section {
    padding: var(--spacing-xl) 0;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.about-gallery-section {
    padding-top: var(--spacing-l);
}

.about-gallery .section-title,
.about-gallery-section .section-title {
    margin-bottom: 0.5rem;
}

.about-gallery .section-subtitle,
.about-gallery-section .section-subtitle {
    margin-bottom: 2rem;
    color: var(--color-gray-medium);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 var(--spacing-m);
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    display: block;
}

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

.about-page-gallery .gallery-item img {
    object-position: top center;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item-overlay svg {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-item-overlay svg {
    opacity: 1;
    transform: scale(1);
}


/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-ui);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    z-index: 10001;
    padding: 1rem;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

@media (max-width: 640px) {
    .lightbox-prev {
        left: 0.25rem;
        font-size: 2rem;
    }
    .lightbox-next {
        right: 0.25rem;
        font-size: 2rem;
    }
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}


/* ============================================================
   LANDING PAGE: mobile CTA bar (< 960px)
   ============================================================ */

@media (max-width: 959px) {
    .hero-title-line:nth-child(2) {
        margin-top: 16em !important;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .landing-hero {
        padding: 2rem 0;
    }

    /* Hero ohne V6: ein Zeilen-20px-Titel */
    .landing-hero .hero-title:not(.hero-title--v6) {
        font-size: 20px;
        text-align: center;
    }

    /* Hero V6: zwei Stufen, zentriert, responsive Schriftgrößen */
    .landing-hero .hero-title.hero-title--v6 {
        text-align: center;
        font-size: inherit;
    }

    .landing-hero .hero-title.hero-title--v6 .hero-title-line:first-child {
        font-size: clamp(1.125rem, 4.2vw, 1.35rem);
        font-weight: 700;
        line-height: 1.28;
    }

    .landing-hero .hero-title.hero-title--v6 .hero-title-line:nth-child(2) {
        margin-top: 0.65em;
        font-size: clamp(0.9375rem, 3.5vw, 1.0625rem);
        font-weight: 500;
        color: rgba(255, 255, 255, 0.92);
        line-height: 1.45;
    }

    .landing-hero .hero-title.hero-title--v6 .hero-title-line:nth-child(2) .hero-highlight {
        font-weight: 600;
    }

    /* Mobile only: full-bleed photo + darken (no half-green split) */
    .landing-hero.has-bg-image .hero-bg-image {
        left: 0 !important;
        width: 100%;
        height: 100%;
        background-image: var(--hero-bg-image) !important;
    }

    .landing-hero.has-bg-image .hero-overlay {
        z-index: 1;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 40, 32, 0.72) 100%
        );
    }

    .landing-hero.has-bg-image .hero-content {
        z-index: 2;
    }

    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        background: #ffffff;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .mobile-cta-bar a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 0.75rem;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-cta-call {
        background: var(--color-accent);
        color: #ffffff;
    }

    .mobile-cta-report {
        background: var(--color-accent-light);
        color: var(--color-accent);
        border: 2px solid var(--color-accent);
    }

    /* Adjust WhatsApp button position to not overlap bottom bar */
    .whatsapp-float {
        bottom: 100px;
    }

    /* Add bottom padding so content isn't hidden behind bar */
    .site-footer {
        padding-bottom: 10rem;
    }
}


/* ============================================================
   EINSATZGEBIET TEMPLATE
   ============================================================ */

/* --- Einsatzgebiet: hero (accent background, two-line trust badges) --- */

.ez-hero {
    position: relative;
    background: var(--color-accent);
    padding: 2.5rem 0 3rem;
    overflow: hidden;
}

.ez-hero.has-bg-image {
    background-image:
        linear-gradient(160deg, rgba(5, 96, 75, 0.9) 0%, rgba(5, 96, 75, 0.78) 100%),
        var(--ez-hero-bg);
    background-size: cover;
    background-position: center;
}

.ez-hero-accent {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, rgba(0, 0, 0, 0.12) 0%, transparent 42%);
    pointer-events: none;
}

.ez-hero .container {
    position: relative;
    z-index: 1;
}

.ez-hero-inner {
    max-width: 720px;
}

.ez-hero .ez-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.65rem;
}

.ez-hero .ez-location-tag svg {
    fill: #a8e6cf;
    opacity: 0.95;
}

.ez-hero-title {
    font-family: var(--font-text);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.28;
    color: #ffffff;
    margin: 0 0 1.35rem;
}

.ez-hero-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.ez-hero-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

.ez-hero-badge svg {
    flex-shrink: 0;
    fill: #c8f5e4;
    opacity: 0.95;
}

.ez-hero-badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.25;
}

.ez-hero-badge-text strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.ez-hero-badge-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
}

.ez-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ez-hero-cta .btn-cta-large {
    width: 100%;
    justify-content: center;
}

@media (min-width: 520px) {
    .ez-hero-badges {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .ez-hero-badge {
        flex: 1 1 160px;
        min-width: 0;
    }

    .ez-hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ez-hero-cta .btn-cta-large {
        width: auto;
    }
}


/* --- Content Layout (Main + Sidebar) --- */

.ez-content {
    background: #ffffff;
    padding: 2.5rem 0 3rem;
}

.ez-content-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* --- Main Content Text Styling --- */

.ez-main-content .entry-content h2,
.ez-main-content .entry-content h3 {
    font-family: var(--font-text);
    font-weight: 700;
    color: var(--color-text);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.ez-main-content .entry-content h2 {
    font-size: 1.3rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--color-accent-light);
}

.ez-main-content .entry-content h3 {
    font-size: 1.1rem;
}

.ez-main-content .entry-content h2:first-child,
.ez-main-content .entry-content h3:first-child {
    margin-top: 0;
}

.ez-main-content .entry-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.ez-main-content .entry-content ul,
.ez-main-content .entry-content ol {
    margin: 0.75rem 0 1.5rem;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ez-main-content .entry-content li {
    font-size: 0.93rem;
    line-height: 1.65;
    padding-left: 1.4rem;
    position: relative;
}

.ez-main-content .entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    border-radius: 50%;
}

.ez-main-content .entry-content strong {
    color: var(--color-text);
    font-weight: 700;
}


/* --- Inline CTA --- */

.ez-inline-cta {
    margin-top: 2rem;
    background: var(--color-accent-light);
    border: 1px solid var(--color-accent);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ez-inline-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ez-inline-cta-text strong {
    font-size: 1.05rem;
    color: var(--color-text);
}

.ez-inline-cta-text span {
    font-size: 0.9rem;
    color: var(--color-gray-medium);
}

.ez-inline-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


/* --- Sidebar --- */

.ez-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ez-sidebar-card {
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-border);
    border-radius: 10px;
    padding: 1.25rem;
}

.ez-sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.ez-sidebar-regions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ez-sidebar-regions li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ez-sidebar-regions li a svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.ez-sidebar-regions li a:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.ez-sidebar-regions li.is-current a {
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 700;
}

.ez-sidebar-regions li.is-current a svg {
    color: #ffffff;
}

.ez-sidebar-contact {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.ez-sidebar-contact h3 {
    color: #ffffff;
}

.ez-sidebar-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.ez-sidebar-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.ez-sidebar-contact .btn-cta {
    background: #ffffff;
    color: var(--color-accent);
    border-color: #ffffff;
}

.ez-sidebar-contact .btn-cta:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
}

.ez-sidebar-contact .btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.ez-sidebar-contact .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}


/* --- Einsatzgebiet: responsive --- */

@media (min-width: 960px) {
    .ez-hero {
        padding: 3.25rem 0 3.75rem;
    }

    .ez-hero-title {
        font-size: 2.15rem;
        margin-bottom: 1.5rem;
    }

    .ez-hero-badges {
        gap: 0.65rem;
        margin-bottom: 2rem;
    }

    .ez-content {
        padding: 3rem 0 4rem;
    }

    .ez-content-layout {
        flex-direction: row;
        gap: 3rem;
    }

    .ez-main-content {
        flex: 1;
        min-width: 0;
    }

    .ez-sidebar {
        flex-shrink: 0;
        width: 280px;
        position: sticky;
        top: 80px;
        align-self: flex-start;
    }

    .ez-inline-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ez-main-content .entry-content h2 {
        font-size: 1.45rem;
    }

    .ez-main-content .entry-content h3 {
        font-size: 1.2rem;
    }
}


/* ============================================================
   LEISTUNG TEMPLATE (service detail — light hero, card grid)
   ============================================================ */

.leistung-hero {
    position: relative;
    background: linear-gradient(145deg, #f6faf8 0%, #ffffff 42%, var(--color-accent-light) 100%);
    border-bottom: 1px solid var(--color-gray-border);
    padding: 2.25rem 0 2.5rem;
    overflow: hidden;
}

.leistung-hero.has-hero-image {
    background-image:
        linear-gradient(145deg, rgba(246, 250, 248, 0.94) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(232, 245, 240, 0.92) 100%),
        var(--leistung-hero-bg);
    background-size: cover;
    background-position: center;
}

.leistung-hero.has-hero-image .leistung-hero-pattern {
    opacity: 0.45;
}

.leistung-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0% 100%, rgba(5, 96, 75, 0.07) 0%, transparent 45%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 38px,
            rgba(5, 96, 75, 0.03) 38px,
            rgba(5, 96, 75, 0.03) 39px
        );
    pointer-events: none;
}

.leistung-hero .container {
    position: relative;
    z-index: 1;
}

.leistung-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.leistung-hero-main {
    max-width: 46rem;
}

.leistung-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.leistung-hero-badge svg {
    fill: var(--color-accent);
    opacity: 0.9;
}

.leistung-hero-kicker {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-medium);
    margin: 0 0 0.35rem;
}

.leistung-hero-title {
    font-family: var(--font-text);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.leistung-hero-lead {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 1.5rem;
    max-width: 40rem;
}

.leistung-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/*
 * Light hero: undo landing-hero inversion (a.btn-cta.btn-cta-large = white pill on green).
 * Match header-style primary (green fill) + outline secondary at hero-large size.
 */
.leistung-hero a.btn-cta.btn-cta-large {
    background: var(--color-accent);
    color: #ffffff;
    border: 2px solid var(--color-accent);
}

.leistung-hero a.btn-cta.btn-cta-large:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #ffffff;
}

.leistung-hero a.btn-outline.btn-cta-large {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
}

.leistung-hero a.btn-outline.btn-cta-large:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.leistung-hero a.btn-outline.btn-cta-large svg {
    fill: currentColor;
}

.leistung-hero a.btn-cta.btn-cta-large svg,
.leistung-hero a.btn-outline.btn-cta-large svg {
    width: 20px;
    height: 20px;
}

.leistung-hero-trust {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.leistung-trust-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid var(--color-gray-border);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(5, 96, 75, 0.06);
}

.leistung-trust-card svg {
    flex-shrink: 0;
    fill: var(--color-accent);
    margin-top: 0.1rem;
}

.leistung-trust-card div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.3;
}

.leistung-trust-card strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text);
}

.leistung-trust-card span {
    font-size: 0.78rem;
    color: var(--color-gray-medium);
}

@media (min-width: 520px) {
    .leistung-hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 900px) {
    .leistung-hero {
        padding: 3rem 0 3.5rem;
    }

    .leistung-hero-title {
        font-size: 2rem;
    }

    .leistung-hero-grid {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2.5rem;
    }

    .leistung-hero-trust {
        flex: 0 0 280px;
        max-width: 280px;
    }
}


/* --- Leistung: main + feature grid --- */

.leistung-content {
    background: #ffffff;
    padding: 2.5rem 0 3rem;
}

.leistung-content-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.leistung-entry .leistung-section-title {
    font-family: var(--font-text);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    min-width: min(100%, 12rem);
}

.leistung-entry .leistung-section-title:first-child {
    margin-top: 0;
}

.leistung-entry p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0 0 1rem;
    color: var(--color-text);
}

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

.leistung-feature-card {
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-border);
    border-radius: 10px;
    padding: 1.1rem 1.15rem;
    border-left: 4px solid var(--color-accent);
}

.leistung-feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.45rem;
    color: var(--color-text);
}

.leistung-feature-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-gray-medium);
}

.leistung-inline-cta {
    margin-top: 2rem;
    background: var(--color-accent-light);
    border: 1px solid rgba(5, 96, 75, 0.25);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leistung-inline-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.leistung-inline-cta-text strong {
    font-size: 1.05rem;
    color: var(--color-text);
}

.leistung-inline-cta-text span {
    font-size: 0.9rem;
    color: var(--color-gray-medium);
}

.leistung-inline-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


/* --- Leistung: sidebar --- */

.leistung-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.leistung-sidebar-card {
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-border);
    border-radius: 10px;
    padding: 1.25rem;
}

.leistung-sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.leistung-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.leistung-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.55rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.leistung-sidebar-nav li a svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.leistung-sidebar-nav li a:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.leistung-sidebar-nav li.is-current a {
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 700;
}

.leistung-sidebar-nav li.is-current a svg {
    color: #c8f5e4;
}

.leistung-sidebar-contact {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.leistung-sidebar-contact h3 {
    color: #ffffff;
}

.leistung-sidebar-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.leistung-sidebar-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.leistung-sidebar-contact .btn-cta {
    background: #ffffff;
    color: var(--color-accent);
    border-color: #ffffff;
}

.leistung-sidebar-contact .btn-cta:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
}

.leistung-sidebar-contact .btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.leistung-sidebar-contact .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

@media (min-width: 640px) {
    .leistung-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .leistung-content {
        padding: 3rem 0 4rem;
    }

    .leistung-content-layout {
        flex-direction: row;
        gap: 3rem;
    }

    .leistung-main {
        flex: 1;
        min-width: 0;
    }

    .leistung-sidebar {
        flex-shrink: 0;
        width: 280px;
        position: sticky;
        top: 80px;
        align-self: flex-start;
    }

    .leistung-inline-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .leistung-entry .leistung-section-title {
        font-size: 1.35rem;
    }
}

/* ============================================================
   ISO badge (header) + footer legal + cookie banner
   ============================================================ */

.fp-site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-m);
    flex-wrap: wrap;
}

.site-iso-badge {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.fp-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    background: var(--color-text);
    color: #fff;
    padding: var(--spacing-m);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.fp-cookie-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
    align-items: flex-start;
}

@media (min-width: 640px) {
    .fp-cookie-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.fp-cookie-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 52rem;
}

.fp-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-s);
    align-items: center;
}

.fp-cookie-link {
    color: #a7f3d0;
    text-decoration: underline;
}

.form-message {
    padding: var(--spacing-m);
    border-radius: 6px;
    margin-bottom: var(--spacing-m);
    font-weight: 600;
}

.form-message-success {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.form-message-error {
    background: #fef2f2;
    color: #b91c1c;
}

.form-group-checkbox .form-message-inline.form-message-error {
    outline: 2px solid #b91c1c;
    outline-offset: 2px;
}

/* Über mich page */
.about-page-article .about-subheading {
    font-size: 1.25rem;
    margin: 0 0 var(--spacing-m);
    color: var(--color-accent);
}

.about-page-panel {
    margin-bottom: var(--spacing-xl);
}

.about-page-panel--intro {
    padding: var(--spacing-l);
    border-radius: 16px;
    background: linear-gradient(155deg, #fff 0%, var(--color-accent-light) 55%, #fff 100%);
    border: 1px solid var(--color-gray-border);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.05);
}

.about-page-panel--story {
    padding: var(--spacing-l);
    border-radius: 14px;
    background: var(--color-gray-light);
    border-left: 4px solid var(--color-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.about-page-story-body p + p {
    margin-top: var(--spacing-m);
}

.about-page-panel--cv .about-cv-list {
    display: grid;
    gap: var(--spacing-m);
}

.about-page-panel--cert .about-cert-intro {
    margin-bottom: var(--spacing-m);
    color: var(--color-text);
}

.about-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-s);
}

.about-lead {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.about-cv-list {
    list-style: none;
}

.about-cv-item {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: var(--spacing-m);
    align-items: start;
    padding: var(--spacing-m);
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--color-gray-border);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.about-cv-item p {
    margin: 0.35rem 0 0;
    color: var(--color-gray-medium);
    font-size: 0.95rem;
}

.about-cv-year {
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--color-accent);
    padding-top: 0.15rem;
}

.about-cert-list {
    list-style: none;
    padding-left: 0;
}

.about-cert-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-cert-pills li {
    margin: 0;
}

.about-cert-pills a,
.about-cert-pills li > span {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border: 1px solid rgba(0, 105, 82, 0.15);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.about-cert-pills a:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.about-gallery-note {
    margin: var(--spacing-l) 0;
    font-style: italic;
    color: var(--color-gray-medium);
}

/* Über mich: Nachweise & Zertifikate (documents/) */
.about-trust-docs {
    padding: var(--spacing-l) 0;
}

.about-trust-docs-intro {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.trust-docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 var(--spacing-m);
    text-align: left;
}

/* Nachweise: durchgehend zwei Spalten (nebeneinander), keine 3er-Reihe */
@media (min-width: 560px) {
    .trust-docs-grid--pairs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.trust-doc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-gray-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.trust-doc-card:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.trust-doc-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--color-gray-light);
    overflow: hidden;
}

.trust-doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.trust-doc-thumb--pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(160deg, #f4f6f8 0%, #e8ecf0 100%);
    color: var(--color-accent);
}

.trust-doc-thumb--pdf.trust-doc-thumb--pdf-preview {
    display: block;
    background: #fff;
}

.trust-doc-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: middle;
}

.trust-doc-pdf-badge {
    position: absolute;
    bottom: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    padding: 0.2rem 0.45rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 5px;
    pointer-events: none;
    line-height: 1.2;
}

.trust-doc-pdf-icon svg {
    display: block;
    opacity: 0.85;
}

.trust-doc-pdf-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray-medium);
}

.trust-doc-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
    pointer-events: none;
}

.trust-doc-thumb-overlay svg {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.trust-doc-card:hover .trust-doc-thumb-overlay {
    background: rgba(0, 0, 0, 0.28);
}

.trust-doc-card:hover .trust-doc-thumb-overlay svg {
    opacity: 1;
    transform: scale(1);
}

.trust-doc-body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trust-doc-title {
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    line-height: 1.35;
    color: var(--color-text);
}

.trust-doc-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--color-gray-medium);
}

/* Lightbox: Dokumente (PDF + Bild) */
.lightbox--docs .lightbox-content.lightbox-docs-inner {
    max-width: min(96vw, 960px);
    max-height: 92vh;
    width: 100%;
    align-items: stretch;
}

.lightbox-docs-media {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox--docs .lightbox-docs-img {
    max-height: min(72vh, 820px);
}

.lightbox-docs-pdf-wrap {
    width: 100%;
    max-height: min(75vh, 800px);
}

.lightbox-docs-iframe {
    width: 100%;
    height: min(75vh, 800px);
    border: 0;
    border-radius: 6px;
    background: #444;
}

.lightbox-docs-meta {
    margin-top: 1rem;
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.lightbox-docs-title {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.lightbox-docs-desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 0.75rem;
    font-family: var(--font-ui);
}

.lightbox-docs-actions {
    margin: 0;
}

.lightbox-docs-actions[hidden] {
    display: none !important;
}

.lightbox-docs-open-tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}

/* Fachwissen */
.fk-hero {
    background: linear-gradient(135deg, var(--color-accent) 0%, #034a3a 100%);
    color: #fff;
    padding: var(--spacing-xl) 0;
}

.fk-hero.gu-hero.has-bg-image {
    background-image:
        linear-gradient(135deg, rgba(5, 96, 75, 0.92) 0%, rgba(3, 74, 58, 0.88) 100%),
        var(--gu-hero-bg);
    background-size: cover;
    background-position: center;
}

.fk-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: var(--spacing-s);
}

.fk-title {
    color: #fff;
    margin-bottom: var(--spacing-m);
}

.fk-lead {
    font-size: 1.1rem;
    max-width: 42rem;
    opacity: 0.95;
}

.fk-sec {
    padding: var(--spacing-xl) 0;
}

.fk-glossary {
    background: linear-gradient(180deg, #f0f7f4 0%, #ffffff 50%);
    border-bottom: 1px solid var(--color-gray-border);
}

.fk-glossary-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-m);
    margin-top: var(--spacing-m);
}

@media (min-width: 720px) {
    .fk-glossary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fk-glossary-card {
    margin: 0;
    scroll-margin-top: 6.5rem;
    padding: 0;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 105, 82, 0.12);
    box-shadow: 0 6px 24px rgba(0, 40, 32, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.fk-glossary-card:hover {
    border-color: rgba(0, 105, 82, 0.35);
    box-shadow: 0 10px 32px rgba(0, 50, 40, 0.1);
}

.fk-glossary-card-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: var(--spacing-m);
}

.fk-glossary-letter {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(145deg, var(--color-accent) 0%, #023d30 100%);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 60, 48, 0.35);
}

.fk-glossary-card-body {
    flex: 1;
    min-width: 0;
}

.fk-glossary-term {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.fk-glossary-text-wrap .fk-glossary-text {
    margin: 0 0 0.85rem;
}

.fk-glossary-text-wrap .fk-glossary-text:last-child {
    margin-bottom: 0;
}

.fk-glossary-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    overflow-wrap: anywhere;
    hyphens: auto;
}

@media (min-width: 960px) {
    .fk-glossary-letter {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.85rem;
        border-radius: 16px;
    }

    .fk-glossary-term {
        font-size: 1.18rem;
    }
}

/* Partner: Layout wie Liste/Streifen; Farben an Marken-Grün (Accent) */
.fk-partners.fk-sec {
    background: var(--color-gray-light);
    border-top: 1px solid var(--color-gray-border);
    border-bottom: 1px solid var(--color-gray-border);
}

.fk-partner-grid {
    list-style: none;
    margin: var(--spacing-l) auto 0;
    padding: 0;
    max-width: 52rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fk-partner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 0;
    padding: 0.95rem 1.15rem 0.95rem 0;
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 105, 82, 0.14);
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 2px 0 rgba(5, 96, 75, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fk-partner-card--link {
    text-decoration: none;
    color: inherit;
}

.fk-partner-card--link:hover {
    background: #fff;
    border-color: rgba(0, 105, 82, 0.28);
    border-left-color: var(--color-accent-hover);
    box-shadow: 0 8px 28px rgba(5, 96, 75, 0.12);
    transform: translateX(4px);
}

.fk-partner-card--static {
    opacity: 0.95;
}

.fk-partner-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-left: 0.5rem;
    border-radius: 50%;
    color: var(--color-accent);
    background: rgba(5, 96, 75, 0.08);
    border: 1px dashed rgba(5, 96, 75, 0.4);
}

.fk-partner-icon {
    display: block;
}

.fk-partner-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fk-partner-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gray-medium);
    line-height: 1.3;
}

.fk-partner-name {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.fk-partner-card--link .fk-partner-name {
    color: var(--color-text);
}

.fk-partner-go {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: center;
    color: var(--color-accent);
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fk-partner-card--link:hover .fk-partner-go {
    opacity: 1;
    transform: translateX(4px);
}

@media (min-width: 640px) {
    .fk-partner-card {
        padding: 1.1rem 1.35rem 1.1rem 0;
    }

    .fk-partner-icon-wrap {
        width: 3.25rem;
        height: 3.25rem;
        margin-left: 0.65rem;
    }
}

.fk-press {
    background: var(--color-accent);
    color: #fff;
}

.fk-press .container {
    display: flex;
    justify-content: center;
}

.fk-press-card {
    max-width: 40rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.fk-press-card .btn-cta {
    display: inline-block;
}

.fk-press-text {
    margin: var(--spacing-m) 0;
    opacity: 0.95;
}

.fk-faq.fk-sec {
    background: #fff;
    border-top: 1px solid var(--color-gray-border);
}

.fk-faq .fk-faq-list {
    max-width: 48rem;
    margin: var(--spacing-m) auto 0;
}

.fk-faq-more-link {
    text-align: center;
    margin: var(--spacing-l) auto 0;
    max-width: 48rem;
}

.fk-faq-intro-link a {
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

.fk-faq-intro-link a:hover {
    text-decoration: underline;
}

/* Gerichtsurteile */
.gu-content {
    background: #fff;
    border-top: 1px solid var(--color-gray-border);
}

.gu-content-inner {
    max-width: 42rem;
}

.gu-section-title {
    font-family: var(--font-text);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--spacing-m);
    line-height: 1.35;
}

.gu-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0 0 var(--spacing-m);
}

.gu-text:last-of-type {
    margin-bottom: var(--spacing-l);
}

.gu-disclaimer {
    padding: var(--spacing-m);
    border-radius: 12px;
    background: var(--color-accent-light);
    border: 1px solid rgba(0, 105, 82, 0.2);
}

.gu-disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--color-text);
}

/* Legal */
.legal-page-content {
    padding-bottom: var(--spacing-xl);
}

.legal-page-content h2 {
    margin-top: var(--spacing-l);
    font-size: 1.25rem;
}
