/* --- VARIABLEN (Farben aus dem Logo) --- */
:root {
    --primary-green: #8dc63f;   /* Das frische Grün */
    --primary-magenta: #9f4a14; /*braun */
    --dark-text: #333333;
    --light-bg: #f4f9f4;        /* Sehr helles Grün als Hintergrund */
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- GRUNDEINSTELLUNGEN --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

/* Smooth scrolling and scroll offset so anchored sections are not hidden
   behind the sticky header. Adjust the values if your header height changes. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* default desktop offset matching header height */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-magenta);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

/* Hilfsklasse für Container (hält den Inhalt mittig) */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex; /* Flexbox! */
    justify-content: space-between;
    align-items: center;
}

/* Ensure logo image and logo text sit next to each other */
.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* spacing between image and text */
}

.logo-img img {
    height: 150px;
    width: auto;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text .highlight {
    color: var(--primary-magenta);
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--primary-green);
}

.btn-nav {
    background-color: var(--primary-magenta);
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
}

.btn-nav:hover {
    background-color: var(--primary-green);
}

/* Active / focus state for navigation links */
nav a.active {
    background-color: var(--primary-green);
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Keep .btn-nav visually consistent when active */
nav a.btn-nav.active {
    background-color: var(--primary-magenta);
    color: #ffffff !important;
}

/* Keyboard focus for accessibility */
nav a:focus {
    outline: 3px solid rgba(193,39,92,0.18); /* subtle magenta focus */
    outline-offset: 2px;
}

/* --- HERO SECTION --- */
.hero {
    height: 70vh; 
    background-image: url('media/bg_1.jpg');
    background-size: contain;    
    background-repeat: no-repeat;  
    background-position: center;   
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1000px) {
    .hero {
        background-size: cover;
        background-position: bottom;
    }
}

/* Ensure hero image covers the area on small screens too (avoid white bands
   when image aspect ratio doesn't match viewport). Use cover for mobile. */
@media (max-width: 999px) {
    .hero {
        background-size: cover;
        background-position: center bottom;
    }
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.836); 
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 20px;
}

.hero h1 {
    font-size: 2rem;
    color: var(--primary-magenta);
    font-style: italic;
}

.btn-main {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 20px;
}

.btn-main:hover {
    background: var(--primary-magenta);
}

/* remove any box-shadow or focus outline around buttons */
.btn-main, .btn-nav {
    box-shadow: none;
}

.btn-main:focus, .btn-nav:focus {
    outline: none;
}

/* --- ÜBER MICH (Split Layout) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.image-box {
    flex: 1;
}

.portrait {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background-color: #ddd;
    display: block;
    border-radius: 30px;
}

.text-box {
    flex: 1;
}

.quote-box {
    border-left: 4px solid var(--primary-green);
    padding-left: 20px;
    margin: 20px 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 500; 
    color: var(--dark-text);
}

/* --- DARM SECTION --- */
.bg-green {
    background-color: var(--light-bg);
    border-top: 5px solid var(--primary-green);
}

