@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/montserrat-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/montserrat-latin-500.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/montserrat-latin-600.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/montserrat-latin-700.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/montserrat-latin-800.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin-900.woff2") format("woff2");
}

:root {
    /* Markenfarben aus dem Logo (0.1.42). --green nur fuer Flaechen/Akzente,
       Text auf hellem Grund in --green-dark (Kontrast 4.7:1). */
    --green: #8bc534;
    --green-dark: #4f8124;
    --ink: #3c4148;
    --icon-disc: #dff0c2;
    --icon-line: var(--ink);
    --muted: #667077;
    --line: #dce3d8;
    --soft: #f4f6f2;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(24, 32, 27, 0.12);
    --content-width: 1120px;
    --wide-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--white);
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.page {
    min-height: 100vh;
    background: var(--white);
}

.shell {
    width: min(100% - 40px, var(--content-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(32, 36, 39, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(100% - 40px, var(--wide-width));
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    min-height: 92px;
}

.brand {
    display: inline-grid;
    justify-items: stretch;
    color: var(--ink);
    line-height: 1;
    letter-spacing: 0;
}

.brand-logo,
.brand .custom-logo {
    display: block;
    width: auto;
    max-width: none;
    height: 64px;
}

.brand span,
.brand-name {
    font-size: 30px;
    font-weight: 800;
}

.brand strong,
.brand-sub {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: var(--green-dark);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-sub i {
    font-style: normal;
}

.mobile-nav-toggle {
    display: none;
}

.main-nav {
    display: flex;
    align-self: stretch;
    /* Seit 0.1.49 rechtsbuendig nah am Kontakt-Button (nur noch ein Button im Header). */
    justify-content: flex-end;
    padding-right: 12px;
    /* 18px bei 1460px Breite, waechst bis 30px (~1700px) - damit auch 8 Menuepunkte passen. */
    gap: clamp(18px, calc(18px + (100vw - 1460px) * 0.05), 30px);
    color: #4c5559;
    font-size: 15px;
    font-weight: 700;
}

.main-menu {
    display: contents;
    margin: 0;
    padding: 0;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-item,
.main-nav .menu-item {
    position: relative;
    list-style: none;
}

.nav-item.has-mega,
.main-nav .menu-item-has-children {
    position: static;
}

.nav-link,
.main-nav a {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    white-space: nowrap;
    height: 100%;
    min-height: 42px;
    padding: 4px 0;
}

.nav-link:hover,
.nav-link:focus,
.nav-link[aria-current="page"],
.main-nav a:hover,
.main-nav a:focus,
.main-nav .current-menu-item > a {
    color: var(--green-dark);
}

.has-panel > .nav-link::after,
.main-nav .menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.main-nav .menu-item.submenu-open > a::after {
    transform: translateY(2px) rotate(225deg);
}

.main-nav .submenu-toggle {
    display: inline-flex;
    vertical-align: middle;
    width: 28px;
    height: 28px;
    margin-left: -28px;
    border: 0;
    border-radius: 6px;
    background: none;
    cursor: pointer;
}

.main-nav .submenu-toggle:hover,
.main-nav .submenu-toggle:focus-visible {
    background: var(--soft);
}

.nav-panel,
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    width: 520px;
    padding: 24px;
    border: 1px solid rgba(79, 129, 36, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-panel-mega,
.main-nav .sub-menu {
    right: 0;
    left: 0;
    width: min(100%, var(--wide-width));
    margin: 0 auto;
}

.nav-panel-intro {
    padding-right: 22px;
    border-right: 1px solid var(--line);
}

.nav-panel-intro strong {
    display: block;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: 20px;
    line-height: 1.2;
}

.nav-panel-intro p,
.nav-panel-links small {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.nav-panel-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.nav-panel-links a {
    min-height: 84px;
    padding: 14px;
    border-radius: 8px;
    background: var(--soft);
}

.nav-panel-links a:hover,
.nav-panel-links a:focus {
    background: #edf5e8;
}

.nav-panel-links span {
    display: block;
    margin-bottom: 5px;
    color: var(--green-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel,
.main-nav .menu-item:hover > .sub-menu,
.main-nav .menu-item:focus-within > .sub-menu,
.main-nav .menu-item.submenu-open > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.main-nav .sub-menu {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 20px;
}

.main-nav .sub-menu a {
    display: block;
    min-height: 64px;
    padding: 14px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--green-dark);
}

.header-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 2px solid var(--green);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
}

.header-button {
    gap: 9px;
    padding-inline: 15px;
}

.button svg,
.slider-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-solid {
    color: var(--ink);
    background: var(--green);
}

.button-solid:hover,
.button-solid:focus {
    color: var(--white);
    border-color: var(--green-dark);
    background: var(--green-dark);
}

.button-outline {
    color: var(--ink);
    background: var(--white);
}

.button-outline:hover,
.button-outline:focus,
.button-light:hover,
.button-light:focus {
    color: var(--white);
    border-color: var(--green-dark);
    background: var(--green-dark);
}

.button-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.1);
}

.hero {
    position: relative;
    min-height: clamp(480px, 38vw, 680px);
    overflow: hidden;
    display: grid;
    align-items: center;
    background: #111513;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-focus, 66% 25%);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 19, 16, 0.88) 0%, rgba(14, 19, 16, 0.66) 38%, rgba(14, 19, 16, 0.16) 76%),
        linear-gradient(0deg, rgba(14, 19, 16, 0.22), rgba(14, 19, 16, 0.22));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--content-width);
    padding: 72px 0 96px;
}

.kicker {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    margin-bottom: 20px;
    color: var(--green-dark);
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 21px;
    line-height: 1.25;
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 22px;
    color: var(--white);
    font-size: clamp(40px, 5.5vw, 68px);
    line-height: 1.1;
    overflow-wrap: break-word;
    hyphens: auto;
    hyphenate-limit-chars: 10 5 5;
}

.hero .kicker {
    color: var(--green);
}

.hero p:not(.kicker) {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    line-height: 1.42;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.section {
    padding: 86px 0;
    background: var(--white);
}

.section-heading-left {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 56px;
    align-items: start;
}

.section-heading-left > p {
    align-self: end;
}

/* Lange Komposita („Prophylaxeseminare") nicht in die Textspalte ragen lassen (0.1.67) */
.section-heading-left h2 {
    overflow-wrap: break-word;
    hyphens: auto;
    hyphenate-limit-chars: 10 5 5;
}

/* Ohne Einleitungstext rechts: Ueberschrift ueber die volle Breite statt in
   die linke Haelfte gequetscht (seit 0.1.58). */
.section-heading-left:not(:has(> p)) {
    grid-template-columns: minmax(0, 1fr);
}

.section-heading-left:not(:has(> p)) h2 {
    max-width: none;
}

.intro-section {
    padding-bottom: 60px;
}

.intro-grid {
    display: block;
}

.intro-grid h2,
.intro-copy {
    max-width: 760px;
}

/* Begruessung mit Portraet (Startseite, seit 0.1.57) */
.intro-grid-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 64px;
    align-items: center;
}

.intro-link {
    display: inline-block;
    margin-top: 22px;
}

.intro-portrait {
    margin: 0;
}

.intro-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 25%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro-portrait figcaption {
    display: grid;
    gap: 2px;
    margin-top: 16px;
    padding-left: 14px;
    border-left: 3px solid var(--green);
}

.intro-portrait strong {
    color: var(--ink);
    font-size: 17px;
}

.intro-portrait span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.35;
}

.intro-section h2 {
    font-size: clamp(28px, 3.6vw, 46px);
}

.intro-quote {
    margin: 28px 0 0;
    padding-left: 20px;
    border-left: 4px solid var(--green);
}

.intro-quote p {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 20px;
    font-style: italic;
    line-height: 1.4;
}

.intro-quote cite {
    color: var(--muted);
    font-size: 15px;
    font-style: normal;
}

.teaser-empty {
    color: var(--muted);
    font-size: 17px;
}

.accordion-section {
    background: #f7f8f5;
}

/* Akkordeon zweispaltig: Ueberschrift links (mitlaufend), Liste rechts (0.1.69) */
.accordion-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
    gap: 56px;
    align-items: start;
}

.accordion-intro {
    position: sticky;
    top: 120px;
}

.accordion-intro h2 {
    font-size: clamp(30px, 3.2vw, 42px);
    overflow-wrap: break-word;
    hyphens: auto;
    hyphenate-limit-chars: 10 5 5;
}

.accordion-intro p:not(.kicker) {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.45;
}

.accordion {
    display: grid;
    gap: 12px;
}

.accordion-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.accordion-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}

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

.accordion-item summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--green);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}

