/* Brieger theme — cloned palette/type from the live dr-brieger.de Elementor build:
   navy #27408b (primary), gold #f1ba63 / #ad8647 (accent), Lato typeface. */

@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato-700.woff2') format('woff2');
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #27408b;
    --color-primary-dark: #1d3170;
    --color-accent: #5b8fd1;
    --color-accent-dark: #1d3170;
    --color-text: #373737;
    --color-text-dark: #272727;
    --color-bg-light: #f7f7f7;
    --color-bg-lighter: #f1f1f1;
    --color-white: #ffffff;
    --font-family: 'Lato', sans-serif;
    --max-width: 1140px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-card: 0 12px 28px rgba(31, 45, 90, 0.10);
}

* { box-sizing: border-box; }

.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; }

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-family);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5em;
}
h1 { font-size: 35px; }
h2 { font-size: 30px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }

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

/* Prose links: non-color visual indicator (WCAG 1.4.1) */
.intro-hours__text a,
.page a {
    border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}
.intro-hours__text a:hover,
.page a:hover {
    border-bottom-color: color-mix(in srgb, currentColor 60%, transparent);
}

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

/* Header */
.site-topbar {
    display: flex;
    font-size: 13px;
    height: 34px;
}
.site-topbar__shape {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    background: var(--color-primary);
    padding: 0 20px 0 54px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 34px 100%);
}
.site-topbar__info {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    color: var(--color-white);
    white-space: nowrap;
}
.site-topbar__info li + li::before { content: '|'; margin-right: 10px; opacity: 0.5; }
.site-topbar__info i { margin-right: 4px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-bg-lighter);
}
.site-header__inner {
    position: relative;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-header__logo { display: block; }
.site-header__logo img { max-width: 100%; height: auto; }
.site-header__logo--desktop { display: block; width: 660px; }
.site-header__logo--mobile { display: none; width: 280px; max-width: calc(100% - 50px); }

.site-header__mobile-cta { display: none; }

.site-header__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    color: var(--color-primary);
}
.site-header__cta i { font-size: 28px; }
.site-header__cta span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
.site-header__cta small {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.site-header__cta:hover { color: var(--color-accent-dark); }

.site-nav-bar { background: var(--color-primary); }
.site-nav {
    display: block;
    padding: 0 20px;
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.site-nav li { position: relative; }
.site-nav > ul > li > a {
    display: block;
    padding: 14px 12px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-white);
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li.active > a {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 4px;
}
.site-nav li.has-children > a::after {
    content: '▾';
    font-size: 12px;
    margin-left: 6px;
}
.site-nav .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    min-width: 240px;
    padding: 8px 0;
    border-radius: var(--radius-md);
    z-index: 10;
}
.site-nav li:hover .sub-menu { display: block; }
.site-nav .sub-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    color: var(--color-text);
    white-space: nowrap;
}
.site-nav .sub-menu a:hover { background: var(--color-bg-light); color: var(--color-primary); }
.site-nav .sub-menu li.active > a { background: var(--color-bg-light); color: var(--color-primary); font-weight: 700; }

.lang-switcher { display: flex; gap: 6px; font-weight: 600; }
.lang-switcher a { padding: 4px 6px; color: rgba(255,255,255,0.7); }
.lang-switcher a.active { color: var(--color-white); }
.lang-switcher--mobile { display: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-primary);
    cursor: pointer;
}

/* Hero / slider */
.hero {
    position: relative;
    background: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
}
.hero__slides {
    position: relative;
    height: 600px;
}
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide:has(.hero__content)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(39,64,139,0.55), rgba(39,64,139,0.75));
}
.hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.hero__content h1 { color: var(--color-white); max-width: 600px; }
.hero__content p { font-size: 18px; max-width: 560px; }
.hero__dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero__dots button {
    width: 10px; height: 10px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0;
}
.hero__dots button.is-active { background: var(--color-accent); }
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    color: var(--color-white);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.hero__arrow:hover { background: rgba(0,0,0,0.55); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
.hero__shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}
.hero__shape svg { display: block; width: 100%; height: 50px; transform: scaleY(-1); }
.hero__shape path { fill: var(--color-white); }
@media (max-width: 768px) {
    .hero__arrow { display: none; }
    .hero__shape svg { height: 30px; }
}

/* Buttons / CTA */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn:hover { background: var(--color-primary-dark); color: var(--color-white); }
.btn--outline { background: transparent; border: 2px solid var(--color-white); color: var(--color-white); }

.cta-banner {
    background: var(--color-bg-light);
    padding: 50px 0;
    text-align: center;
}

