/*
Theme Name:  Sommergärten Theme
Theme URI:   https://sommergaerten.de
Author:      Sommergärten
Author URI:  https://sommergaerten.de
Description: Individuelles Theme für die Sommergärten-Website
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sommergaerten-theme
Tags:        garden, nature, green, responsive
*/

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary:      #92D050;   /* Markengrün */
    --color-primary-dark: #6faa2e;   /* Hover / dunkleres Grün */
    --color-secondary:    #92D050;   /* Alias → primary */
    --color-accent:       #92D050;   /* Alias → primary */
    --color-dark:         #000000;   /* Schwarz */
    --color-light:        #f4f4f4;   /* Hellgrau – visuell trennt weiße Nachbarabschnitte */
    --color-white:        #ffffff;
    --color-text:         #000000;
    --color-text-light:   #ffffff;

    --font-heading: 'Open Sans', Arial, sans-serif;
    --font-body:    'Open Sans', Arial, sans-serif;

    --max-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.7;
    font-size: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

p { margin-bottom: var(--spacing-md); }

/* =========================================
   LAYOUT
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
    background-color: var(--color-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.main-navigation {
    margin-left: auto;
}

/* Nav immer sichtbar (kein Toggle-Button) */
.main-navigation .nav-menu {
    display: flex !important;
}

.site-logo a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 700;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.main-navigation a {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #BFBFBF;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.9;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-dark);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* =========================================
   CARDS / FEATURES
   ========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
}

.card {
    background: var(--color-white);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
    padding: var(--spacing-xl) 0;
}