.accordion-item[open] summary::after {
    content: "\2013";
}

.accordion-item summary:hover {
    color: var(--green-dark);
}

.accordion-body {
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.accordion-body :last-child {
    margin-bottom: 0;
}

.accordion-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 4px;
}

.accordion-body li::marker {
    color: var(--green);
}

.accordion-body a {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.accordion-body a:hover,
.accordion-body a:focus {
    text-decoration-thickness: 2px;
}

.intro-copy p,
.section-heading-left p,
.split-copy p,
.about-section p,
.dates-grid p,
.contact-section p {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.45;
}

.intro-copy p:last-child,
.split-copy p:last-child,
.contact-section p:last-child {
    margin-bottom: 0;
}

.split-copy ul {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.split-copy li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 30px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.45;
}

.split-copy li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 2px;
    width: 14px;
    height: 8px;
    border-bottom: 3px solid var(--green);
    border-left: 3px solid var(--green);
    transform: rotate(-45deg);
}

.services-overview-section {
    background: #f5f8f2;
}

.services-layout {
    display: grid;
    grid-template-columns: minmax(270px, 350px) minmax(0, 1fr);
    gap: 48px;
    width: min(100% - 40px, var(--wide-width));
    margin: 0 auto;
}

.services-intro {
    position: sticky;
    top: 122px;
    align-self: start;
}

