/* ==========================================================================
   DSGVO SCHRIFTARTEN
   ========================================================================== */
@font-face {
    font-family: 'CeboFont';
    src: url('fonts/regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CeboFont';
    src: url('fonts/bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   FARBSCHEMA (MAXIMALE REDUKTION: SCHWARZ/WEISS + GRÜNER MATERIAL-AKZENT)
   ========================================================================== */
:root {
    --color-bg-white: #ffffff;
    --color-text-dark: #111111;
    --color-green-accent: #73f000;
    
    --shadow-text-hero: 0 3px 12px rgba(0, 0, 0, 0.6);
    --shadow-box-clean: 0 8px 25px rgba(0, 0, 0, 0.05);

    --font-main: 'CeboFont', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================================
   TYPOGRAFIE (STRICKT MONOCHROM)
   ========================================================================== */
/* Nur der riesige Hero-Titel darf weiß sein */
.title-hero-white {
    color: #ffffff;
    text-shadow: var(--shadow-text-hero);
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.1;
}

/* Alle anderen Überschriften und Texte sind schwarz */
.title-dark {
    color: var(--color-text-dark);
    font-weight: bold;
}

.text-dark {
    color: var(--color-text-dark);
    font-weight: 500;
}

.subtext-large {
    font-size: 1.3rem;
    font-weight: bold;
}

/* ==========================================================================
   POPUP BANNER
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 4px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-box-clean);
}

.popup-content h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.popup-content p {
    font-size: 1rem;
}

.close-popup {
    position: absolute;
    top: 10px; right: 15px;
    background: none; border: none;
    font-size: 26px; color: var(--color-text-dark);
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.close-popup:hover {
    opacity: 0.5;
}

/* ==========================================================================
   POPUP LISTEN-STYLING (Linksbündig)
   ========================================================================== */
.popup-list {
    display: inline-block; /* Hält den Block zentriert im Pop-up */
    text-align: left;      /* Macht den Text selbst linksbündig */
    list-style: none;      /* Entfernt die Standard-Aufzählungspunkte */
    margin-top: 20px;
    padding: 0;
}

.popup-list li {
    color: var(--color-text-dark);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Optional: Das letzte Element braucht keinen Abstand nach unten */
.popup-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Sehr sanfter Schatten für Abgrenzung */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.logo-container .logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-dark); /* Streng schwarz */
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    transition: opacity 0.2s ease;
}

/* Edler schwarzer Strich beim Hover, KEIN Grün! */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-text-dark);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Burger Icon (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 18px;
    width: 24px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   GLANZ/SCHIMMER EFFEKT FÜR GRÜNE AKZENTLINIEN
   ========================================================================== */
.shimmer-line {
    /* 
      Verlauf: Grün -> Grün -> Weißer Lichtreflex -> Grün -> Grün 
      Dadurch wandert ein Spiegel-Effekt durch die Linie
    */
    background: linear-gradient(
        90deg, 
        var(--color-green-accent) 0%, 
        var(--color-green-accent) 40%, 
        rgba(255, 255, 255, 0.8) 50%, 
        var(--color-green-accent) 60%, 
        var(--color-green-accent) 100%
    );
    background-size: 200% 100%;
    animation: glass-shimmer 3s infinite linear;
}

@keyframes glass-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.stripe-top, .stripe-bottom {
    height: 3px;
    width: 100%;
}

.stripe-accent {
    height: 3px;
    width: 60px;
    margin: 0 auto;
}

/* ==========================================================================
   HERO / START
   ========================================================================== */
.hero-section {
    position: relative;
    height: calc(100vh - 83px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-bg-white);
    overflow: hidden;
}

.image-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}

/* ==========================================================================
   SEKTIONEN
   ========================================================================== */
section {
    padding: 90px 0;
    text-align: center;
    background-color: var(--color-bg-white);
}

section h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

section p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 35px auto;
}

/* ==========================================================================
   BUTTONS (LUXURY MONOCHROM)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 15px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ein purer, schwarz/weißer Button, komplett ohne Grün */
.btn-luxury {
    background: #ffffff;
    color: var(--color-text-dark);
    border: 1px solid #dcdcdc;
    box-shadow: var(--shadow-box-clean);
}

.btn-luxury:hover {
    background: var(--color-text-dark);
    color: #ffffff;
    border-color: var(--color-text-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER (KOMPLETT SCHWARZE TEXTE)
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-white);
    padding: 70px 5% 25px 5%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 50px auto;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.footer-col a:hover {
    opacity: 0.5; /* Luxuriöses Verblassen beim Hover, kein Grün */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #eeeeee;
    padding-top: 25px;
    color: #666666;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: #ffffff;
        padding: 25px 0;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
    }

    .main-nav.active {
        left: 0;
    }

    /* Sehr schlanke und kompakte Mobile-Navigation */
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 18px; 
    }

    .main-nav a {
        font-size: 1.1rem; 
        padding: 5px 15px;
    }

    .title-hero-white {
        font-size: 2.8rem;
    }

    .subtext-large {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   DIENSTLEISTUNGEN & INTERAKTIVE KACHELN
   ========================================================================== */
.services-intro {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.service-card {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 25px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-box-clean);
}

.service-card:hover {
    border-color: var(--color-text-dark);
    transform: translateY(-4px);
}

/* Quadratisches 1:1 Bildformat */
.img-container-1to1 {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: #f7f7f7;
}

.img-container-1to1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .img-container-1to1 img {
    transform: scale(1.03);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: var(--color-text-dark);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.card-btn:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

/* Interaktiver Tag- & Nacht-Switch mit SVG Icons */
.theme-switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
}

.theme-switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.icon-sun, .icon-moon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cccccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #111111;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Hinweis-Box am Seitenende */
.custom-solutions-note {
    margin-top: 70px;
    padding: 45px 30px;
    background-color: #fcfcfc;
    border: 1px solid #eeeeee;
    border-radius: 6px;
}

.custom-solutions-note p {
    margin-bottom: 25px;
}

/* ==========================================================================
   FARBKOMBINATIONEN (200 PALETTEN SEITE)
   ========================================================================== */

/* Header / oberer Bereich für die Farbpaletten-Ansicht */
.palettes-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.5rem;
    text-align: left;
}

.palettes-header h1 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
    color: var(--color-text-dark);
}

