/* =========================================================
   Design tokens
   ========================================================= */
:root {
    --prussian-blue: #031d44;
    --deep-space-blue: #04395e;
    --muted-teal: #70a288;
    --tan: #dab785;
    --burnt-peach: #d5896f;
    --bg: var(--prussian-blue);
    --bg-raised: var(--deep-space-blue);
    --text-main: #f4efe6;
    --text-dim: #b9c3d0;
    --accent: var(--burnt-peach);
    --accent-soft: var(--tan);
    --line: rgba(244, 239, 230, 0.14);
    --font-display: "Newsreader", Georgia, serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --content-width: 1120px;
    --radius: 6px;
}

/* =========================================================
   Reset & base
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

p {
    max-width: 62ch;
    color: var(--text-dim);
}

:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(3, 29, 68, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 18px;
        padding-bottom: 18px;
    }

.brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.4rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--text-main);
}

    .brand span {
        color: var(--accent-soft);
        font-style: normal;
    }

.main-nav {
    display: flex;
    gap: 8px;
}

    .main-nav a {
        position: relative;
        text-decoration: none;
        font-size: 0.95rem;
        color: var(--text-dim);
        padding: 8px 14px;
        border-radius: var(--radius);
        transition: color 0.15s ease;
    }

        .main-nav a:hover {
            color: var(--text-main);
        }

        .main-nav a.active {
            color: var(--text-main);
        }

            .main-nav a.active::after {
                content: "";
                position: absolute;
                left: 14px;
                right: 14px;
                bottom: 3px;
                height: 2px;
                background: var(--accent);
                border-radius: 2px;
            }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text-main);
    padding: 8px 12px;
    font-size: 1rem;
}

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--prussian-blue);
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 18px;
        gap: 2px;
        display: none;
    }

        .main-nav.open {
            display: flex;
        }
}

/* =========================================================
   Hero (home page)
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 88px;
    border-bottom: 1px solid var(--line);
}

.hero-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-soft);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--text-main);
    max-width: 14ch;
}

.hero p.lede {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-top: 20px;
    max-width: 46ch;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: transparent; /* override UA default white on <button> elements */
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: var(--accent);
    color: var(--prussian-blue);
    font-weight: 600;
}

    .btn-primary:hover {
        background: #e09d84;
    }

.btn-ghost {
    border-color: var(--line);
    color: var(--text-main);
}

    .btn-ghost:hover {
        border-color: var(--accent-soft);
        color: var(--accent-soft);
    }

/* =========================================================
   Section shell
   ========================================================= */
.section {
    padding: 88px 0;
}

.section-head {
    max-width: 56ch;
    margin-bottom: 56px;
}

    .section-head .kicker {
        font-family: var(--font-display);
        font-style: italic;
        color: var(--accent-soft);
        margin-bottom: 10px;
        display: block;
    }

    .section-head h2 {
        font-size: clamp(1.8rem, 3vw, 2.4rem);
        color: var(--text-main);
    }

.section-alt {
    background: var(--bg-raised);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* =========================================================
   Services — styled as a recital programme listing
   ========================================================= */
.programme {
    border-top: 1px solid var(--line);
}

.programme-row {
    display: grid;
    grid-template-columns: 88px 160px 1fr;
    gap: 32px;
    align-items: start;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.programme-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--accent-soft);
    opacity: 0.85;
    line-height: 1;
}

.programme-body h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--prussian-blue);
    background: var(--muted-teal);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.programme-body p {
    margin-top: 10px;
}

@media (max-width: 720px) {
    .programme-row {
        grid-template-columns: 56px 1fr;
    }

    .photo-frame.frame-service {
        grid-column: 2;
        order: -1;
        margin-bottom: 16px;
    }
}

@media (max-width: 520px) {
    .programme-row {
        grid-template-columns: 1fr;
    }

    .programme-number {
        order: -2;
    }

    .photo-frame.frame-service {
        grid-column: 1;
    }
}

/* =========================================================
   Photo frames (image upload placeholders)
   ========================================================= */
.photo-frame {
    position: relative;
    background: rgba(244, 239, 230, 0.04);
    border: 1px dashed rgba(218, 183, 133, 0.5);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

    .photo-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 12px;
    color: var(--accent-soft);
}

    .photo-placeholder svg {
        width: 28px;
        height: 28px;
        opacity: 0.8;
    }

    .photo-placeholder strong {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-main);
    }

    .photo-placeholder span {
        font-size: 0.72rem;
        color: var(--text-dim);
        word-break: break-all;
    }