.services-intro p:not(.kicker) {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.45;
}

.slider-controls {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.slider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--green);
    border-radius: 8px;
    color: var(--green-dark);
    background: var(--white);
    cursor: pointer;
}

.slider-button:hover,
.slider-button:focus {
    color: var(--white);
    background: var(--green);
}

.services-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 320px);
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 4px 0 22px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 197, 52, 0.55) transparent;
}

.services-slider::-webkit-scrollbar {
    height: 8px;
}

.services-slider::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(139, 197, 52, 0.5);
}

.service-card,
.dates-grid article {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    padding: 30px 26px;
    border-radius: 8px;
    background: var(--white);
    scroll-snap-align: start;
}

.service-card:first-child {
    border-top: 5px solid var(--green);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 2px solid rgba(139, 197, 52, 0.36);
    border-radius: 8px;
    color: var(--green-dark);
    background: #f6faf3;
}

.service-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.service-card p {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.45;
}

.service-card a,
.text-link {
    margin-top: auto;
    color: var(--green-dark);
    font-weight: 600;
    border: 0;
    padding: 0;
    min-height: 0;
    background: transparent;
}

.service-card a::after,
.text-link::after {
    content: " \2192";
}

.split-section {
    background: var(--white);
}

.split-section-muted {
    background: #eef2ea;
}

.split-row,
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
    gap: 56px;
    align-items: center;
}

.split-row-reverse {
    grid-template-columns: minmax(420px, 1fr) minmax(0, 0.9fr);
}

.split-row-reverse .split-copy {
    order: 2;
}

.split-row > img,
.about-photo-stack img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: 50% 10%;
    box-shadow: var(--shadow);
}

.split-row > img {
    align-self: stretch;
    height: 100%;
    min-height: 380px;
    max-height: 560px;
}

.split-copy h2 {
    font-size: clamp(30px, 3.2vw, 42px);
}

.about-section {
    background: var(--white);
}

.about-photo-stack {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 18px;
    align-items: end;
}

.about-photo-stack img:first-child {
    height: 440px;
}

.about-photo-stack img:last-child {
    height: 280px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.proof-grid div {
    min-height: 120px;
    padding: 18px;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    background: var(--soft);
}

.proof-grid strong,
.proof-grid span {
    display: block;
    overflow-wrap: break-word;
    hyphens: auto;
    hyphenate-limit-chars: 10 5 5;
}

.proof-grid strong {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.2;
}

.proof-grid span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.3;
}

