* {
    box-sizing: border-box;
}

/* =====================================
   BASISLAYOUT & TYPOGRAFIE
===================================== */
body {
    background-color: #edf7f2;
    color: #1f2f1e;
    font-family: "Helvetica Neue", sans-serif;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
	overflow-x: hidden;
}

main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1, h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 2.5rem;
}

/* =====================================
   HEADER & NAVIGATION
===================================== */
header {
    background-color: #c6cfc4;
    padding: 1rem 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
}

.logo {
    height: 60px;
    width: auto;
    display: block;
    border: none;
    background: none;
    box-shadow: none;
    max-width: 100%;
}

/* Menülinks */
.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: #1f2f1e;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
}

.nav-list a.active {
    font-weight: bold;
    font-style: italic;
    font-size: 1.1rem;
}

/* Hamburger Button */
.menu-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1f2f1e;
    display: none;
	margin-left: auto;
    order: 2; /* sorgt dafür, dass das Menü rechts vom Logo steht */
}

/* Mobile Menü */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #edf7f2;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list li {
        padding: 0.5rem 0;
        text-align: center;
    }
}

/* =====================================
   TEXT-/BILDKOMBIS
===================================== */
/* =====================================
   TEXT-/BILDKOMBIS (z. B. Über mich)
===================================== */
.text-image-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-direction: row;
    flex-wrap: wrap;
}

.text-image-section.reverse {
    flex-direction: row-reverse;
}

.text-image-section .textblock,
.text-image-section .imageblock {
    flex: 1 1 48%;
}

.text-image-section.fix-mobile .textblock,
.text-image-section.fix-mobile .imageblock {
    flex: 1 1 48%;
    max-width: 48%;
}

@media (max-width: 768px) {
    .text-image-section.fix-mobile .textblock,
    .text-image-section.fix-mobile .imageblock {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.imageblock.center-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.imageblock.center-image img {
    max-width: 100%;
    height: auto;
}


.smaller-img {
    max-width: 75%;
    height: auto;
    display: block;
    margin: 0 auto;
}


@media (max-width: 768px) {
    .text-image-section,
    .text-image-section.reverse {
        flex-direction: column;
    }

    .text-image-section .textblock,
    .text-image-section .imageblock {
        flex: 1 1 100%;
    }
}


/* =====================================
   BILDER
===================================== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.logo-image {
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
    border: none;
    box-shadow: none;
    background: none;
}


/* =====================================
   GALERIEN & IMPRESSIONEN
===================================== */
.impressions-grid,
.gallery-row.large,
.gallery-row.small {
    display: grid;
    gap: 1rem;
    margin: 3rem 0;
}

.impressions-grid,
.gallery-row.large,
.gallery-row.small {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .impressions-grid,
    .gallery-row.large {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-row.small {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .impressions-grid,
    .gallery-row.large,
    .gallery-row.small {
        grid-template-columns: 1fr;
    }
}

.gallery-row.large img.wide {
    grid-column: span 2;
    aspect-ratio: auto;
}

.gallery-row.large img,
.gallery-row.small img,
.impressions-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.2s ease;
}

.gallery-row.large img:hover,
.gallery-row.small img:hover,
.impressions-grid img:hover {
    transform: scale(1.03);
}

.gallery-row.large img.wide {
    grid-column: span 2;
    aspect-ratio: auto;
}

@media (max-width: 768px) {
    .gallery-row.large img.wide {
        grid-column: span 1 !important;
    }
}

/* =====================================
   BUTTONS
===================================== */
.center-btn {
    text-align: center;
    margin-top: 2rem;
}

.button, .wp-block-button__link {
    display: inline-block;
    background-color: #2d7a46;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover, .wp-block-button__link:hover {
    background-color: #1d5c33;
}

/* =====================================
   PARALLAX
===================================== */
.parallax-section {
    height: 60vh;
    margin: 4rem 0;
    background-color: #dcefe5;
    position: relative;
    overflow: hidden;
}

.parallax-image {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .parallax-image {
        background-attachment: scroll;
    }
}

/* =====================================
   FOOTER
===================================== */
footer {
    background-color: #c6cfc4;
    color: #1f2f1e;
    padding: 2rem 1rem;
    margin-top: 4rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-column {
    flex: 1 1 30%;
    min-width: 250px;
}

footer img {
    max-width: 150px;
    border: none;
    background: none;
    box-shadow: none;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
}

footer ul li svg {
    fill: #1f2f1e;
    transition: fill 0.3s ease;
}

footer ul li a:hover svg {
    fill: #2d7a46;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.social-icons li {
    display: inline-block;
    margin-right: 10px;
}

.social-icons a {
    color: inherit;
    text-decoration: none;
}


.footer-contact ul {
  margin-bottom: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.3rem;
  margin-bottom: 0;
  line-height: 1.2;
}

.footer-links a {
  color: #1f2f1e;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #2d7a46;
}

.footer-links span {
  padding: 0 0.3rem;
  color: #1f2f1e;
}





@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        flex: 1 1 100%;
    }

    footer ul {
        justify-content: center;
    }
}

/* =====================================
   DANKESBLOCK / SIGNATUR
===================================== */
.thanks {
    background-color: #dbe8d8;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
    margin-top: 2rem;
}

.signature {
    display: block;
    margin: 2rem auto 0;
    max-width: 350px;
    height: auto;
    border: none;
    box-shadow: none;
    background: none;
}

/* =====================================
   TABELLEN (Backkurse)
===================================== */
.kurs-tabelle table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.kurs-tabelle th,
.kurs-tabelle td {
    padding: 1rem;
    border: 1px solid #ddd;
    vertical-align: top;
}

.kurs-tabelle th {
    background-color: #dcefe5;
    text-align: left;
}

.kurs-tabelle .info,
.kurs-tabelle .warnung {
    text-align: center;
    margin-top: 1rem;
}

.kurs-tabelle .warnung {
    font-weight: bold;
    color: #b03e3e;
}

/* =====================================
   HILFSKLASSEN
===================================== */
.green-bg {
    background-color: #f0f8f2;
}


/* =====================================
   Formular hintergrund
===================================== */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form select,
form textarea {
    background-color: #f5f8f6 !important;
    border: 1px solid #ccc !important;
    border-radius: 0.5rem !important;
    padding: 0.6rem 1rem !important;
    color: #1f2f1e !important;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    font-family: "Helvetica Neue", sans-serif;
}

form textarea {
    resize: vertical;
}

/* Fokus-Stil */
form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #2d7a46 !important;
    box-shadow: 0 0 6px rgba(45, 122, 70, 0.2) !important;
}

/* Button-Stil */
form button[type="submit"],
form .btn-success {
    background-color: #2d7a46 !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover,
form .btn-success:hover {
    background-color: #1d5c33 !important;
}

//Back to top
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: auto;
  pointer-events: auto;
}



.back-to-top a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #1f2f1e;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.back-to-top a:hover {
  background-color: #3b4b3a;
}

@media (min-width: 769px) {
  .back-to-top {
    display: none !important;
  }
}

/* =====================================
   System message
===================================== */
.system-message {
    background-color: #fff3cd; /* hellgelb */
    color: #856404;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ffeeba;
    font-size: 1.1rem;
    overflow: hidden;
    position: relative;
}

.system-message.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

