/* Praxis Stoppe */

:root {
    --text-gray: #6b6b6b;
    --heading: #3f3f3f;
    --accent: #2b7bb9;
    --accent-dark: #1f5c8c;
    --teal: #8fb4b9;
    --teal-dark: #6f989e;
    --cream: #faf8f5;
    --footer-bg: #2c2c2c;
    --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-gray);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    padding: 0.6em 1em;
    z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2 {
    font-weight: 300;
    color: var(--heading);
    letter-spacing: 0.04em;
}

h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    margin: 0 0 0.6em;
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 28px;
}

.section { padding: 90px 0; }

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--cream);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 2.5em;
    height: 64px;
}
.wordmark {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--heading);
    font-weight: 500;
}
.wordmark:hover { color: var(--heading); }
.wordmark-logo {
    height: 44px;
    width: auto;
    display: block;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.8em;
}
.lang-switch { margin-left: auto; }
.site-nav a {
    position: relative;
    color: var(--text-gray);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    padding: 0.3em 0;
    transition: color 0.2s;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1.5px;
    background: var(--accent);
    transition: right 0.25s ease;
}
.site-nav a:hover {
    color: var(--heading);
}
.site-nav a:hover::after {
    right: 0;
}
.lang-switch {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--text-gray);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    padding: 0.4em 1.1em;
    transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Hero */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.55), rgba(143, 180, 185, 0.35)), url('../img/homepage.jpg') center 20% / cover no-repeat;
}
.hero-wrap {
    width: 100%;
}
.hero-inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto 0 0;
    padding: 60px 28px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius);
}
.logo {
    width: 150px;
    height: auto;
    margin-bottom: 28px;
    display: block;
}
.hero .intro {
    font-size: 1.08rem;
    color: var(--heading);
}
.hero .signature {
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--heading);
    margin: 1.6rem 0 0;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Services */
.services { text-align: center; background: #fff; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    max-width: 780px;
    margin: 2.2em auto 0;
    text-align: left;
}
.service-card {
    background: var(--cream);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    padding: 1.3em 1.4em 1.3em 2.4em;
    color: var(--heading);
    font-size: 0.98rem;
    position: relative;
    display: flex;
    align-items: center;
}
.service-card::before {
    content: '';
    position: absolute;
    left: 1.3em;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-dark);
}

/* Quote bands */
.quote-band {
    background: linear-gradient(160deg, var(--teal), var(--teal-dark));
    color: #fff;
    text-align: center;
}
.quote-band blockquote,
.quote-photo-band blockquote {
    max-width: 720px;
    margin: 0 auto;
    font-style: italic;
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1.85;
    position: relative;
}
.quote-band blockquote::before,
.quote-photo-band blockquote::before {
    content: '\201C';
    display: block;
    font-size: 3.5rem;
    font-style: normal;
    line-height: 1;
    opacity: 0.5;
    margin-bottom: 0.1em;
}

/* Qualifications */
.qualifications { text-align: center; background: #fff; }
.qual-timeline {
    max-width: 760px;
    margin: 2.5em auto 0;
    text-align: left;
    position: relative;
    padding-left: 28px;
    border-left: 2px solid rgba(111, 152, 158, 0.35);
}
.qual-item {
    position: relative;
    padding-bottom: 1.8em;
}
.qual-item:last-child { padding-bottom: 0; }
.qual-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0.35em;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--teal-dark);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(111, 152, 158, 0.35);
}
.qual-year {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-dark);
    margin-bottom: 0.25em;
    text-transform: uppercase;
}
.qual-desc { display: block; color: var(--text-gray); }

/* Quote + photo band */
.quote-photo-band {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}
.quote-photo-band .photo-half {
    flex: 1 1 420px;
    min-height: 460px;
}
.quote-photo-band .photo-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 460px;
}
.quote-photo-band .quote-half {
    flex: 1 1 420px;
    background: linear-gradient(160deg, var(--teal), var(--teal-dark));
    color: #fff;
    display: flex;
    align-items: center;
    padding: 70px;
}
.quote-photo-band blockquote { text-align: left; }

/* Gallery */
.gallery { padding: 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.gallery-thumb {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    cursor: pointer;
    aspect-ratio: 1;
    overflow: hidden;
    display: block;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.gallery-thumb:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.92);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
    max-width: 88vw;
    max-height: 86vh;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}
.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Contact */
.contact {
    background: linear-gradient(180deg, #fff, var(--cream));
}
.contact h2 { color: var(--heading); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4em;
    align-items: start;
}
.contact-info .address-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--teal-dark);
    font-weight: 700;
    margin: 0 0 0.4em;
}
.contact-info .address-line {
    color: var(--heading);
    margin: 0.15em 0;
    font-size: 1.05rem;
}
.portrait-frame {
    margin-top: 2.2em;
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 340px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.portrait-frame .portrait {
    width: 100%;
    display: block;
}
.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.4em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.contact-form-wrap .field { margin-bottom: 1.2em; }
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.contact-form-wrap input,
.contact-form-wrap textarea {
    width: 100%;
    padding: 0.85em 1em;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--heading);
    background: #fdfdfd;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43, 123, 185, 0.15);
}
.contact-form-wrap .field-error {
    display: none;
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.35em;
}
.contact-form-wrap .field.has-error .field-error { display: block; }
.contact-form-wrap .field.has-error input,
.contact-form-wrap .field.has-error textarea { border-color: #c0392b; }
.contact-form-wrap button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.95em 2.6em;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.contact-form-wrap button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.contact-form-wrap button:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { margin-top: 1em; font-weight: 600; }
.form-status.success { color: #2e8b57; }
.form-status.error { color: #c0392b; }

/* Map */
.map { padding: 0; line-height: 0; }
.map iframe { display: block; filter: grayscale(15%); }

/* Footer / Impressum accordion */
.site-footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 0;
}
.impressum-toggle {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    padding: 1.4em 0;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.toggle-icon {
    font-size: 1.3rem;
    transition: transform 0.2s;
}
.impressum-toggle.is-open .toggle-icon { transform: rotate(45deg); }
.impressum-body {
    padding: 0 0 2.8em;
    color: #aaa;
    font-size: 0.92rem;
}
.impressum-body h4 { color: #fff; margin-top: 0; font-weight: 400; }
.impressum-body a { color: #8fc4e8; }
.impressum-body hr { border-color: #4a4a4a; margin: 1.6em 0; }
.credit {
    margin-top: 2em;
    font-size: 0.72rem;
    color: #999;
}
.credit a { color: #999; }
.impressum-body .credit { color: #777; }
.impressum-body .credit a { color: #999; }
.back-to-top {
    display: block;
    text-align: center;
    padding: 1.2em 0;
    color: #888;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.back-to-top:hover { color: #ccc; }

/* Standalone Impressum pages */
.standalone-page { padding: 90px 0; background: #fff; min-height: 60vh; }
.back-link { display: inline-block; margin-bottom: 2em; }

@media (max-width: 780px) {
    .hero { min-height: 100vh; }
    .hero-inner { padding: 40px 24px; }
    .qual-timeline { padding-left: 22px; }
    .contact-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .quote-photo-band .quote-half { padding: 44px 26px; }
    .contact-form-wrap { padding: 1.6em; }
    .site-nav { display: none; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; }
}