.dates-section {
    background: #f7f8f5;
}

.icon-section {
    background: var(--white);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.icon-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 22px 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    text-align: center;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.icon-card:hover,
.icon-card:focus-within {
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.icon-card-icon {
    width: 140px;
    margin-bottom: 22px;
}

.icon-card-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.icon-card h3 {
    /* Titelbereich immer zwei Zeilen hoch, damit die Texte aller Karten auf
       derselben Linie beginnen (0.1.58). */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5em;
    overflow-wrap: break-word;
    hyphens: manual;
}

.icon-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
}

.icon-card h3 a:focus-visible {
    outline: none;
}

.icon-card:focus-within {
    outline: 2px solid var(--green-dark);
    outline-offset: 2px;
}

.icon-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

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

.teaser-grid,
.post-card-grid,
.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

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

/* Genau zwei Karten: zwei Spalten statt leerer dritter Spalte (0.1.65).
   Nur ab Tablet-Breite, mobil bleibt es einspaltig. */
@media (min-width: 881px) {
    .teaser-grid:has(> :nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Formate auf der Seminare-Seite: weiss mit grauen Karten, damit er sich
   von den grauen Fachbereichen davor abhebt (0.1.65) */
#formate.dates-section {
    background: var(--white);
}

#formate .dates-grid article {
    background: var(--soft);
}

.teaser-card,
.post-card,
.testimonial-card {
    overflow: hidden;
    border-radius: 8px;
    background: var(--soft);
}

.teaser-card {
    background: var(--white);
    border: 1px solid var(--line);
}

.teaser-card img,
.post-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.teaser-card > div,
.post-card > div,
.testimonial-card {
    padding: 26px;
}

.teaser-card p,
.post-card p,
.testimonial-card blockquote {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}

.timeline-section,
.reference-section {
    background: #f7f8f5;
}

.timeline-section + .timeline-section {
    padding-top: 0;
}

/* Zeitleiste (seit 0.1.60): senkrechte Linie mit Punkten statt Kaesten */
.timeline-list {
    margin-top: 8px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.timeline-list li {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    column-gap: 32px;
}

.timeline-year {
    padding-top: 2px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: right;
}

.timeline-body {
    position: relative;
    max-width: 720px;
    padding: 0 0 30px 32px;
    border-left: 2px solid var(--line);
}

.timeline-list li:last-child .timeline-body {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-body::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px #f7f8f5;
}

.timeline-list h3 {
    margin-bottom: 4px;
    font-size: 19px;
    line-height: 1.35;
}

.timeline-list p {
    font-size: 16px;
    line-height: 1.45;
}

.event-item time {
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 900;
}

.timeline-list h3,
.timeline-list p,
.event-item h3,
.event-item p {
    margin-bottom: 0;
}

.timeline-list p,
.event-item p {
    color: var(--muted);
}

.testimonial-section {
    background: var(--white);
}

.section-heading {
    margin-bottom: 42px;
    text-align: center;
}

.testimonial-card {
    margin: 0;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 5px solid var(--green);
}

.testimonial-card blockquote {
    margin: 0 0 24px;
}

.testimonial-card figcaption strong,
.testimonial-card figcaption span {
    display: block;
}

.testimonial-card figcaption strong {
    color: var(--ink);
}

.testimonial-card figcaption span {
    color: var(--muted);
    font-size: 14px;
}

.reference-grid {
    align-items: stretch;
}

.reference-item {
    display: grid;
    min-height: 128px;
    place-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.reference-item img {
    max-height: 72px;
    width: auto;
    filter: grayscale(1);
}

.reference-item span {
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.news-section {
    background: var(--white);
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card h3 a:hover,
.post-card h3 a:focus {
    color: var(--ink);
}

/* News-Karten (0.1.73) */
.post-card {
    border: 1px solid var(--line);
    background: var(--white);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.post-card:hover,
.post-card:focus-within {
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.post-card-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--icon-disc);
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-date-badge {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    line-height: 1;
}

.post-card-date-badge strong {
    font-size: 64px;
    font-weight: 900;
}

.post-card-date-badge span {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 26px;
}

.post-card .post-card-meta {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.post-card h3 a {
    color: inherit;
}

.post-card-body .text-link {
    margin-top: auto;
}

.news-empty {
    color: var(--muted);
    font-size: 18px;
}

.pagination {
    margin-top: 36px;
}

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-numbers {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus {
    border-color: var(--green-dark);
    color: var(--white);
    background: var(--green-dark);
}

/* Impressum & Datenschutz: 1/3 + 2/3 (0.1.75) */
.legal-header h1 {
    margin-bottom: 0;
    color: var(--green-dark);
    font-size: clamp(32px, 4vw, 48px);
}

.legal-section {
    background: var(--white);
}

.legal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
    align-items: start;
}

.legal-imprint {
    position: sticky;
    top: 120px;
    padding: 28px;
    border-radius: 8px;
    background: #f7f8f5;
    font-size: 16px;
}

.legal-grid h2 {
    margin-top: 0;
    font-size: clamp(24px, 2.4vw, 30px);
}

.legal-grid h3 {
    margin: 24px 0 6px;
    color: var(--ink);
    font-size: 17px;
}

.legal-privacy {
    font-size: 16px;
}

.legal-placeholder {
    padding: 18px 20px;
    border-left: 4px solid var(--green);
    background: #f7f8f5;
    color: var(--muted);
}

#impressum,
#datenschutz {
    scroll-margin-top: 110px;
}

/* Einzelner Beitrag (0.1.73) */
.article-shell {
    max-width: 780px;
}

.article-header {
    padding: 64px 0 48px;
    background: #f7f8f5;
}

.article-header .article-lead {
    margin-bottom: 0;
}

.article-main {
    padding: 44px 0 88px;
}

.article-meta {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

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

.article h1 {
    color: var(--green-dark);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
}

.article-lead {
    color: var(--ink);
    font-size: 21px;
    line-height: 1.5;
}

.article-image {
    margin: 0 0 36px;
}

/* Beitragsbilder einheitlich 16:9, damit Hochformate nicht die ganze Seite fuellen */
.article-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.article-content {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.7;
}

.article-content h2,
.article-content h3 {
    margin-top: 36px;
}

.article-content h2 {
    font-size: clamp(24px, 2.6vw, 32px);
}

.article-content a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content img {
    height: auto;
    border-radius: 8px;
}

.article-content ul,
.article-content ol {
    padding-left: 22px;
}

.article-content li::marker {
    color: var(--green);
}

.article-back {
    margin-top: 40px;
}

.news-related {
    background: #f7f8f5;
}

.events-section {
    background: #eef2ea;
}

.event-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.event-filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.event-filter-btn:hover,
.event-filter-btn:focus-visible {
    border-color: var(--green);
}

.event-filter-btn.is-active {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

.event-list {
    display: grid;
    gap: 12px;
}

.event-item[hidden] {
    display: none;
}

.event-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 8px;
    background: var(--white);
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dates-grid article {
    min-height: 230px;
}

.dates-grid span {
    margin-bottom: 22px;
    color: var(--green);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.contact-section {
    background: #202427;
}

.contact-section h2,
.contact-section .kicker {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
    gap: 58px;
    align-items: start;
}

.contact-section p,
.contact-facts a {
    color: rgba(255, 255, 255, 0.78);
}

.contact-facts {
    display: grid;
    gap: 18px;
    margin-top: 32px;
}

.contact-facts p {
    margin: 0;
}

.contact-facts strong {
    color: var(--green);
}

.contact-facts .contact-route {
    display: inline-block;
    margin-top: 8px;
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-facts .contact-route::after {
    content: " \2197";
}

/* Sprungziele nicht unter dem fixierten Header verstecken (0.1.62) */
.section[id] {
    scroll-margin-top: 96px;
}

.section[id]:focus {
    outline: none;
}

.contact-form {
    display: grid;
    gap: 13px;
    padding: 30px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-form label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fbfcfa;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 2px solid rgba(139, 197, 52, 0.32);
    border-color: var(--green);
}

.contact-form input[type="submit"],
.contact-form button[type="submit"],
.contact-form .wpcf7-submit {
    width: auto;
    justify-self: start;
    margin-top: 6px;
    padding: 13px 24px;
    border: 2px solid var(--green);
    border-radius: 8px;
    color: var(--ink);
    background: var(--green);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
}

.contact-form input[type="submit"]:hover,
.contact-form input[type="submit"]:focus,
.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus,
.contact-form .wpcf7-submit:hover,
.contact-form .wpcf7-submit:focus {
    border-color: var(--green-dark);
    background: var(--green-dark);
    outline: none;
}

.contact-form p {
    margin: 0;
}

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

.form-message {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.form-message p {
    margin: 0;
    color: inherit;
    font-size: 15px;
}

.form-message.success {
    color: #24530d;
    background: #e7f5dc;
}

.form-message.error {
    color: #7c211b;
    background: #fde8e6;
}

.legal-note {
    padding: 22px 0;
    background: #151819;
}

.legal-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #151819;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner div,
.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

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

@media (max-width: 1440px) {
    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
        min-height: 78px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 2px solid var(--green);
        border-radius: 8px;
        background: var(--white);
    }

    .mobile-nav-toggle span:not(.visually-hidden) {
        width: 20px;
        height: 2px;
        margin: 0 auto;
        background: var(--ink);
    }

    /* ---- Mobile Navigation als Vollbild-Ebene (seit 0.1.56) ---- */

    /* backdrop-filter wuerde position:fixed der Ebene auf den Header begrenzen */
    .site-header.nav-open {
        background: var(--white);
        backdrop-filter: none;
    }

    .site-header.nav-open .brand,
    .site-header.nav-open .mobile-nav-toggle {
        position: relative;
        z-index: 62;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .site-header.nav-open .main-nav {
        position: fixed;
        inset: 0;
        z-index: 60;
        display: block;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 96px max(20px, calc((100vw - 640px) / 2)) 120px;
        background: var(--white);
        font-size: 22px;
        animation: dentalink-nav-in 200ms ease-out;
    }

    .site-header.nav-open .main-menu {
        display: block;
        border-top: 1px solid var(--line);
    }

    .main-nav .menu-item {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .main-nav a {
        display: flex;
        width: 100%;
        height: auto;
        min-height: 60px;
        padding: 14px 0;
        white-space: normal;
        color: var(--ink);
    }

    .main-nav a:hover,
    .main-nav a:focus,
    .main-nav .current-menu-item > a {
        color: var(--green-dark);
    }

    .has-panel > .nav-link::after,
    .main-nav .menu-item-has-children > a::after,
    .submenu-toggle,
    .main-nav .submenu-toggle {
        display: none;
        content: none;
    }

    /* Unterpunkte immer sichtbar, eingerueckt unter dem Elternpunkt */
    .main-nav .sub-menu,
    .main-nav .menu-item:hover > .sub-menu,
    .main-nav .menu-item:focus-within > .sub-menu {
        position: static;
        display: block;
        width: auto;
        margin: -6px 0 12px;
        padding: 0 0 0 18px;
        border: 0;
        border-left: 3px solid var(--green);
        border-radius: 0;
        background: none;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .main-nav .sub-menu .menu-item {
        border-bottom: 0;
    }

    .main-nav .sub-menu a {
        min-height: 44px;
        padding: 8px 0;
        border-radius: 0;
        background: none;
        color: var(--muted);
        font-size: 17px;
        font-weight: 600;
    }

    .site-header.nav-open .header-actions {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 61;
        display: flex;
        padding: 16px max(20px, calc((100vw - 640px) / 2)) calc(16px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: var(--white);
        animation: dentalink-nav-in 200ms ease-out;
    }

    .site-header.nav-open .header-actions .button {
        flex: 1;
        min-height: 52px;
        border-color: var(--green);
        color: var(--ink);
        background: var(--green);
        font-size: 16px;
    }

    .site-header.nav-open .header-actions .button:hover,
    .site-header.nav-open .header-actions .button:focus {
        border-color: var(--green-dark);
        color: var(--white);
        background: var(--green-dark);
    }

    /* Hamburger -> Kreuz */
    .mobile-nav-toggle span:not(.visually-hidden) {
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .site-header.nav-open .mobile-nav-toggle span:nth-of-type(2) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-open .mobile-nav-toggle span:nth-of-type(3) {
        opacity: 0;
    }

    .site-header.nav-open .mobile-nav-toggle span:nth-of-type(4) {
        transform: translateY(-7px) rotate(-45deg);
    }

    html.nav-locked,
    html.nav-locked body {
        overflow: hidden;
    }
}

@keyframes dentalink-nav-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header.nav-open .main-nav,
    .site-header.nav-open .header-actions {
        animation: none;
    }
}

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

@media (max-width: 880px) {
    .legal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-imprint {
        position: static;
    }

    .accordion-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .accordion-intro {
        position: static;
    }

    .intro-grid-media {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .intro-portrait {
        max-width: 260px;
    }

    .hero-content {
        padding: 72px 0 94px;
    }

    .section {
        padding: 66px 0;
    }

    .section-heading-left,
    .services-layout,
    .split-row,
    .split-row-reverse,
    .about-grid,
    .contact-grid,
    .dates-grid,
    .teaser-grid,
    .post-card-grid,
    .testimonial-grid,
    .reference-grid,
    .event-item {
        grid-template-columns: 1fr;
    }

    .services-intro {
        position: static;
    }

    .split-row-reverse .split-copy {
        order: 0;
    }

    .split-row > img,
    .about-photo-stack img:first-child,
    .about-photo-stack img:last-child {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

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

    .timeline-list li {
        grid-template-columns: 1fr;
    }

    .timeline-year {
        padding: 0 0 2px 32px;
        border-left: 2px solid var(--line);
        text-align: left;
    }

    .timeline-list li:last-child .timeline-year {
        border-left-color: var(--line);
    }

    .timeline-year:empty {
        display: none;
    }
}

@media (max-width: 620px) {
    .shell,
    .services-layout {
        width: min(100% - 28px, var(--content-width));
    }

    .brand span,
    .brand-name {
        font-size: 25px;
    }

    .brand-logo,
    .brand .custom-logo {
        height: 46px;
    }

    .icon-grid {
        grid-template-columns: 1fr;
    }

    .icon-card-icon {
        width: 120px;
    }

    .icon-card h3 {
        min-height: 0;
    }

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

    .hero {
        min-height: 590px;
    }

    .hero p:not(.kicker),
    .intro-copy p,
    .section-heading-left p,
    .split-copy p,
    .about-section p,
    .dates-grid p,
    .contact-section p {
        font-size: 17px;
    }

    .hero-actions,
    .hero-actions .button,
    .contact-form .button,
    .contact-form input[type="submit"],
    .contact-form button[type="submit"],
    .contact-form .wpcf7-submit {
        width: 100%;
    }

    .about-photo-stack {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 22px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

/* Datenschutz-Hinweis unter dem Kontaktformular (0.1.84) */
.contact-form .contact-privacy {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
}

.contact-form .contact-privacy a {
    color: inherit;
    text-decoration: underline;
}

/* Mobil (0.1.101 Startseite, 0.1.102 alle Seiten): Foto als eigener Streifen oben, Text darunter
   auf dunklem Grund – das Gesicht liegt nicht mehr hinter dem Text. */
@media (max-width: 620px) {
    .hero {
        display: block;
        min-height: 0;
    }

    .hero-media {
        position: relative;
        inset: auto;
        height: min(66vw, 320px);
    }

    .hero-media img {
        object-position: var(--hero-focus-mobile, var(--hero-focus, 66% 25%));
    }

    .hero-media::after {
        background: linear-gradient(180deg, rgba(17, 21, 19, 0) 58%, rgba(17, 21, 19, 0.7) 86%, #111513 100%);
    }

    .hero-content {
        margin-top: -14px;
        padding: 0 0 40px;
    }

    .hero h1 {
        margin-bottom: 16px;
        font-size: 36px;
    }

    .hero p:not(.kicker) {
        margin-bottom: 24px;
    }
}
