/* Basic Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* PT Sans Regular */
@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/PTSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* PT Sans Bold */
@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/PTSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* PT Sans Italic */
@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/PTSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/PTSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* PT Sans Narrow Regular */
@font-face {
    font-family: 'PT Sans Narrow';
    src: url('/fonts/PTSansNarrow-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* PT Sans Narrow Bold */
@font-face {
    font-family: 'PT Sans Narrow';
    src: url('/fonts/PTSansNarrow-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Crimson Text Regular */
@font-face {
    font-family: 'Crimson Text';
    src: url('/fonts/CrimsonText-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Crimson Text Bold */
@font-face {
    font-family: 'Crimson Text';
    src: url('/fonts/CrimsonText-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Crimson Text Italic */
@font-face {
    font-family: 'Crimson Text';
    src: url('/fonts/CrimsonText-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('/fonts/CrimsonText-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}


/* Root Variables */
:root {
    --font-family: 'PT Sans', sans-serif;
    --font-family-alt: 'PT Sans Narrow', sans-serif;
    --font-family-serif: 'Crimson Text', serif;
    --main-color: #2f6d3e;
    --secondary-color: #b5c451;
    --text-color: #3D3D3D;
    --background-color: #fff;
    --font-size-base: 20px;
}

/* Global Styles */
html,body{
    overflow-x:hidden;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

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

h1,h2,h3,h4{
    line-height: 1.2;
    margin-bottom: .5em;
}

h3,h4{
    font-weight:normal;
}

/* Header */
header {
    top: 0;
    right: 0;
    left: 0;
    background: var(--background-color);
    z-index: 3;
    box-shadow: 2px 2px 7px 0px rgba(0, 0, 0, 0.1);
    text-align: left;
}

header .logo img {
    height: 3rem;
}

/* Footer */
footer {
    width: 100vw;
    background-color: var(--secondary-color);
    color: #fff;
    text-align: left; 
}

.header-inner,
.footer-inner{
    width: 100%;
    max-width: 1200px;
    margin:0 auto;
    padding: 1em;
}

.footer-inner a{
    color:#fff;
    text-decoration:none;
}

.footer-inner a:hover,
.footer-inner a:focus{
    color:#fff;
    text-decoration:underline;
}

.spacer {
    height: 60px;
    width: 100%; /* Optional, um sicherzustellen, dass es die gesamte Breite einnimmt */
}


/* Main Content */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em;
    text-align:left;
}

main h1 {
    font-family: var(--font-family);
    font-size: 2.5em;
    color: var(--main-color);
    text-transform: uppercase;
    text-align: right;
}

main h3,
.projekt{
    font-family: var(--font-family-serif);
    font-style: italic;
    font-size: 1.5em;
    color: var(--main-color); 
}

.coordination {
    font-family: var(--font-family-serif);
    font-style: italic;
    font-size: 1.5em;
    color: var(--main-color);
    margin-bottom: 30px;
}

.sh-text{
    display: block;
    border-bottom: 4px dotted var(--secondary-color);
    margin: -1.5em 0 2.5em;
    height: 4px;
}

main h2{
    color: var(--main-color);
}

main ul, main ol{
    margin-left: 1.5em;
}

main p, main ul, main ol{
    margin-bottom: 1.5em;
}

main ul li,
main ol li{
    margin-bottom: 1em;
}

main #intro{
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

main .story{
    display:block;
    margin-bottom: 2em;
}

/* Button Grundstil */
.button {
    background-color: var(--main-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-appearance: none; /* Entfernt das Standard-Button-Styling in WebKit-basierten Browsern */
    -moz-appearance: none; /* Entfernt das Standard-Button-Styling in Firefox */
    appearance: none; /* Entfernt das Standard-Button-Styling in modernen Browsern */
    margin-bottom: 1em;
}

/* Hover- und aktiver Zustand */
.button:hover,
.button:active {
    background-color: var(--secondary-color);
    color: white; /* Beibehaltung der Textfarbe im Hover- und aktiven Zustand */
}

/* Optional: Entfernen von Fokusrändern (outline) bei Fokus */
.button:focus {
    outline: none;
}

/* Masonry Gallery Styles */
.masonry-gallery {
    column-count: 5; /* Standardmäßig 5 Spalten */
    column-gap: 20px;
}

.gallery-item {
    margin-bottom: 20px;
    break-inside: avoid;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Tablet Ansicht */
@media (max-width: 1024px) {
    .masonry-gallery {
        column-count: 3; /* 3 Spalten bei Tablets */
    }
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .masonry-gallery {
        column-count: 2; /* 2 Spalten bei Mobilgeräten */
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}






/* Grundlegendes Akkordeon-Design für mobile und Tablet */
.accordion {
    width: 100%;
    margin-bottom: 3em;
}

.accordion-item {
    border-bottom: 1px solid #fff;
}

.accordion-title {
    background-color: var(--secondary-color);
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    line-height: 1.25;
    letter-spacing: 0.025em;
}

.accordion-title:hover, 
.accordion-title.active {
    background-color: var(--main-color);
    color: white;
}

.content {
    display: none;
    padding: 15px;
    background-color: #f9f9f9;
}

.content.active {
    display: block;
}


/* Desktop-Ansicht mit festen Waben-Positionen */
@media (min-width: 1024px) {
    .accordion {
        position: relative;
        height: calc(100vh - 350px); /* Höhe des gesamten Akkordeons */
        width: 100%; /* Breite des gesamten Akkordeons */
        min-height: 550px;
    }
    .accordion-item {
        position: absolute;
        width: 220px; /* Standardmäßige Breite der Wabe */
        height: 195px; /* Standardmäßige Höhe der Wabe */
        z-index: 1; /* Standard Z-Index für alle Items */
        border-bottom: none !important;
        transition: z-index 0.3s ease; /* Smooth Transition for Z-Index */
    }

    /* Positionierung der accordion-item nach ihrer Reihenfolge */
    .accordion-item:nth-child(1) { top: 0; left: 0; }
    .accordion-item:nth-child(2) { top: 100px; left: 172px; }
    .accordion-item:nth-child(3) { top: 200px; left: 0; }
    .accordion-item:nth-child(4) { top: 0; left: 345px; }
    .accordion-item:nth-child(5) { top: 301px; left: 172px; }
    .accordion-item:nth-child(6) { top: 200px; left: 345px; }

    .accordion-title {
        background-color: transparent !important;
        background-image: url('wabe.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        text-align: center;
        color: white;
        padding: 20px;
        cursor: pointer;
        width: 220px;
        height: 195px;
        z-index: 2;

        /* Vertikale und horizontale Zentrierung */
        display: flex;
        align-items: center;
        justify-content: center;

        /* Transition für Transparenz */
        transition: opacity 0.3s ease;
    }

    .accordion-title.inactive {
        opacity: 0.1; /* Transparenz bei Inaktivität */
    }

    .accordion-title.active {
        background-image: url('wabe-bg.svg');
        background-color: transparent !important;
        opacity: 1; /* Volle Deckkraft bei Aktivität */
    }

    /* Content Boxen absolut relativ zum accordion Container positionieren */
    .content {
        position: absolute;
        top: 0;
        left: calc(100% + 50px); /* 50px von der rechten Seite des accordion */
        width: 600px;
        padding: 20px;
        background-color: #e3f0a1; /* Leichtes Grau als Hintergrundfarbe */
        color: var(--text-color);
        box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 10; /* Höchster Z-Index, wenn aktiv */
        box-sizing: border-box;
    }

    .content.active {
        display: block;
        height: auto; /* Passt sich der Höhe des Inhalts an */
    }
}


/* Video-Container für YouTube-Videos */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 2em;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Kontaktbereich */
.contact-section {
    width: 100vw;
    background-color: var(--background-color);
    box-shadow: -2px -2px 7px 0px rgba(0, 0, 0, 0.1); /* Schatten nach oben */
}

.contact-section .container {
    width:100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 1em;
}

.contact-section h2 {
    font-family: var(--font-family);
    font-size: 2.5em;
    color: var(--main-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}


/* Kontaktspalten */
.contact-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-column {
    width: 48%;
    font-family: var(--font-family);
    font-size: 1em;
    color: var(--main-color);
}

.contact-column a {
    color: var(--main-color);
    text-decoration: none;
}

.contact-column a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-column {
        width: 100%;
        margin-bottom: 20px;
    }

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



/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    header .logo img {
        height: 2.5rem;
    }

    main h1 {
        font-size: 2em;
    }
    main .sh-text{
        margin: -1.25em 0 2.5em;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    header .logo img {
        height: 2rem;
    }

    main h1 {
        font-size: 1.8em;
    }
}