/* Icon box grid (services) */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 50px 0;
}
.icon-box {
    text-align: center;
    padding: 20px;
}
.icon-box__icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-lighter);
    color: var(--color-primary);
    font-size: 28px;
}
.icon-box h3 { font-size: 18px; }

.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0;
}
.icon-list li::before {
    content: "✓";
    color: var(--color-accent-dark);
    font-weight: 700;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 50px 0;
}
.team-member { text-align: center; }
.team-grid .team-member img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: var(--radius-md);
    margin: 0 0 12px;
}
.team-member__initials {
    width: 100%; aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-lighter);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 2.5rem;
}
.team-member__name { font-weight: 700; color: var(--color-text-dark); }
.team-member__position { font-size: 14px; color: var(--color-text); }
.team-member__bio {
    list-style: none;
    text-align: left;
    margin: 12px 0 0;
    padding: 0;
    font-size: 13px;
    color: var(--color-text);
}
.team-member__bio li { padding: 3px 0; }
.team-member__bio li::before { content: "– "; }

/* Contact / map */
.contact-section { padding: 50px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-section .map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.opening-hours table { width: 100%; border-collapse: collapse; }
.opening-hours thead th {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0 10px 10px;
    text-align: left;
}
.opening-hours tbody td, .opening-hours tbody th {
    padding: 10px 10px;
    border-bottom: 1px solid var(--color-bg-lighter);
    text-align: left;
    font-weight: 400;
    white-space: nowrap;
}
.opening-hours tbody th { font-weight: 600; color: var(--color-text-dark); }
.opening-hours tbody tr:last-child td, .opening-hours tbody tr:last-child th { border-bottom: none; }
.opening-hours tbody tr.opening-hours__row--today { background: var(--color-bg-light); }
.opening-hours tbody tr.opening-hours__row--today td,
.opening-hours tbody tr.opening-hours__row--today th {
    color: var(--color-primary);
    font-weight: 700;
}
.opening-hours tbody tr.opening-hours__row--today td:first-child,
.opening-hours tbody tr.opening-hours__row--today th:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.opening-hours tbody tr.opening-hours__row--today td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.emergency-box { background: var(--color-bg-light); padding: 20px; margin-top: 20px; border-left: 4px solid var(--color-accent); }

/* Form (Grav Form plugin default markup) */
.form-wrapper form {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
}
.form-field { width: 100%; }
.form-field--half { width: 100%; flex: 1 1 220px; }
.form-field .form-label label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--color-text-dark);
}
.form-field .required { color: #c0392b; margin-left: 2px; }
.form-input-wrapper input,
.form-textarea-wrapper textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cfd3da;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 16px;
    background: var(--color-white);
}
.form-input-wrapper input:focus,
.form-textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(39,64,139,0.12);
}
.form-textarea-wrapper textarea { min-height: 140px; resize: vertical; }
.form-field:has(input[type="checkbox"]) .form-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.form-field input[type="checkbox"] { width: auto; margin-top: 4px; }
.form-field:has(input[type="checkbox"]) label {
    display: inline;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
}
.form-errors { color: #c0392b; font-size: 14px; margin-top: 4px; }
.form-errors p { margin: 0; }
.form-field.has-errors { background: rgba(255,0,0,.05); border: 1px solid rgba(255,0,0,.2); border-radius: 3px; margin: 0 -5px; padding: 0 5px; }
.buttons { width: 100%; margin-top: 6px; }
.buttons .button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}
.buttons .button:hover { background: var(--color-primary-dark); }
.notices { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 15px; }
.notices.green { background: #e6f4ea; color: #1e7e34; }
.notices.red { background: #fbe7e7; color: #c0392b; }
.notices.yellow { background: #fff6e0; color: #9a6c00; }
.notices p { margin: 0; }

/* Page content */
.page { padding: 50px 0; }
.page .container { max-width: 860px; }
.page img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5em 0;
    display: block;
}
.page figure { margin: 1.5em 0; }
.page figure img { margin: 0 0 0.5em; }
.page figcaption {
    font-size: 14px;
    color: var(--color-text);
    font-style: italic;
}

/* Page banner mockup: image bleeds past the content column on wide
   screens, with text flowing around it. Below 1200px there's not enough
   gutter to bleed into, so it falls back to a normal full-width image.
   Selector is qualified as .page figure.page-banner--offset (not just
   .page-banner--offset) so it reliably outranks the .page figure rule
   above on specificity, rather than depending on source order. */
.page figure.page-banner--offset {
    margin: 1.5em 0;
}
.page figure.page-banner--offset img { margin: 0; }
@media (min-width: 1200px) {
    .page figure.page-banner--offset {
        float: left;
        width: 45%;
        margin: 0 28px 24px -18%;
        shape-margin: 16px;
    }
}
.page article ul:not(.icon-list),
.page ul:not(.icon-list) {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
}
.page ul:not(.icon-list) li {
    padding: 6px 0 6px 28px;
    position: relative;
}
.page ul:not(.icon-list) li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent-dark);
    font-weight: 700;
}
.page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.page table th, .page table td {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--color-bg-lighter);
}

