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

/* Custom Properties */
:root {
    --color-primary: #E0FF4F;
    --color-primary-hover: #D2FF0A;
    --color-accent: #8C9C69;
    --color-accent-light: #B7E000;
    --color-text: #000;
    --color-text-light: #333;
    --color-bg: #fff;
    --color-bg-card: #F5F5F5;
    --color-dark: #000;
    --color-border: #ECEFE7;
    --shadow-sm: 5px 5px 30px rgba(82, 82, 82, 0.1);
    --shadow-md: 5px 5px 50px rgba(82, 82, 82, 0.2);
    --shadow-lg: 5px 5px 90px rgba(82, 82, 82, 0.4);
    --max-width: 1200px;
    --font-family: 'Montserrat', sans-serif;
    --page-padding: clamp(28px, 6vw, 40px);
}

@font-face {
  font-family: Montserrat;
  src: url('font/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

h1 {
    font-family: var(--font-family);
    font-weight: bold;
    letter-spacing: 8px;
    font-size: 35px;
}

h2 {
    font-family: var(--font-family);
    letter-spacing: 2px;
    font-size: 18px;
}

h3 {
    font-family: var(--font-family);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 50px;
}

@media (max-width: 1200px) {
    h3 { font-size: 40px; }
}

@media (max-width: 510px) {
    h1 {
        font-size: 24px;
        letter-spacing: 5px;
    }
    h3 { font-size: 30px; }
}

h4 {
    font-family: var(--font-family);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 30px;
}

h5 {
    font-family: var(--font-family);
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 25px;
    padding-top: 3px;
}

body {
    font-family: var(--font-family);
    overflow-x: hidden;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header_content {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 5px var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin: 20px 0 5px;
    font-size: 25px;
}

.logo a,
.logo a:active,
.logo a:visited {
    color: var(--color-text);
    text-decoration: none;
}

nav {
    margin: 20px 0 5px;
    font-size: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent);
}

.burger {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.burger .line {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Burger menu for tablet and mobile */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px 0;
        margin: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .burger {
        display: block;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav ul li a {
        font-size: 18px;
        padding: 8px 0;
        display: block;
    }
}




/* Hero Section */
.container1 {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    background: var(--color-dark);
    background-image: url(img/img_o3.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.content1 {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    padding: 0 var(--page-padding);
}

.green-bg {
    position: absolute;
    background: var(--color-primary);
    color: var(--color-text);
    margin-bottom: 5px;
    padding: 2px 10px;
    text-transform: uppercase;
    top: 12vh;
    left: var(--page-padding);
    right: var(--page-padding);
}

.green-text {
    background-color: var(--color-primary);
    padding: 5px 25px;
    line-height: 33px;
    color: var(--color-text);
    border-radius: 10px;
}


/* Container Leistungen */
.container2 {
    padding-top: 20px;
    overflow: hidden;
}

.content2-width {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

.content2 {
    padding-top: 50px;
    padding-left: 10px;
    padding-bottom: 20px;
    max-width: 800px;
}

.content2_subtitle {
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.content2_vorteil-width {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .content2_vorteil-width {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .content2_vorteil-width {
        grid-template-columns: 1fr;
    }
}

.content2_vorteil1 {
    background: var(--color-bg-card);
    color: var(--color-text);
    border-radius: 10px;
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.5s ease, transform 0.3s ease;
}

.content2_vorteil1:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-title {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.card-text {
    line-height: 1.6;
}

/* Container Akkordeon */
.container3 {
    padding-top: 100px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .container3 {
        padding-top: 60px;
    }
}

.content3-width {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--page-padding);
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.content3_headline {
    flex: 1;
    min-width: 280px;
}

.content3_akkordeon {
    flex: 1;
    min-width: 300px;
}

.content3_akkordeon a {
    color: beige;
}

@media (max-width: 768px) {
    .content3-width {
        flex-direction: column;
        gap: 20px;
    }
}

/* Akkordeon */
.accordion {
    background-color: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    padding: 12px 8px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: color 0.4s ease;
}

.accordion.active,
.accordion:hover {
    background-color: var(--color-bg);
    color: var(--color-accent-light);
}

.panel {
    padding: 0 20px;
    background-color: var(--color-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.panel p {
    padding-bottom: 16px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .panel {
        padding: 0 10px;
    }
}

/* Container About */
.container4 {
    padding-top: 100px;
}

@media (max-width: 768px) {
    .container4 {
        padding-top: 60px;
    }
}

.content4-width {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.content4_about {
    width: 100%;
    height: 450px;
    background: var(--color-dark);
    background-image: url(img/about.JPG);
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .content4_about {
        height: 300px;
        background-size: cover;
    }
}

.content4 {
    padding: 20px var(--page-padding) 0;
    max-width: 700px;
}

.content4 h4 {
    margin-bottom: 12px;
}

.content4 p {
    line-height: 1.7;
}

/* Container Mail */
.container5 {
    display: flex;
    justify-content: center;
    padding: clamp(80px, 15vw, 180px) var(--page-padding);
}

.content5-width {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.content5-hl {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: clamp(24px, 5vw, 40px);
}

.content5-mail {
    display: flex;
    padding-top: 10px;
    justify-content: center;
    text-align: center;
    font-size: clamp(28px, 6vw, 60px);
    color: var(--color-accent);
}

.green-mail {
    background-color: var(--color-primary);
    padding: 3px 25px;
    color: var(--color-text);
    border-radius: 10px;
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.green-mail:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-lg);
}

#green-mail-link {
    text-decoration: none;
}

/* Container Footer */
.footer {
    background: var(--color-dark);
    color: #fff;
}

.footer a,
.footer a:visited {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.7;
}

.footer_content {
    padding: 50px var(--page-padding) 30px;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.footer_text {
    max-width: 600px;
}

.footer_links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Text pages (Impressum, Datenschutz) */
.text {
    background-position: center;
    background-repeat: no-repeat;
}

.text a {
    color: var(--color-text);
}

.text-width {
    max-width: var(--max-width);
    width: 100%;
    padding: 50px var(--page-padding);
    margin: 0 auto;
    min-height: 80vh;
}

/* Animationen */
.fade-in-right {
  animation: fadeInRight 1s ease forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-left {
  animation: fadeInLeft 1s ease forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

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

.fade-in-down {
  animation: fadeInDown 1s ease forwards;
}

.fade-in-down2 {
  animation: fadeInDown 1.5s ease forwards;
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .fade-in-right,
  .fade-in-left,
  .fade-in-up,
  .fade-in-down,
  .fade-in-down2 {
    animation: none;
    opacity: 1;
    transform: none;
  }
}