.palettes-header p {
    color: #666666;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

/* Grid für die 200 Kacheln */
.palettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 60px;
}

/* Einzelne Farbpaletten-Karte / Kachel */
.palette-card {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-box-clean);
    transition: all 0.3s ease;
}

.palette-card:hover {
    border-color: var(--color-text-dark);
    transform: translateY(-2px);
}

.palette-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.palette-card-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--color-text-dark);
}

.palette-card-id {
    font-size: 0.7rem;
    color: #666666;
}

/* Minimale Webseite in der Kachel */
.palette-layout-box {
    width: 100%;
    height: 140px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pl-header { height: 18px; padding: 0 6px; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pl-logo { width: 12px; height: 6px; border-radius: 2px; }
.pl-stripe { height: 3px; width: 100%; flex-shrink: 0; }
.pl-body { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pl-line1 { height: 5px; width: 60%; border-radius: 2px; }
.pl-line2 { height: 3px; width: 80%; border-radius: 2px; opacity: 0.6; }
.pl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: auto; }
.pl-box { height: 30px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.05); padding: 4px; }
.pl-box-line { height: 2px; width: 50%; border-radius: 1px; }
.pl-footer { height: 14px; padding: 0 6px; display: flex; align-items: center; flex-shrink: 0; }
.pl-footer-line { height: 2px; width: 20px; border-radius: 1px; }

/* Farb-Kreise unten in der Kachel */
.palette-colors {
    display: flex;
    gap: 4px;
    height: 12px;
}
.palette-color-dot {
    flex: 1;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.1);
}