:root {
    --green: #83B817;
    --green-dark: #587a13;
    --green-hover: #6fa012;
    --green-soft: #f3f8e8;
    --green-mid: #e5f0c8;
    --heading: #2b2b2b;
    --text: #4a4a4a;
    --muted: #6b6b6b;
    --line: #e4e8dc;
    --white: #fff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(88, 122, 19, 0.08);
    --shadow-hover: 0 14px 36px rgba(88, 122, 19, 0.14);
    --nav-h: 84px;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    padding-top: 0 !important;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

h1, h2, h3, h4, h5 {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--green-dark);
}

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

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--green);
    color: #fff;
    padding: 8px 16px;
    z-index: 2000;
}

#versorgung,
#vorsorge,
#zusatz,
#hinweise,
#standorte,
#angebot,
#impressum,
#datenschutz {
    scroll-margin-top: 96px;
}

/* ----- Navigation ----- */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(88, 122, 19, 0.06);
    padding: 12px 0;
}

.site-nav .navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.site-nav .navbar-brand img {
    height: 52px;
    width: auto;
    display: block;
}

.site-nav .navbar-toggler {
    border: 2px solid var(--green-dark);
    padding: 6px 10px;
}

.site-nav .navbar-nav {
    margin-left: auto;
    align-items: center;
}

.site-nav .nav-link {
    color: var(--heading) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.45rem 0.9rem !important;
    position: relative;
}

.site-nav .nav-link:hover {
    color: var(--green) !important;
}

.site-nav .nav-link.active {
    color: var(--green) !important;
}

.site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0;
    height: 3px;
    background: var(--green);
    border-radius: 2px;
}

.site-nav .nav-cta {
    margin-left: 0.75rem;
}

.btn-green {
    background: var(--green);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.7rem 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-green:hover,
.btn-green:focus {
    background: var(--green-dark);
    color: #fff !important;
}

.btn-green-outline {
    background: transparent;
    color: var(--heading) !important;
    border: 2px solid var(--green);
    border-radius: 999px;
    font-weight: 700;
    padding: 0.65rem 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none !important;
}

.btn-green-outline:hover,
.btn-green-outline:focus {
    background: var(--green-soft);
    color: var(--heading) !important;
}

.btn-white-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.65rem 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none !important;
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.btn-success,
.btn-primary {
    background-color: var(--green);
    border-color: var(--green);
    color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--green-dark) !important;
    border-color: var(--green-dark) !important;
}

/* ----- Layout ----- */
.site-main {
    min-height: 50vh;
}

.section {
    padding: 4.5rem 0;
}

.section-soft {
    background: var(--green-soft);
}

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

.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 42rem;
    margin-bottom: 2rem;
}

.page-hero {
    padding: 3.5rem 0 2.5rem;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 0.75rem;
}

.page-hero h1 em,
.page-hero .accent {
    color: var(--green);
    font-style: normal;
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 40rem;
    margin-bottom: 0;
}

/* ----- Hero ----- */
.home-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    background: #2b2b2b center / cover no-repeat;
    color: #fff;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 24, 16, 0.78) 0%, rgba(20, 24, 16, 0.35) 55%, rgba(20, 24, 16, 0.15) 100%);
}

.home-hero .container {
    position: relative;
    z-index: 1;
    padding-bottom: 4rem;
    padding-top: 5rem;
}

.home-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    max-width: 16ch;
    margin-bottom: 0.8rem;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
    max-width: 36rem;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ----- Hinweisleiste ----- */
.news-strip {
    background: var(--green-soft);
    border-bottom: 1px solid var(--green-mid);
    padding: 1rem 0;
}

.news-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c0392b;
    flex-shrink: 0;
}

.news-strip strong {
    color: var(--heading);
}

.news-strip p {
    margin: 0;
    flex: 1 1 18rem;
}

.news-strip a {
    font-weight: 700;
    white-space: nowrap;
}

.hinweise-panel {
    padding: 2.5rem 0 1rem;
}

.hinweis-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
}

.hinweis-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.hinweis-card h3 .urgent {
    color: #c0392b;
}

.hinweis-card h3 .ok {
    color: var(--green);
}

[style*="visibility: gone"],
[style*="visibility:gone"] {
    display: none !important;
}

