:root {
    /* Earthy / nature palette (fits the hero image) */
    --primary: #2F3A33;          /* deep evergreen */
    --primary-light: #6E7C72;    /* soft sage grey */
    --primary-dark: #1F2722;     /* darker evergreen */

    --accent: #C9AE7A;           /* warm sand/gold */
    --accent-soft: #F6F1E7;      /* warm off-white */

    --text-dark: #121714;
    --text-body: #28312B;
    --text-light: #5C6A61;

    --bg-white: #FCFBF8;
    --bg-light: #F6F3EC;
    --bg-gray: #EEE8DD;

    --border: #E2DDD1;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.10);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.12);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.28);

    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: rgba(201, 174, 122, 0.35);
}

/* Utility: keep HTML hidden attribute working */
[hidden] {
    display: none !important;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(252, 251, 248, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-container {

    margin: 0 auto;
    padding: 1.4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo img {
    height: 40px;
    width: auto;
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.mobile-brand {
    display: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.special-link {
    font-style: bold;
}

.cta-link {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
}

.cta-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-link::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.9rem;
    position: absolute;
    right: 2rem;
    top: 42%;
    transform: translateY(-50%);
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 2000;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s ease;
}

.mobile-menu.active,
.mobile-menu[aria-hidden="false"] {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-dark);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 5rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-badge img {
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: white;   
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.3s backwards;
    color: white;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    animation: fadeInUp 1s ease 0.4s backwards;
    color: white;
}

.hero-announcement {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(55, 58, 70, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.badge {
    background: var(--accent);
    color: var(--text-dark);
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.hero-location {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-cta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary);
    padding: 0.95rem 2.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.10);
    animation: fadeInUp 1s ease 0.7s backwards;
}

.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    color: var(--primary-dark);
}

.services {
    padding: 8rem 0;
    background: var(--bg-white);
}

.section-intro {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: start;
}

.section-title {
    font-size: 3rem;
    line-height: 1.1;
    position: sticky;
    top: 120px;
}

.section-intro-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--borderborder);
}

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

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-content p {
    color: var(--text-body);
    line-height: 1.7;
}

.additional-services {
    padding: 8rem 0;
    background: var(--bg-light);
}

.additional-services .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.additional-services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 5rem;
}

.service-card-horizontal {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card-horizontal:hover {
    box-shadow: var(--shadow-xl);
    transform: translateX(10px);
}

.service-card-horizontal:nth-child(even) {
    grid-template-columns: 1fr 400px;
}

.service-card-horizontal:nth-child(even):hover {
    transform: translateX(-10px);
}

.service-card-horizontal:nth-child(even) .service-image {
    order: 2;
}

.service-card-horizontal .service-image {
    height: 100%;
    min-height: 300px;
}

.service-card-horizontal .service-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-box {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-white) 100%);
    border-radius: var(--radius-xl);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    /* font-style: italic; */
    color: var(--primary);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-highlight {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    box-shadow: var(--shadow);
}

.feature-highlight h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-small-img {
    width: 200px;
    height: auto;
    margin-top: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about {
    padding: 8rem 0;
    background: var(--bg-white);
}

.about-intro {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 5rem;
    margin-bottom: 6rem;
    align-items: center;
}

.about-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.about-image-main::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--accent);
    border-radius: var(--radius-xl);
    transform: translate(20px, 20px);
    z-index: -1;
}

.about-image-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-content .section-title {
    font-size: 3rem;
    position: static;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
}

.about-logo {
    width: 150px;
    margin-top: 2rem;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    position: relative;
}

.timeline-marker {
    text-align: right;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    padding-right: 2rem;
    position: relative;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-content li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.training-list {
    margin-top: 1rem;
}

/* Backwards compatible: if older JS adds .active, still show */
.training-list.active {
    display: block;
}

.training-list ul {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.about-image-secondary {
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-secondary img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.contact {
    padding: 8rem 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-info .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    color: white;
}

.contact-card svg {
    flex-shrink: 0;
    color: var(--accent);
}

.contact-card:hover svg {
    color: white;
}

.contact-card span {
    font-weight: 500;
}

.contact-notes {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.contact-notes p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-notes .highlight {
    background: var(--accent-soft);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    line-height: 2;
    font-weight: 500;
}

.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 600px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

.map-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(180deg, #f4efe5 0%, #e9dfcc 100%);
}

.map-placeholder p {
    color: var(--text-dark);
    font-weight: 500;
}

.map-accept-btn {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.map-accept-btn:hover,
.cookie-banner button:hover {
    opacity: 0.92;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 1rem));
    bottom: 1rem;
    z-index: 1200;
    background: rgba(252, 251, 248, 0.55);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
}

.cookie-banner button {
    min-width: 132px;
    border-radius: 0.7rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

#cookie-reject {
    background: #e6e8ec;
    color: #384049;
    border: 1px solid #c9ced5;
}

#cookie-accept {
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
}

.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column p {
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

.footer-column a {
    color: var(--accent);
    text-decoration: underline;
}

.footer-column a:hover {
    color: white;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        top: 50%;
        right: 1rem;
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        align-items: center;
        transform: translateY(-50%);
    }

    .mobile-brand {
        display: block;
        position: absolute;
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dark);
        white-space: nowrap;
        max-width: calc(100% - 5.5rem);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-container {
        padding: 0.65rem 1rem;
        min-height: 60px;
    }

    .hero-name {
        font-size: 3rem;
    }

    .section-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        position: static;
        font-size: 2.5rem;
    }

    .service-card-horizontal {
        grid-template-columns: 1fr;
    }

    .service-card-horizontal:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .service-card-horizontal .service-image,
    .service-card-horizontal:nth-child(even) .service-image {
        order: 0;
        height: 300px;
    }

    .feature-box {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-main img {
        height: 400px;
    }

    .timeline-item {
        grid-template-columns: 150px 1fr;
        gap: 2rem;
    }

    .education-timeline::before {
        left: 75px;
    }

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

    .contact-info {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-announcement {
    flex-direction: column;
        text-align: center;
    }

    .hero-content {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5.5rem;
        padding-bottom: 2rem;
    }

    .hero-cta {
        margin-top: auto;
    }

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

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

    .timeline-marker {
        text-align: left;
        padding-right: 0;
    }

    .education-timeline::before {
        display: none;
    }

    .timeline-marker::after {
        display: none;
    }

    .service-card-horizontal {
        gap: 0;
    }

    .service-card-horizontal .service-content {
        padding: 2rem;
    }

    /* Mobile fix: allow long words in timeline bullets to wrap */
    [aria-label="Ausbildung und Qualifikationen"] li > span:last-child {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .cookie-banner {
        left: 0.5rem;
        right: auto;
        transform: none;
        width: calc(100% - 1rem);
        bottom: 0.5rem;
        gap: 0.65rem;
        padding: 0.9rem;
    }

    .cookie-banner p {
        font-size: 0.82rem;
    }

    .cookie-banner-actions {
        gap: 0.6rem;
    }

    .cookie-banner button {
        flex: 1;
        min-width: 0;
    }
}