.lead-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* --- ANGEBOT (Grid) --- */
.grid-container {
    display: grid; /* Modernes Grid Layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Container für Kontaktbutton in der Angebots-Section
   Zentriert die Schaltfläche horizontal */
.container-contact {
    display: flex;
    flex-direction: column; /* stack button, label and flags vertically */
    align-items: center;    /* center horizontally */
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 3px solid var(--primary-magenta);
    transition: transform 0.3s;
    position: relative; /* for pseudo-element background image */
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}


.card::before {
    content: "";
    position: absolute;
    top: 18px; /* place it near the top where the h3 sits */
    left: 50%;
    transform: translateX(-50%);
    width: 120px; /* small decorative image that 'fits' the h3 */
    height: 120px;
    background-image: url('media/leaf-small.svg');
    background-size: contain; /* keep the decorative image contained and not cropped */
    background-position: center;
    opacity: 0.56; /* very light / nearly transparent */
    pointer-events: none;
    z-index: 0;
    border-radius: 8px;
}

/* Ensure card contents stay above the decorative image */
.card > * {
    position: relative;
    z-index: 1;
}

/* Variant: feather decorative motif for specific cards like "Körper & Atem" */
.card.feather::before {
    /* reuse the same positioning but use the feather SVG */
    background-image: url('media/feather-small.svg');
    width: 110px;
    height: 110px;
    top: 14px;
    opacity: 0.56; /* keep it faint */
    transform: translateX(-50%) rotate(-8deg);
}

/* --- MOTIVATION --- */
.motivation-banner {
    background-color: var(--primary-magenta);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.motivation-banner h2 {
    color: white;
    font-size: 1.9rem;
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

/* --- ABOUT  (Certificates / Qualifications list) --- */
/*
  Usage (example):
  <ul class="qual-list">
    <li class="qual-item">
      <div class="cert-title">Kursname / Zertifikat</div>
      <div class="cert-meta">Institution · Jahr</div>
    </li>
  </ul>
*/

.qual-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
}

.qual-item {
    background: white;
    border-radius: 12px;
    padding: 16px 16px 16px 48px; /* leave space for the icon */
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
    position: relative;
    overflow: visible;
    border-left: 4px solid var(--primary-green);
}

.qual-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* decorative certificate icon placed to the left */
.qual-item::before {
    content: "🎓";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
}

.cert-title {
    font-weight: 700;
    color: var(--primary-magenta);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.cert-meta {
    font-size: 0.86rem;
    color: #6b6b6b;
    font-style: italic;
}
/* --- FOOTER --- */
footer {
    background-color: #2c3e50; /* Dunkles Grau für Kontrast */
    color: #ecf0f1;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col h4 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
}

/* visually-hidden helper for accessible labels inside flag elements */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.lang-list li {
    /* container for flag image + country code */
    background: var(--light-bg);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px;
    width: 72px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    cursor: default;
    position: relative; /* for sr-only */
    overflow: visible;
}

.lang-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

/* Generic flag helper class */
.flag { display: inline-block; }

/* img inside flag badge - reliable rendering across browsers */
.flag-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.flag-code {
    font-size: 0.75rem;
    color: var(--dark-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Germany: black / red / gold horizontal */
.flag-de { background-image: url("media/flags/de.svg"); }

/* Great Britain (simplified Union Jack approximation) */
.flag-gb { background-image: url("media/flags/gb.svg"); }

/* Spain: red / yellow / red horizontal (simplified) */
.flag-es { background-image: url("media/flags/es.svg"); }

/* France: vertical blue / white / red */
.flag-fr { background-image: url("media/flags/fr.svg"); }

/* Italy: vertical green / white / red */
.flag-it { background-image: url("media/flags/it.svg"); }

/* Romania: vertical blue / yellow / red */
.flag-ro { background-image: url("media/flags/ro.svg"); }

/* Portugal: green (left) and red (right) vertical split, simplified emblem */
.flag-pt { background-image: url("media/flags/pt.svg"); }

.languages {
    margin-top: 12px;
    margin-bottom: 6px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: #bdc3c7;
}

/* --- MOBILE (Responsive) --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    /* Make nav horizontal on small screens to avoid tall header */
    nav ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding: 6px 10px;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar on WebKit browsers for a cleaner look */
    nav ul::-webkit-scrollbar {
        display: none;
    }

    nav a {
        font-size: 0.85rem;
    }

    .btn-nav {
        padding: 6px 12px;
        border-radius: 18px;
    }

    /* Slightly reduce logo image height on small screens */
    .logo-img img {
        height: 56px;
    }

    .split-layout {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .lang-list {
        justify-content: center;
    }

 
 
}

/* Ensure the imprint page footer is visible on short mobile viewports
   by making the page a column flex container where the main content grows.
   This is scoped to the imprint page only (class: .page-impressum). */
.page-impressum {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-impressum main {
    flex: 1 0 auto; /* allow main to grow to push footer to bottom when content is short */
}

  .split-layout {
    align-items: stretch;   /* instead of center */
   column-gap: clamp(24px, 4vw, 80px);
  }

  .split-layout .text-box {
    width: 100%;
  }
}

/* ===== modal popup styles ===== */
.modal-trigger {
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 30px 40px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow-y: auto;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--dark-text);
}

.modal form input,
.modal form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.modal form button {
    width: 100%;
    margin-top: 8px;
}

/* kill default UL indentation */
.qual-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}