/* ----- Karten ----- */
.card-quiet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card-quiet:hover,
.card-quiet:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-quiet h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-quiet ul {
    padding-left: 1.1rem;
    margin-bottom: 1rem;
    color: var(--muted);
}

.card-quiet .more {
    font-weight: 700;
    color: var(--green-dark);
}

.quick-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none !important;
    color: inherit;
}

.quick-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

/* ----- Standorte ----- */
.location-card h3 {
    color: var(--green-dark);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.location-card .hours {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem;
}

.location-card .hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding: 0.2rem 0;
    font-size: 0.95rem;
}

.card-quiet.location-emergency {
    background: var(--heading);
    color: #fff;
    border: none;
    box-shadow: none;
}

.card-quiet.location-emergency:hover {
    transform: none;
    box-shadow: none;
}

.card-quiet.location-emergency h3,
.card-quiet.location-emergency h4,
.card-quiet.location-emergency p,
.card-quiet.location-emergency a,
.card-quiet.location-emergency strong {
    color: #fff;
}

.card-quiet.location-emergency a:hover {
    color: var(--green);
}

.card-quiet.location-emergency .hours li {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.team-row img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.team-row h3 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

/* ----- Leistungen ----- */
.jump-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
}

.jump-pills a {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--heading);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.jump-pills a:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
    align-items: start;
}

.service-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
}

.service-tile summary,
.service-tile .tile-body {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    list-style: none;
    cursor: default;
    padding: 1rem 1.15rem;
    min-width: 0;
}

.service-tile summary {
    cursor: pointer;
}

.service-tile summary::-webkit-details-marker {
    display: none;
}

.service-tile .icon-circle {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}

.service-tile .tile-text {
    min-width: 0;
    flex: 1;
}

.service-tile summary h3,
.service-tile .tile-body h3 {
    font-size: 1.05rem;
    margin: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

.service-tile .detail {
    padding: 0 1.2rem 1.2rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.service-tile .detail p:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
}

.cta-bar {
    background: var(--green-soft);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cta-bar h2 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.cta-bar p {
    margin: 0;
    color: var(--muted);
}

.trust-item {
    text-align: center;
    padding: 0.5rem;
}

.trust-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* ----- Footer ----- */
.site-footer {
    background: #1f1f1f;
    color: #cfcfcf;
    padding: 1.35rem 0;
    margin-top: 0;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: var(--green);
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.footer-sep {
    margin: 0 0.35rem;
    color: #888;
}

.team-group {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

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

.person-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.person-media {
    background: var(--green-soft);
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.person-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.person-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.04em;
}

.person-body {
    padding: 1.1rem 1.15rem 1.2rem;
    flex: 1;
}

.person-body h3 {
    font-size: 1.12rem;
    margin-bottom: 0.3rem;
}

.person-role {
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.person-loc {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.person-bio {
    margin-top: 0.4rem;
}

.person-bio summary {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--green-dark);
    list-style: none;
}

.person-bio summary::-webkit-details-marker {
    display: none;
}

.person-bio p {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 991px) {
    .person-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Impressum & Datenschutz */
.legal-prose {
    max-width: 48rem;
}

.legal-prose h3 {
    font-size: 1.25rem;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.legal-prose h4 {
    font-size: 1.08rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-prose h5 {
    font-size: 1rem;
    margin-top: 1.15rem;
    margin-bottom: 0.4rem;
}

.legal-prose p {
    margin-bottom: 0.85rem;
}

.legal-prose .legal-block {
    margin-bottom: 1rem;
}

.legal-prose ul {
    padding-left: 1.15rem;
    margin-bottom: 1rem;
}

.legal-prose li {
    margin-bottom: 0.35rem;
}

.legal-prose .legal-enum {
    list-style: none;
    padding-left: 0;
}

.legal-prose .legal-enum li {
    padding-left: 1.75rem;
    text-indent: -1.75rem;
}

/* Kontakt */
#kontakt-form .form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.15rem rgba(131, 184, 23, 0.25);
}

@media (max-width: 991px) {
    .site-nav .nav-link.active::after {
        display: none;
    }

    .site-nav .nav-cta {
        margin: 0.75rem 0 0.25rem;
    }

    .home-hero {
        min-height: 420px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }

    .home-hero .container {
        padding-bottom: 2.5rem;
        padding-top: 3rem;
    }
}