.section--green {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section--green h2 {
    color: var(--color-white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: var(--color-dark);
    color: rgba(255,255,255,0.8);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-widget h3 {
    color: var(--color-white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-widget a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }

    .hero {
        min-height: 50vh;
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* =========================================
   HERO SLIDESHOW
   ========================================= */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 260px;
    overflow: hidden;
    background: var(--color-dark);
}

.slideshow-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    display: flex;
    align-items: center;
}

.slide.is-active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-dark);
    transform: scale(1);
    transition: transform 8s ease;
}

/* Fallback gradient wenn kein Bild vorhanden */
.slide:nth-child(1) .slide-bg { background-color: #2c4a38; }
.slide:nth-child(2) .slide-bg { background-color: #1e3a2e; }
.slide:nth-child(3) .slide-bg { background-color: #243d30; }

.slide.is-active .slide-bg { transform: scale(1.04); }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.3)  55%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 680px;
    padding: 2rem;
}

.slide-tagline {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.slide-content h1 {
    color: var(--color-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    max-width: 520px;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Slideshow Arrows */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.slideshow-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.slideshow-prev { left: 1.5rem; }
.slideshow-next { right: 1.5rem; }

/* Slideshow Dots */
.slideshow-dots {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dot.is-active,
.dot:hover {
    background: white;
    border-color: white;
}

/* =========================================
   SECTION LABELS & HEADERS
   ========================================= */
.section-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    font-size: 1.05rem;
}

.section-header--light .section-label { color: var(--color-accent); }
.section-header--light h2             { color: var(--color-white); }
.section-header--light p              { color: rgba(255, 255, 255, 0.65); }

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section { background: var(--color-white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text .btn { margin-top: 0.5rem; }

.about-subheading {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.about-quote {
    border-left: 3px solid var(--color-primary);
    margin: 0 0 1.25rem;
    padding: 0.5rem 0 0.5rem 1.25rem;
}
.about-quote p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.about-quote p:last-child { margin-bottom: 0; }

.about-author {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.about-author strong {
    font-size: 1rem;
    color: var(--color-dark);
}

.about-image { position: relative; }

.about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
    display: block;
}

.about-badge {
    position: absolute;
    bottom: -1.75rem;
    left: -1.75rem;
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(146, 208, 80, 0.4);
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
    opacity: 0.85;
}

/* =========================================
   LEISTUNGEN
   ========================================= */
.leistungen-section { background: var(--color-light); }

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.leistung-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 260px 1fr;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leistung-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.leistung-image {
    background: var(--color-primary);
    min-height: 300px;
    overflow: hidden;
}

.leistung-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.leistung-card:hover .leistung-image img { transform: scale(1.05); }

.leistung-body {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.leistung-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.leistung-body p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.leistung-list {
    list-style: none;
    margin: 0;
}

.leistung-list li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}

.leistung-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* =========================================
   12 SCHRITTE
   ========================================= */
.schritte-section { background: var(--color-dark); }

.schritte-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 0;
    position: relative;  /* Ankerpunkt für das SVG */
}

/* Schlangenförmiger Verbindungspfad (SVG, per JS gezeichnet) */
.schritte-path-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.schritt-item {
    background: #0d0d0d;  /* opak, damit die Verbindungslinie dahinter verschwindet */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    transition: background 0.3s ease;
    position: relative;  /* über dem SVG */
    z-index: 1;
}

.schritt-item:hover { background: #1a1a1a; }

.schritt-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.schritt-body h3 {
    color: var(--color-white);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.schritt-body p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 0;
}

.schritte-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.schritte-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
}

.btn--large { padding: 1rem 2.75rem; font-size: 1rem; }

/* =========================================
   PAGE HERO (Unterseiten)
   ========================================= */
.page-hero {
    padding: 4rem 0;
    text-align: center;
}

.page-hero--dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.page-hero--dark h1 { color: var(--color-white); margin-bottom: 0.75rem; }

/* Über-uns Hero + Section-Headings: Comforter Brush */
.page-uber-uns .page-hero h1,
.page-id-9 .page-hero h1,
.page-uber-uns .section-header h2,
.page-id-9 .section-header h2,
/* Referenzen Hero */
.page-referenzen .page-hero h1 {
    font-family: 'Comforter Brush', cursive;
    font-size: 80px;
    font-weight: 400;
    line-height: 1.1;
}

/* Startseite Section-Headings: Comforter Brush */
.home .about-text h2,
.home .leistungen-section .section-header h2,
.home .schritte-section .section-header h2 {
    font-family: 'Comforter Brush', cursive;
    font-size: 80px;
    font-weight: 400;
    line-height: 1.1;
}
.site-logo__link { display: flex; align-items: center; }
.site-logo__img  { height: 40px; width: auto; display: block; }

/* Logo-Größe (Customizer custom-logo) */
.site-logo .custom-logo-link img,
.site-logo .custom-logo-link .custom-logo { height: 40px; width: auto; display: block; }

.page-hero--dark p  { color: rgba(255, 255, 255, 0.75); font-size: 1.1rem; }

/* =========================================
   REFERENZEN – VOLLBREITE LISTE
   ========================================= */
.referenz-list {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.referenz-item {
    background: var(--color-white);
    padding: 5rem 0 0;
    border-bottom: 1px solid #e8e8e8;
    opacity: 0;
    transform: translateY(140px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.referenz-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Scroll-Reveal für Startseiten-Elemente */
.about-grid,
.leistung-card,
.schritt-item {
    opacity: 0;
    transform: translateY(100px) scale(0.96);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-grid.is-visible,
.leistung-card.is-visible,
.schritt-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Kein Flackern für User, die reduzierte Bewegung bevorzugen */
@media (prefers-reduced-motion: reduce) {
    .referenz-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.referenz-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem var(--spacing-lg) 2rem;
}

.referenz-title {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 900;
    font-synthesis: none;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--color-dark);
}

.referenz-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 200;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

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

/* Vollbreites Bild unter dem Text */
.referenz-image {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #eee;
}

.referenz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   REFERENZ-ITEM SLIDESHOW
   ========================================= */
.referenz-slideshow {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto 0;
    padding: 0 var(--spacing-lg) 3rem;
}

.ref-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #111;
    border-radius: 6px;
}

.ref-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ref-slide.is-active { opacity: 1; }

.ref-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ref-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    padding: 0.6rem 0.9rem;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.2s ease;
}

.ref-arrow:hover { background: rgba(0, 0, 0, 0.75); }
.ref-prev { left: 0.75rem; }
.ref-next { right: 0.75rem; }

.ref-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.ref-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.ref-dot.is-active { background: var(--color-primary); }

/* =========================================
   REFERENZEN / PROJEKTE GRID (für "Weitere Projekte" in Detailseite)
   ========================================= */
.projekte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    padding: 1rem 0 3rem;
}

.projekt-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    color: inherit;
    text-decoration: none;
}

.projekt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.11);
    color: inherit;
}

.projekt-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.projekt-card:hover img { transform: scale(1.04); }

.projekt-card-img-placeholder {
    width: 100%;
    height: 240px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.projekt-card-body { padding: 1.5rem; }
.projekt-card-body h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.projekt-card-body p  { font-size: 0.88rem; color: #666; margin-bottom: 0.75rem; }

.projekt-card-more {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.referenzen-placeholder .admin-hint { color: #999; font-size: 0.85rem; font-style: italic; }

/* =========================================
   ÜBER UNS – TEAM
   ========================================= */
.team-section  { background: #000; }
.team-section .section-label { color: var(--color-accent); }
.team-section .section-header h2 { color: var(--color-white); }
.team-member h3 { color: #fff; }
.team-member-role { color: rgba(255,255,255,0.65); }
.team-member-goal { color: rgba(255,255,255,0.55); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
    row-gap: 0;
    margin-top: 1rem;
    align-items: start;
}

/* 5. Element (Jürgen) zentriert in letzter Reihe */
.team-grid > .team-member:nth-child(4) { grid-column: 1; }
.team-grid > .team-member:nth-child(5) { grid-column: 2; }

.team-member {
    /* Subgrid: 4 Zeilen (Foto, Name, Rolle, Zitat) mit Eltern-Raster synchronisieren */
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-items: start;
    text-align: center;
    padding: 2rem 1.5rem;
    background: transparent;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
}

.team-member-photo-wrap {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
}

.team-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.team-member-photo-fallback {
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
}

.team-member h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }

.team-member-role {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.team-member-goal {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0;
}

/* =========================================
   ÜBER UNS – TIMELINE
   ========================================= */
.timeline-section { background: var(--color-light); }

.timeline {
    position: relative;
    margin-top: 1rem;
    padding: 1rem 0 0;
}

/* Vertical center line – immer voll sichtbar */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    transform: translateX(-50%);
    z-index: 0;
}

/* Each item: full width block, fixed equal spacing – no floats */
.timeline-item:not(.cta) {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    z-index: 1;
}

/* Dot on center line */
.timeline-item:not(.cta)::before {
    content: '';
    position: absolute;
    left: calc(50% - 8px);
    top: 1.4rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
    z-index: 2;
}

/* Year bubble centered on the center line */
.timeline-item:not(.cta)::after {
    content: attr(data-year);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 1.1rem;
    padding: 0.4rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: center;
    border-radius: 30px;
    white-space: nowrap;
    z-index: 3;
}

/* Left items: card pushed into the left half */
.timeline-item.left {
    padding: 0;
}
.timeline-item.left .timeline-content {
    margin-right: calc(50% + 60px);
    text-align: right;
}

/* Right items: card pushed into the right half */
.timeline-item.right {
    padding: 0;
}
.timeline-item.right .timeline-content {
    margin-left: calc(50% + 60px);
    text-align: left;
}

/* Card */
.timeline-content {
    background: var(--color-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    cursor: default;
}

/* Year label span – shown only on mobile, hidden on desktop */
.timeline-year-label { display: none; }

.timeline-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #000000;
}
.timeline-content p  {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 200;
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Inline links within timeline text */
.timeline-content a.timeline-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}
.timeline-content a.timeline-link:hover { color: var(--color-primary-dark); }

/* Hover image – hidden by default, slides down on card hover */
.timeline-hover-image {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    border-radius: 6px;
    transition: max-height 0.45s ease, margin-top 0.35s ease;
}
.timeline-content:hover .timeline-hover-image {
    max-height: 260px;
    margin-top: 1rem;
}
.timeline-hover-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* CTA entry at bottom */
.timeline-item.cta {
    position: relative;
    clear: both;
    width: 100%;
    float: none;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
/* Cover the vertical center line inside the CTA row */
.timeline-item.cta::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 10px;
    transform: translateX(-50%);
    background: var(--color-light);
    z-index: 1;
}
.timeline-item.cta .timeline-content {
    position: relative;
    z-index: 2;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* ── Timeline animation states ───────────────────────────────────────────── */

/* Initial hidden state – JS adds this class before observing */
.timeline-item.tl-hidden {
    opacity: 0;
}
.timeline-item.left.tl-hidden .timeline-content  { transform: translateX(-48px); }
.timeline-item.right.tl-hidden .timeline-content { transform: translateX(48px); }

/* Visible state – JS removes tl-hidden and adds tl-visible */
.timeline-item.tl-visible {
    opacity: 1;
    transition: opacity 0.55s ease;
}
.timeline-item.tl-visible .timeline-content {
    transform: translateX(0) !important;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity  0.55s ease;
    opacity: 1;
}

/* Year bubble pop: scale in with a bounce when card becomes visible */
.timeline-item.tl-visible::after {
    animation: tl-bubble-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.25s;
}
@keyframes tl-bubble-pop {
    from { transform: translateX(-50%) scale(0.4); opacity: 0; }
    to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}

/* Dot pulse: one-time ripple when entering viewport */
.timeline-item.tl-dot-pulse::before {
    animation: tl-dot-pulse 0.6s ease-out both;
    animation-delay: 0.1s;
}
@keyframes tl-dot-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(var(--color-primary-rgb, 74,111,56), 0.5),
                       0 0 0 2px var(--color-primary); }
    60%  { box-shadow: 0 0 0 10px rgba(var(--color-primary-rgb, 74,111,56), 0),
                       0 0 0 2px var(--color-primary); }
    100% { box-shadow: 0 0 0 0   rgba(var(--color-primary-rgb, 74,111,56), 0),
                       0 0 0 2px var(--color-primary); }
}
.timeline-cta-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}
.timeline-cta-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* =========================================
   EINZELNE PROJEKT-SEITE
   ========================================= */
.projekt-hero {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark);
    position: relative;
    display: flex;
    align-items: flex-end;
}

.projekt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.projekt-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 3rem 0;
}

.projekt-hero-content h1 { color: white; }

.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-link:hover { color: white; }

.projekt-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
    padding: 2rem 0;
}

.projekt-content { font-size: 1.02rem; line-height: 1.8; }

.projekt-meta-card {
    background: var(--color-light);
    border-radius: 10px;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
}

.projekt-meta-card h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

.meta-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.meta-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #888; }
.meta-value { font-size: 0.95rem; color: var(--color-dark); margin-top: 0.2rem; }

/* =========================================
   FOOTER (neu)
   ========================================= */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 3.5rem 0 2.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col .footer-link {
    margin-top: auto;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

.footer-address {
    color: rgba(255,255,255,0.7);
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-contact-info {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-contact-link {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}

.footer-contact-link:hover { color: var(--color-accent); }

.footer-link {
    display: inline-block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-link:hover { color: var(--color-accent); border-color: var(--color-accent); }

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
}

.social-link:hover { color: var(--color-accent); }

.footer-bottom {
    text-align: center;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* =========================================
   LEGAL PAGES (Impressum / Datenschutz)
   ========================================= */
.legal-header {
    background: var(--color-dark);
    color: white;
    padding: 3rem 0;
}

.legal-header h1 { color: white; margin-bottom: 0; }

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 200;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.legal-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #222;
}

/* =========================================
   RESPONSIVE – ALLE NEUEN SEKTIONEN
   ========================================= */
@media (max-width: 1100px) {
    .leistungen-grid { grid-template-columns: 1fr; }
    .leistung-card   { grid-template-columns: 220px 1fr; }
    .schritte-grid   { grid-template-columns: repeat(3, 1fr); }
    .projekte-grid   { grid-template-columns: repeat(2, 1fr); }
    .team-grid       { grid-template-columns: repeat(2, 1fr); }
    .team-grid > .team-member:nth-child(4) { grid-column: auto; }
    .team-grid > .team-member:nth-child(5) { grid-column: auto; }
    .referenz-number { font-size: 3.5rem; }
    .referenz-title  { font-size: 32px; }
}

@media (max-width: 768px) {
    .hero-slideshow  { height: 40vh; min-height: 220px; }
    .slideshow-arrow { display: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-badge { display: none; }
    .about-image img { height: 320px; }

    .leistung-card { grid-template-columns: 1fr; }
    .leistung-image { min-height: 220px; }

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

    .projekte-grid { grid-template-columns: 1fr; }

    .team-grid { grid-template-columns: 1fr; }

    .timeline::before { left: 20px; width: 2px; }
    .timeline-item:not(.cta) {
        margin-bottom: 2rem;
    }
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        margin-left: 52px;
        margin-right: 0;
        text-align: left;
    }
    .timeline-item:not(.cta)::before {
        left: 13px;
        top: 1.25rem;
        width: 14px;
        height: 14px;
    }
    .timeline-item:not(.cta)::after { display: none; }
    .timeline-year-label {
        display: inline-block;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--color-primary);
        margin-bottom: 0.35rem;
    }
    .timeline-item.cta { padding-top: 1rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 1.5rem; }

    .projekt-layout { grid-template-columns: 1fr; }
    .projekt-meta-card { position: static; }

    /* Referenz-Liste Mobile */
    .referenz-item    { padding: 3rem 0 0; }
    .referenz-header  { gap: 1rem; }
    .referenz-number  { font-size: 2.5rem; min-width: 2.5rem; }
    .referenz-title   { font-size: 26px; padding-top: 0.2rem; }
    .referenz-image   { aspect-ratio: 16 / 9; }
}

@media (max-width: 540px) {
    .schritte-grid { grid-template-columns: 1fr; }
    .slide-content h1 { font-size: 1.8rem; }
    .slide-content p  { font-size: 0.95rem; }
    .referenz-number  { font-size: 2rem; }
    .referenz-title   { font-size: 22px; }
}
