/* Lora – SIL Open Font License (OFL), frei für private und kommerzielle Nutzung */
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/lora-v26-latin-regular.woff2") format("woff2");
}
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/lora-v26-latin-500.woff2") format("woff2");
}
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/lora-v26-latin-600.woff2") format("woff2");
}
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/lora-v26-latin-700.woff2") format("woff2");
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/lora-v26-latin-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/lora-v26-latin-500italic.woff2") format("woff2");
}

/* Playfair Display (OFL) – Option A Überschriften */
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/playfair-display-v30-latin-regular.woff2") format("woff2");
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/playfair-display-v30-latin-500.woff2") format("woff2");
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/playfair-display-v30-latin-600.woff2") format("woff2");
}
@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/playfair-display-v30-latin-700.woff2") format("woff2");
}

/* Inter (OFL) – Option A Text, Option C alles */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/inter-v18-latin-regular.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/inter-v18-latin-500.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/inter-v18-latin-600.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/inter-v18-latin-700.woff2") format("woff2");
}

/* Cormorant (OFL) – Option B Überschriften */
@font-face {
    font-family: "Cormorant";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/cormorant-v21-latin-regular.woff2") format("woff2");
}
@font-face {
    font-family: "Cormorant";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/cormorant-v21-latin-500.woff2") format("woff2");
}
@font-face {
    font-family: "Cormorant";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/cormorant-v21-latin-600.woff2") format("woff2");
}
@font-face {
    font-family: "Cormorant";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/cormorant-v21-latin-700.woff2") format("woff2");
}

/* Source Sans 3 (OFL) – Option B Text */
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/source-sans-3-v15-latin-regular.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/source-sans-3-v15-latin-600.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/source-sans-3-v15-latin-700.woff2") format("woff2");
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    line-height: 1.7;
    color: #2c3e2d;
    margin: 0;
    padding: 0;
    background-color: #f5f5e8;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Schrift-Optionen: data-fonts am <body> setzen (a, b, c oder weglassen = Lora) */

/* Option A: ruhig & modern – Playfair Display (Überschriften) + Inter (Text) */
body[data-fonts="a"] {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body[data-fonts="a"] h1,
body[data-fonts="a"] h2,
body[data-fonts="a"] h3,
body[data-fonts="a"] .hero-site-name,
body[data-fonts="a"] header h1 {
    font-family: "Playfair Display", Georgia, serif;
}

/* Option B: natürlich & warm – Cormorant (Überschriften) + Source Sans 3 (Text) */
body[data-fonts="b"] {
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body[data-fonts="b"] h1,
body[data-fonts="b"] h2,
body[data-fonts="b"] h3,
body[data-fonts="b"] .hero-site-name,
body[data-fonts="b"] header h1 {
    font-family: "Cormorant", Georgia, serif;
}

/* Option C: sehr klar & ruhig – überall Inter */
body[data-fonts="c"] {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body[data-fonts="c"] h1,
body[data-fonts="c"] h2,
body[data-fonts="c"] h3,
body[data-fonts="c"] .hero-site-name,
body[data-fonts="c"] header h1 {
    font-family: "Inter", sans-serif;
}

/* NAVIGATION */
.main-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #faf8f3;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.1);
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d5a27;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu a {
    color: #2c3e2d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nav-menu a:hover {
    color: #2d5a27;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2d5a27;
    transition: all 0.3s;
    border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 60px;
        flex-direction: column;
        background: #faf8f3;
        width: 100%;
        box-shadow: 0 4px 8px rgba(45, 90, 39, 0.1);
        padding: 1.5rem;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-menu-open {
        transform: translateX(0);
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-toggle-open span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle-open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}
header {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    color: white;
    margin-bottom: 0;
    overflow: visible;
    /* full-width hero */
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    /* Hero-Texte scrollen normal über das fixe Bild */
    z-index: 1;
    box-sizing: border-box;
}

.hero-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    filter: brightness(0.6);
    z-index: -1;
    pointer-events: none;
    /* Verhindere Layout-Shifts beim Laden */
    will-change: auto;
    transform: translateZ(0);
}

header > * {
    position: relative;
    z-index: 1;
}

/* Content scrollt über das fixe Hero-Bild */
main {
    position: relative;
    z-index: 1;
    background-color: #f5f5e8;
    margin-top: 0;
    padding: 2rem;
    padding-top: 3rem;
    padding-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
}

/* Zentriere den Inhalt innerhalb der Sections */
section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-site-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #f5f5e8;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.95;
}

header h1 {
    margin: 0 0 0.5rem 0;
    color: #f5f5e8 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 2.5rem;
    /* Verhindere Layout-Shifts */
    min-height: 1.2em;
    line-height: 1.2;
}

header p {
    margin: 0 0 1rem 0;
    color: #f5f5e8 !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-plant-label {
    position: absolute;
    right: 1.5rem;
    bottom: 2rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    background: rgba(0, 0, 0, 0.32);
    color: #f5f5f5;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(245, 245, 245, 0.4);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-plant-label-visible {
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    background: #f5f5f5;
    color: #2d5a27;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}

.hero-button:hover {
    background: #e2e2e2;
}

h1, h2, h3 {
    margin: 0;
    color: #2c3e2d;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.cta {
    display: inline-block;
    background: #2d5a27;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

/* ABOUT-Bereich */
#about {
    margin-top: 2rem;
}

#about h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.about-content {
    display: flex;
    gap: 2.5rem;
    align-items: start;
    flex-wrap: wrap;
}

.about-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    margin-top: 0;
}

.about-portrait {
    max-width: 350px;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    object-position: top;
}

.about-text {
    flex: 1 1 350px;
    margin-top: 0;
    padding-top: 0;
}

.about-text p:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1.2rem;
    margin-top: 0;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.photo-credit {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

.photo-credit a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.photo-credit a:hover {
    color: #666;
    text-decoration: underline;
}

/* Hide disabled sections */
#season,
#gallery {
    display: none;
}

/* CONTACT */
#contact {
    margin-top: 3rem;
    padding: 2rem 0;
}