.frame-service {
    aspect-ratio: 4 / 3;
}

/* Round "vinyl label" frame used for the About page portraits */
.frame-round {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border-style: solid;
    border-color: var(--muted-teal);
    width: 220px;
    max-width: 100%;
}

/* =========================================================
   About page
   ========================================================= */
.partners {
    display: grid;
    gap: 64px;
}

.partner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}

    .partner:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.partner-role {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-soft);
    margin-top: -6px;
    margin-bottom: 14px;
    display: block;
}

@media (max-width: 640px) {
    .partner {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 820px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.form-field {
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

    label .req {
        color: var(--accent);
    }

input,
textarea {
    width: 100%;
    background: rgba(244, 239, 230, 0.05);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.98rem;
}

    input:focus,
    textarea:focus {
        border-color: var(--accent-soft);
    }

textarea {
    resize: vertical;
    min-height: 140px;
}

.form-note {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: -8px;
    margin-bottom: 24px;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(112, 162, 136, 0.18);
    border: 1px solid var(--muted-teal);
    color: var(--text-main);
}

.alert-error {
    background: rgba(213, 137, 111, 0.15);
    border: 1px solid var(--burnt-peach);
    color: var(--text-main);
}

.direct-contact {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}

    .direct-contact h3 {
        color: var(--text-main);
        font-size: 1.2rem;
    }

.direct-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px; /* You can increase this to 28px if they look too close together */
}

    .direct-contact-item .icon {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        border-radius: 50%;
        background: rgba(218, 183, 133, 0.14);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-soft);
    }

    .direct-contact-item a {
        text-decoration: none;
        color: var(--text-main);
        font-weight: 500;
    }

        .direct-contact-item a:hover {
            color: var(--accent-soft);
        }

    .direct-contact-item .label {
        font-size: 0.78rem;
        color: var(--text-dim);
        display: block;
    }

/* =========================================================
   Offers / pricing page
   ========================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

    .pricing-card:hover {
        border-color: rgba(218, 183, 133, 0.45);
        transform: translateY(-2px);
    }

/* Featured card gets a muted-teal accent, matching the screenshot */
.pricing-card-featured {
    border-color: var(--muted-teal);
    box-shadow: 0 0 0 1px var(--muted-teal) inset;
}

.pricing-card-head h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0 0 12px;
}

.pricing-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--accent-soft);
    background: rgba(218, 183, 133, 0.14);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.pricing-badge-accent {
    color: var(--prussian-blue);
    background: var(--muted-teal);
}

.pricing-intro {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin: 0 0 24px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    border-top: 1px solid var(--line);
}

.pricing-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.pricing-label {
    font-size: 0.98rem;
    color: var(--text-main);
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-main);
    white-space: nowrap;
}

    .pricing-price small {
        font-family: var(--font-body);
        font-size: 0.78rem;
        color: var(--text-dim);
        margin-left: 4px;
    }

.pricing-cta {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 520px) {
    .pricing-card {
        padding: 26px 22px;
    }

    .pricing-price {
        font-size: 1.3rem;
    }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
}

    .site-footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-footer p {
        margin: 0;
        font-size: 0.85rem;
        color: var(--text-dim);
    }

/* =========================================================
   Service cards (home page)
   ========================================================= */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

    .service-card:hover {
        border-color: rgba(218, 183, 133, 0.45);
        transform: translateY(-2px);
    }

    .service-card .photo-frame {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

.service-card-body {
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .service-card-body h3 {
        font-size: 1.25rem;
        color: var(--text-main);
        margin: 0 0 10px;
        display: flex;
        align-items: baseline;
        gap: 10px;
        flex-wrap: wrap;
    }

    .service-card-body p {
        font-size: 0.95rem;
        color: var(--text-dim);
        margin: 0 0 16px;
    }

.service-card-link {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-soft);
    font-size: 0.95rem;
    margin-top: auto;
}

/* =========================================================
   Services overview list (unterricht.html)
   ========================================================= */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-list-item {
    display: grid;
    grid-template-columns: 64px 200px 1fr;
    gap: 28px;
    align-items: center;
    text-decoration: none;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    transition: background 0.15s ease;
}

    .service-list-item:last-child {
        border-bottom: 1px solid var(--line);
    }

    .service-list-item:hover {
        background: rgba(244, 239, 230, 0.02);
    }

.service-list-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-soft);
    opacity: 0.85;
    line-height: 1;
}

.service-list-body h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0 0 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.service-list-body p {
    margin: 0 0 12px;
}

