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

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-latin-300-normal.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

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

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

/* =========================
   BASE = MOBILE FIRST
========================= */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #FAFAF7;
    line-height: 1.65;
}

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

.header {
    position: sticky;
    top: -1px;
    z-index: 1000;
    background-color: #FAFAF7;
    border-bottom: 1px solid #242182;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

/* LOGO */
.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo .name {
    font-size: 20px;
    font-weight: 600;
    color: #242182;
    white-space: nowrap;
}

.logo-img {
    height: 32px;
}

/* BURGER */
.burger {
    font-size: 24px;
    background: none;
    border: none;
    position: relative;
    z-index: 1100;
    cursor: pointer;
}

.logo {
    position: relative;
    z-index: 1100;
}

.icon-close {
    display: none;
}

.menu-open .icon-open {
    display: none;
}

.menu-open .icon-close {
    display: inline;
}

/* =========================
   NAVIGATION (mobile + desktop)
========================= */

/* Mobile: fullscreen overlay */
.nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 1050;
}

.menu-open .nav {
    display: flex;
}

.nav-panel {
    background: #FAFAF7;
    width: 100%;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nav ul a {
    font-size: 18px;
    font-weight: 600;
    color: #242182;
    text-decoration: none;
    text-transform: uppercase;
}

.nav ul a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.nav-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.nav-cta .btn {
    width: 90%;
    margin: 0 auto;
}

/* =========================
   CTA SYSTEM
========================= */

/* BASE */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 18px;

    border-radius: 999px;
    text-decoration: none;

    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;

    white-space: nowrap;
    cursor: pointer;

    transition: all 0.2s ease;
}

/* ICON */
.btn .icon {
    display: flex;
    align-items: center;
}

.btn .icon svg {
    width: 16px;
    height: 16px;
}

/* VARIANTS */
.btn-primary {
    background: #242182;
    color: white;
}

.btn-secondary {
    background: #398FA7;
    color: white;
}

/* HOVER */
.btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* MOBILE MENU CTA */
.cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.cta-mobile .btn {
    width: 90%;
    margin: 0 auto;
}

/* =========================
   TYPO
========================= */

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 40px 20px 0;
    scroll-margin-top: 70px;
    margin-bottom: 32px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.footer {
    border-top: 1px solid #242182;
    padding: 10px 10px;
}

.footer a {
    color: inherit;
    text-decoration: underline;
}

.footer a:hover {
    opacity: 0.5;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.separator {
    display: inline;
}

@media (max-width: 500px) {
    .footer-inner {
        flex-direction: column;
    }
    .separator {
        display: none;
    }
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1000px) {

    /* Desktop: inline in header */
    .nav {
        display: flex;
        position: static;
        background: none;
        flex: 1;
        z-index: auto;
    }

    .nav-panel {
        background: none;
        padding: 0;
        border-radius: 0;
        max-height: none;
        width: 100%;
        display: flex;
        align-items: center;
        overflow: visible;
    }

    .nav ul {
        flex-direction: row;
        margin: 0 auto;
        padding: 0;
        gap: 20px;
        text-transform: uppercase;
    }

    .nav ul a {
        font-size: 16px;
    }

    .nav-cta {
        flex-direction: row;
        margin-top: 0;
        gap: 12px;
    }

    .nav-cta .btn {
        width: auto;
        margin: 0;
        font-size: 16px;
        padding: 8px 14px;
    }

    .nav-phone {
        display: none;
    }

    .burger {
        display: none;
    }
}


/* ############################################################ */
/* ##### INDEX                                             ##### */
/* ############################################################ */

/* =========================
   HERO IMAGE (HINTERGRUND)
========================= */

.hero {
    position: relative;
    padding: 0;
}

.hero-img {
    display: block;
    width: 100%;
    height: 50vh;
    object-fit: cover;
    object-position: left center;
}

/* =========================
   HERO CONTENT
========================= */

.hero-inner {
    display: flex;
    justify-content: center;
}

.hero-content {
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    background: #398FA7;
    color: #FAFAF7;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-top: -12.5vh;
}

.tagline {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 6px 0;
}

.kassen {
    text-align: center;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

.adresse {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* =========================
   OPENING HOURS
========================= */

.opening-hours {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.opening-hours .title {
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.opening-hours .row {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    opacity: 0.8;
}

.opening-hours .day {
    font-weight: 500;
}

.opening-hours .time {
    text-align: left;
}

/* =========================
   DESKTOP HERO
========================= */

@media (min-width: 1000px) {

    .hero-img {
        height: 75vh;
    }

    .hero-inner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 75vh;
    }

    .hero-content {
        position: absolute;
        left: 75%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin-top: 0;
        width: fit-content;
        max-width: 90%;
    }
}

/* =========================
   TYPO
========================= */

#allgemein h1 {
    font-size: 24px;
}

#allgemein h2 {
    font-size: 18px;
}

/* =========================
   CONTACT TABLE
========================= */

.contact-table {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 12px 8px;
    margin-top: 20px;
}

.contact-table .label {
    font-weight: 600;
    color: #242182;
}

.contact-table .value {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-table .value .btn {
    display: inline-flex;
    width: auto;
}

.contact-table .btn {
    font-size: 14px;
    padding: 8px 14px;
}

/* =========================
   MAP
========================= */

.map {
    margin-top: 20px;
    position: relative;
}

.map iframe {
    display: none;
    width: 100%;
    height: 300px;
    border: none;
}

.map iframe.loaded {
    display: block;
}

.map-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 32px 24px;
    height: 300px;
    box-sizing: border-box;
    background: #f0f0ed;
    border-radius: 12px;
    border: 1px solid rgba(36, 33, 130, 0.1);
    color: #242182;
}

.map-consent.hidden {
    display: none;
}

.map-consent svg {
    opacity: 0.4;
}

.map-consent p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
    max-width: 320px;
}

.map-consent p a {
    color: #242182;
}

/* =========================
   CARD SYSTEM
========================= */

#allgemein .container,
#terminvereinbarung .container,
#kontakt .container,
#besuch .container {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(36, 33, 130, 0.08);
    box-shadow: 0 2px 16px rgba(36, 33, 130, 0.05);
}