/* Divider */
.divider {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border: none;
    margin: 16px 0 30px;
}
/* Home: intro + opening hours */
.intro-hours {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    padding: 50px 0;
    align-items: start;
}
.intro-hours__hours {
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.intro-hours__hours h2 { font-size: 22px; }
.intro-hours__phone { margin: 0 0 16px; }
.intro-hours__phone a { font-size: 22px; font-weight: 700; color: var(--color-primary); }

/* Home: services overview (cards + text, side by side) */
.services-overview {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    padding: 50px 0;
    align-items: center;
}

/* Home: service preview cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.service-cards a:nth-child(3) { grid-column: 1 / -1; }
.service-cards.service-cards--grid a:nth-child(3) { grid-column: auto; }
.service-card {
    position: relative;
    display: block;
    height: 170px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    filter: brightness(1);
    box-shadow: var(--shadow-card);
    transition: filter 0.2s ease, transform 0.2s ease;
}
.service-card:hover { filter: brightness(0.85); transform: translateY(-2px); }
.service-card__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    padding: 10px 16px;
}
.service-card__title {
    color: var(--color-white);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}

/* Home: leistungen intro */
.leistungen-intro p { margin: 0 0 24px; }

/* Home: team preview */
.team-preview { padding: 0 0 50px; text-align: center; }
.team-preview .divider { margin-left: auto; margin-right: auto; }
.team-preview .team-grid { padding-top: 0; }
.team-preview__more { margin-top: 10px; }

/* Home: contact + form */
.home-contact {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 50px 0;
}
.home-contact h2, .home-contact h3 { color: var(--color-white); }
.home-contact .divider { background: var(--color-accent); }
.home-contact a { color: var(--color-white); }
.home-contact a:hover { color: var(--color-accent); }
.home-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}
.home-contact__phones { list-style: none; margin: 16px 0 0; padding: 0; }
.home-contact__phones li { padding: 4px 0; }
.home-contact__phones i { width: 20px; color: var(--color-accent); }

.home-contact .form-field .form-label label { color: var(--color-white); }
.home-contact .form-field .required { color: #ffd1d1; }
.home-contact .form-field:has(input[type="checkbox"]) label {
    color: rgba(255,255,255,0.85);
}
.home-contact .form-field:has(input[type="checkbox"]) label a {
    color: var(--color-white);
    text-decoration: underline;
}
.home-contact .form-errors { color: #ffd1d1; }
.home-contact .buttons .button { background: var(--color-white); color: var(--color-primary); }
.home-contact .buttons .button:hover { background: var(--color-accent); color: var(--color-white); }

/* Home: full-width map */
.home-map { width: 100%; height: 420px; }
.home-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.85);
    padding: 30px 0;
    font-size: 14px;
    text-align: center;
}
.site-footer a { color: var(--color-white); text-decoration: underline; }

@media (max-width: 860px) {
    .contact-section { grid-template-columns: 1fr; }
    .intro-hours { grid-template-columns: 1fr; gap: 30px; }
    .home-contact__grid { grid-template-columns: 1fr; gap: 30px; }
    .services-overview { grid-template-columns: 1fr; gap: 30px; }
}

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

@media (max-width: 600px) {
    .service-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .site-topbar { display: none; }
    .site-header__logo--desktop { display: none; }
    .site-header__logo--mobile { display: block; }
    .site-header__cta { display: none; }
    .site-header__mobile-cta {
        display: block;
        background: var(--color-primary);
        color: var(--color-white);
        text-align: center;
        padding: 10px 20px;
        font-weight: 700;
        font-size: 15px;
    }
    .site-header__mobile-cta:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
    .nav-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }
    .site-nav-bar { display: none; }
    .site-nav-bar.is-open { display: block; }
    .site-nav ul { flex-direction: column; }
    .site-nav .sub-menu {
        display: block;
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 16px;
    }
    .site-nav .sub-menu a { color: var(--color-white); }
    .site-nav .sub-menu a:hover,
    .site-nav .sub-menu li.active > a {
        background: transparent;
        color: var(--color-white);
        font-weight: 700;
        text-decoration: underline;
        text-decoration-color: var(--color-accent);
        text-underline-offset: 4px;
    }
    .lang-switcher--mobile {
        display: flex;
        gap: 6px;
        font-weight: 600;
        padding: 16px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
}

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