@media (max-width: 720px) {
    .service-list-item {
        grid-template-columns: 48px 1fr;
        gap: 20px;
    }

        .service-list-item .photo-frame {
            grid-column: 2;
            max-width: 260px;
        }

    .service-list-body {
        grid-column: 2;
    }
}

/* =========================================================
   Service page hero
   ========================================================= */
.service-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.service-hero-body {
    min-width: 0;
}

.service-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.service-hero .kicker {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-soft);
    font-size: 1rem;
    display: block;
    margin-bottom: 14px;
}

.service-hero h1 {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    color: var(--text-main);
    margin: 0 0 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.service-hero-intro {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 22px;
    max-width: 55ch;
}

.service-hero-body p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin: 0 0 16px;
    max-width: 62ch;
}

.service-hero .hero-actions {
    margin-top: 28px;
}

.service-bullets {
    margin: 0 0 20px;
    padding-left: 1.2em;
    color: var(--text-dim);
    line-height: 1.7;
}

.service-price-note {
    font-size: 0.95rem;
    color: var(--text-dim);
}

    .service-price-note a {
        color: var(--accent-soft);
    }

.frame-service-large {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
}

@media (max-width: 860px) {
    .service-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-hero-image {
        max-width: 360px;
        margin: 0 auto;
    }

    .frame-service-large {
        aspect-ratio: 4 / 3;
        max-width: 100%;
    }
}

/* =========================================================
   Language switcher (header & mobile menu)
   ========================================================= */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 3px;
    margin-left: 16px; /* Space from nav links on desktop */
    flex-shrink: 0;
}

    .lang-switch a,
    .lang-switch .lang-current {
        text-decoration: none;
        padding: 4px 9px;
        border-radius: 4px;
        line-height: 1;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .lang-switch a {
        color: var(--text-dim);
    }

        .lang-switch a:hover {
            color: var(--text-main);
            background: rgba(244, 239, 230, 0.06);
        }

    .lang-switch .lang-current {
        color: var(--prussian-blue);
        background: var(--accent-soft);
        font-weight: 600;
    }

/* Mobile menu styling */
@media (max-width: 720px) {
    .lang-switch {
        position: static; /* Override the old absolute positioning */
        margin-left: 0;
        margin-top: 20px; /* Push it below the nav links */
        margin-bottom: 10px;
        width: max-content; /* Only as wide as the DE | EN buttons */
    }
}

/* =========================================================
   Lightbox (Expandable Images on Aktuelles page)
   ========================================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 29, 68, 0.95); /* Prussian blue overlay */
    z-index: 99999; /* Ensures it sits on top of the header/nav */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}

    .lightbox-overlay img {
        max-width: 90vw;
        max-height: 90vh;
        object-fit: contain;
        border-radius: var(--radius);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
        cursor: default;
    }

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-family: var(--font-body);
}

    .lightbox-close:hover {
        opacity: 1;
    }
/* =========================================================
   Activity Location Box (Aktuelles page)
   ========================================================= */
.activity-location {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(244, 239, 230, 0.04);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent-soft); /* Highlight on the left */
    padding: 12px 20px 12px 16px;
    border-radius: var(--radius);
    margin-top: 8px;
    margin-bottom: 8px;
}

    .activity-location svg {
        color: var(--accent-soft);
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .activity-location strong {
        color: var(--text-main);
        font-weight: 500;
        font-size: 1.05rem;
    }

/* =========================================================
   Blog (list + single post)
   ========================================================= */
.post-container {
    max-width: 760px;
}

.back-link {
    color: var(--accent-soft);
    text-decoration: none;
    font-size: 0.92rem;
}

.back-link:hover {
    text-decoration: underline;
}

.post-meta {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: -8px;
}

.blog-card-date {
    font-size: 0.85rem;
    color: var(--accent-soft);
}

.post-image {
    margin: 8px 0 32px;
}

.photo-frame.frame-service-large {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 10;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-content {
    color: var(--text-dim);
    line-height: 1.75;
    font-size: 1.02rem;
}

.post-content p {
    margin: 0 0 16px;
}

.post-content ul {
    margin: 0 0 16px;
    padding-left: 1.3em;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text-main);
    margin: 30px 0 12px;
}

.post-content a {
    color: var(--accent-soft);
}

.post-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.post-content code {
    background: var(--bg-raised);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.share-row {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

.share-row .share-label {
    color: var(--text-dim);
    margin-right: 10px;
}

.share-row a {
    color: var(--accent-soft);
    margin-right: 14px;
    text-decoration: none;
}

.share-row a:hover {
    text-decoration: underline;
}