#allgemein .container:hover,
#terminvereinbarung .container:hover,
#kontakt .container:hover,
#besuch .container:hover {
    border-color: rgba(36, 33, 130, 0.18);
    box-shadow: 0 4px 24px rgba(36, 33, 130, 0.09);
}

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

@media (min-width: 1000px) {

    .contact-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }

    .map iframe {
        height: 100%;
        min-height: 400px;
    }

    .map-consent {
        height: 100%;
        min-height: 400px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .contact-layout {
        display: block;
    }

    .contact-table {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-table .label {
        margin-top: 10px;
    }

    .contact-table .value .btn {
        max-width: 100%;
    }

    #allgemein .container,
    #terminvereinbarung .container,
    #kontakt .container,
    #besuch .container {
        padding: 16px;
    }
}


/* ############################################################ */
/* ##### HERO SIMPLE (Subseiten)                           ##### */
/* ############################################################ */

.hero-simple {
    position: relative;
    padding: 0;
}

.hero-simple .hero-img {
    height: 30vh;
}

@media (min-width: 1000px) {
    .hero-simple .hero-img {
        height: 35vh;
    }
}


/* ############################################################ */
/* ##### LEISTUNGEN                                        ##### */
/* ############################################################ */

#leistungen h1 {
    margin-bottom: 20px;
}

#leistungen h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 18px;
    color: #242182;
}

#leistungen ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#leistungen li {
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(36, 33, 130, 0.08);
    box-shadow: 0 2px 16px rgba(36, 33, 130, 0.05);
}

#leistungen li:hover {
    border-color: rgba(36, 33, 130, 0.18);
    box-shadow: 0 4px 24px rgba(36, 33, 130, 0.09);
}

#leistungen li strong {
    display: block;
    font-weight: 600;
    color: #242182;
    margin-bottom: 4px;
}

#leistungen li span {
    display: block;
    line-height: 1.5;
    opacity: 0.85;
}

#leistungen p {
    margin-top: 30px;
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.5;
}

.info-card {
    margin-top: 32px;
    padding: 28px 32px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(36, 33, 130, 0.08);
    box-shadow: 0 2px 16px rgba(36, 33, 130, 0.05);
}

.info-card:hover {
    border-color: rgba(36, 33, 130, 0.18);
    box-shadow: 0 4px 24px rgba(36, 33, 130, 0.09);
}

.info-card h3 {
    margin-top: 0;
}

@media (max-width: 600px) {
    .info-card {
        padding: 16px;
    }
}

#leistungen .list-plain {
    list-style: disc;
    padding-left: 20px;
}

#leistungen .list-plain li {
    padding: 0;
    margin-bottom: 8px;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    line-height: 1.5;
}

#leistungen .list-plain li:hover {
    border-color: transparent;
    box-shadow: none;
}

@media (min-width: 1000px) {

    #leistungen h3 {
        margin-top: 40px;
    }

    #leistungen li {
        margin-bottom: 20px;
    }
}


/* ############################################################ */
/* ##### TEAM                                              ##### */
/* ############################################################ */

#team p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.team-member {
    margin-top: 24px;
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(36, 33, 130, 0.08);
    box-shadow: 0 2px 16px rgba(36, 33, 130, 0.05);
}

.team-member:hover {
    border-color: rgba(36, 33, 130, 0.18);
    box-shadow: 0 4px 24px rgba(36, 33, 130, 0.09);
}

.team-member h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #242182;
    font-size: 18px;
}

.team-member p {
    margin-bottom: 10px;
    opacity: 0.85;
}

@media (min-width: 1000px) {

    .team-member {
        padding: 24px;
    }
}


/* ############################################################ */
/* ##### RECHTLICHES                                       ##### */
/* ############################################################ */

#rechtliches h1 {
    margin-bottom: 20px;
}

#rechtliches h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #242182;
    font-size: 18px;
}

.legal-card {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(36, 33, 130, 0.08);
    box-shadow: 0 2px 16px rgba(36, 33, 130, 0.05);
}

.legal-card:hover {
    border-color: rgba(36, 33, 130, 0.18);
    box-shadow: 0 4px 24px rgba(36, 33, 130, 0.09);
}

.legal-card p {
    margin-bottom: 10px;
    line-height: 1.5;
    opacity: 0.85;
}

.legal-card a {
    color: #242182;
    text-decoration: underline;
}

.legal-card a:hover {
    opacity: 0.7;
}

@media (max-width: 600px) {
    .legal-card {
        padding: 16px;
    }
}