.contact-content {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-block;
    background: #2d5a27;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.contact-button:hover {
    background: #1a3d1a;
}

.contact-text {
    flex: 1 1 400px;
}

.contact-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: left;
}

.contact-text p:last-child {
    margin-bottom: 0;
}

/* OFFERS */
#offers {
    margin-top: 2rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.offer-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.15);
}

.offer-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2d5a27;
}

.offer-description {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.offer-meta {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #5a6b5c;
}

.offer-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(45, 90, 39, 0.1);
    font-size: 0.9rem;
    font-style: italic;
    color: #5a6b5c;
}

/* CERTIFICATES */
#certificate {
    margin-top: 2rem;
}

.certificate-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.certificate-item {
    width: calc(33% - 1rem);
    min-width: 280px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    text-align: left;
}

.certificate-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.certificate-title {
    font-size: 1rem;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

/* Responsive hero sizing */
@media (min-width: 900px) {
    header {
        min-height: 70vh;
        padding: 3rem 2rem;
    }

    header h1 {
        font-size: 3.2rem;
        line-height: 1.04;
    }

    header p {
        font-size: 1.2rem;
    }
}

@media (max-width: 899px) {
    header {
        min-height: 60vh;
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    header p {
        font-size: 1rem;
    }
    
    /* Auf mobilen Geräten kann background-attachment: fixed problematisch sein */
    .hero-image {
        background-attachment: scroll;
    }
}

/* constrain hero text for large screens */
header h1, header p {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Fade-in Animationen werden per JavaScript gesteuert */

/* Sanfte Hover-Effekte für Bilder */
.about-portrait,
.certificate-image {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-portrait:hover,
.certificate-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(45, 90, 39, 0.15);
}

/* Sanftere Button-Styles */
.contact-button {
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 90, 39, 0.3);
}

/* Mehr Weißraum zwischen Sektionen */
section {
    margin-top: 4rem;
    padding: 2rem 0;
    /* Sections sind standardmäßig sichtbar, um Layout-Shifts zu vermeiden */
    opacity: 1;
    transform: translateY(0);
}

section:first-of-type {
    margin-top: 0;
    padding-top: 1rem;
}

/* Sanfte Bild-Lade-Animation */
img {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Sanfte Übergänge für alle interaktiven Elemente */
a, button {
    transition: all 0.3s ease;
}

/* Sanftere Scroll-to-Top Button */
.scroll-to-top {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(45, 90, 39, 0.3);
}

@media (max-width: 700px) {
    body {
        padding: 0;
    }
    
    main {
        padding: 1rem;
        padding-top: 2rem;
    }
    
    .certificate-item {
        width: 100%;
        min-width: auto;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-button {
        align-self: flex-start;
    }
    
    section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* FOOTER */
footer {
    position: relative;
    z-index: 1;
    background-color: #f5f5e8;
    margin-top: 0;
    padding: 2rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(45, 90, 39, 0.2);
    text-align: center;
}

footer > p {
    margin-bottom: 1rem;
    color: #5a6b5c;
}

.footer-link {
    color: #2d5a27;
    text-decoration: underline;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #1a3d1a;
}

/* IMPRESSUM & DATENSCHUTZ PAGE */
#impressum,
#datenschutz {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.impressum-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
    padding: 1.5rem 0;
}

.impressum-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d5a27;
}

.impressum-content p {
    margin: 0.8rem 0;
}

.impressum-content strong {
    color: #2d5a27;
    font-weight: 600;
}

.impressum-content a {
    color: #2d5a27;
    text-decoration: underline;
}

.impressum-content a:hover {
    color: #1a3d1a;
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #2d5a27;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.scroll-to-top:hover {
    background: #1a3d1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.scroll-to-top-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}
