/* --- Style.css - KORRIGIERTE VERSION (Transparent, Buttons OHNE SCHRIFT) --- */

/* --- Allgemeine und Reset-Stile --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Varela Round', sans-serif;
    background-color: #D7D8C8;
    color: #2D060A;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: #2D060A;
    transition: color 0.3s ease;
}

a:hover {
    color: #801319;
}

/* --- Header und Modernes Menü (Desktop) --- */
.main-header {
    background-color: #374D3E;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between; /* Logo Links, Nav Rechts */
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    display: none;
}

.hamburger-icon {
    display: none;
    cursor: pointer;
    z-index: 200;
    position: relative;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon .line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #D7D8C8;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger-icon:hover .line {
    background-color: #4D0000;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #D7D8C8;
    z-index: 101;
}

/* *** Header Bild *** */
.centered-header-image {
    max-height: 40px;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Horizontal & Vertikal zentrieren */
    z-index: 99;
}

/* --- Navigation --- */
.main-nav {
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: #D7D8C8;
    position: relative;
    padding-bottom: 5px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #801319;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    left: 0;
    background: #801319;
}

.main-nav a.active::after {
    width: 100%;
}


/* --- Hauptinhaltsbereich (Basis-Seite) --- */
.content-area {
    flex-grow: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #374D3E;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2D060A;
}

.hero p {
    font-size: 1.2rem;
    color: #374D3E;
}

.cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #F8F8F4;
    color: #2D060A;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #801319;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.image-placeholder {
    height: 150px;
    background-color: #6A8782;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: #2D060A;
    font-weight: 700;
    font-size: 0.9rem;
}


/* --- Footer --- */
.main-footer {
    background-color: #2D060A;
    color: #D7D8C8;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #374D3E;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.main-footer p {
    font-size: 0.8rem;
}

.footer-icon {
    max-height: 20px;
    width: auto;
}

/* ======================================= */
/* ====== STILE FÜR UNTERSEITEN (page-hero & split-content) ====== */
/* ======================================= */

/* Spezifisches Hero-Styling für die Unterseiten */
.page-hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid #374D3E;
}

/* Flexbox/Grid für das Zwei-Spalten-Layout */
.split-content-section {
    display: flex;
    gap: 4rem;
    align-items: center; /* Vertikale Zentrierung */
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid #374D3E;
}

.split-text-left,
.split-image-right {
    flex: 1; /* Beide nehmen den gleichen Platz ein */
}

.split-text-left h2 {
    color: #801319;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.split-text-left ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.split-text-left li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #374D3E;
}

/* Spezieller Platzhalter für das breitere Bild */
.wide-placeholder {
    height: 250px;
    background-color: #6A8782;
    border-radius: 8px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2D060A;
    margin-bottom: 2rem;
}

/* --- Zusätzlicher Stil zur vertikalen Zentrierung des Button-Blocks --- */
.centered-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikal zentrieren */
    align-items: center; /* Horizontal zentrieren */
    text-align: center;
    border: none !important;
}


/* ======================================= */
/* ====== STILE FÜR BUTTON-LINKS AUF internetseiten.html/heimnetz.html ====== */
/* ======================================= */

.button-links-section {
    /* Alle Ränder/Trennungen werden in der centered-page Klasse behandelt */
    margin: 0;
    padding: 0;
}

/* Angepasst: Jetzt Flex-Container für alle Buttons */
.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 70px; /* WEITER VERGRÖSSERT: Sehr großer Abstand */
    max-width: 1400px; /* Vergrößert die maximale Breite des Containers */
    margin: 0 auto;
    padding: 3rem 0; /* Mehr Polsterung */
}

/* Basis-Stil für alle Button-Logos (gilt für Internetseiten.html) */
.buttonLogo {
    width: 200px;
    height: 200px;

    /* *** NEU/GEÄNDERT: Wichtig für die neuen <a>-Tags *** */
    display: flex; /* Bleibt wie gehabt */
    justify-content: center; /* Bleibt wie gehabt */
    align-items: center; /* Bleibt wie gehabt */
    text-align: center; 
    text-decoration: none; /* Entfernt die Standard-a-Tag-Unterstreichung */
    /* *** ENDE NEUE ANPASSUNG *** */
    
    /* --- SCHRIFT ENTFERNT: Fallback-Text unsichtbar gemacht --- */
    color: transparent; /* Textfarbe transparent setzen */
    font-size: 0; /* Schriftgröße auf 0 setzen, um Platzbedarf zu vermeiden */
    font-weight: normal; /* Normalgewicht, falls doch mal sichtbar */
    line-height: 0; /* Zeilenhöhe auf 0 setzen */
    overflow: hidden; /* Sicherstellen, dass nichts überläuft */

    /* --- KORRIGIERT: KEIN RAHMEN UND KEIN HINTERGRUND --- */
    border: none;
    background-color: transparent; /* HINTERGRUND ENTFERNT */

    cursor: pointer;
     
    /* --- ÜBRIGES STYLING --- */
    border-radius: 8px;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.buttonLogo:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: none; /* KEIN SCHATTEN BEIM HOVER */
}

/* ================================================= */
/* ====== SPEZIFISCHE STILE NUR FÜR HEIMNETZ.HTML (GRÖSSE ZURÜCKGESETZT) ====== */
/* ================================================= */

/* Selektiert nur die Buttons, die im geschützten Bereich der Heimnetz-Seite liegen */
#contentProtected .buttonLogo {
    /* Rahmen und abgerundete Ecken beibehalten */
    border: 2px solid #801319;
    border-radius: 15px;

    /* Schriftgröße hier ebenfalls unsichtbar machen, falls Überschreibung */
    color: transparent;
    font-size: 0;
    line-height: 0;

    /* NEU: Bild füllt den Button komplett aus und wird dabei beschnitten, wenn nötig */
    background-size: cover; 
}

/* Spezifischer Hover-Schatten nur für die Heimnetz-Buttons */
#contentProtected .buttonLogo:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}


/* --- Hintergrundbilder für Logos --- */

/* Heimnetz-Logos */
/* 1. Router */
.router-logo {
    background-image: url('Bilder/Router.png');
}
/* 2. Switch */
.switch-logo {
    background-image: url('Bilder/Switch.png');
}
/* 3. Repeater */
.repeater-logo {
    background-image: url('Bilder/Repeater.png');
}
/* 4. NAS */
.nas-logo {
    background-image: url('Bilder/NAS.png');
}
/* 5. Mini-Server */
.mini-server-logo {
    background-image: url('Bilder/Mini-Server.png');
}
/* 6. Desktop-PC */
.desktop-pc-logo {
    background-image: url('Bilder/DesktopPC.png');
}
/* 7. Tischscanner */
.tischscanner-logo {
    background-image: url('Bilder/Tischscanner.png');
}


/* Internetseiten-Logos */
.pixabay {
    background-image: url('Bilder/pixabay.svg');
}
.getInIt {
    background-image: url('Bilder/get in IT.svg');
}
.idealo {
    background-image: url('Bilder/idealo.svg');
}
.gmail {
    background-image: url('Bilder/gmail.svg');
}
.google {
    background-image: url('Bilder/google.svg');
}
.youtube {
    background-image: url('Bilder/youtube.svg');
}
.chromeRemoteDesktop {
    background-image: url('Bilder/Chrome Remote Desktop.svg');
}


/* ======================================= */
/* ====== RESPONSIVE OPTIMIERUNG ========= */
/* ======================================= */

/* --- Tablet & Smartphone Optimierung (Breite unter 768px) --- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .logo {
        margin-right: 1rem;
        font-size: 1.8rem;
    }

    .centered-header-image {
        display: block;
        max-height: 30px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 99;
    }

    .hamburger-icon {
        display: flex;
        order: 2;
        align-self: center;
        margin-left: auto;
    }

    /* Navigation: Mobil-Layout */
    .main-nav {
        position: fixed;
        right: 0;
        left: auto;
        width: 100%;
        height: 100%;
        top: 3.6rem;
        height: calc(100vh - 3.6rem);

        background-color: rgba(55, 77, 62, 0.8);

        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        z-index: 95;
        padding-top: 0;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }


    .main-nav ul {
        background-color: rgba(45, 6, 10, 0.8);
        width: 80%;
        padding: 2rem 0;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);

        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 2rem;
        max-height: calc(100% - 4rem);
        overflow-y: auto;
    }

    .main-nav li {
        width: 90%;
        text-align: center;

        border-bottom: 1px solid rgba(106, 135, 130, 0.4);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        font-size: 1.2rem;
        color: #D7D8C8;
    }

    .main-nav a:hover {
        background-color: rgba(106, 135, 130, 0.95);
    }

    .main-nav a::after,
    .main-nav a.active::after {
        display: none;
    }

    /* Logik */
    #menu-toggle:checked ~ .main-nav {
        transform: translateX(0);
    }

    /* Animation des runden Burgers */
    #menu-toggle:checked ~ .hamburger-icon .line:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    #menu-toggle:checked ~ .hamburger-icon .line:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked ~ .hamburger-icon .line:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }

    .main-nav::before {
        display: none;
    }

    /* Allgemeine responsive Anpassungen */
    .hero, .page-hero {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }
    .hero h1, .page-hero h1 {
        font-size: 2rem;
    }
    .hero p, .page-hero p {
        font-size: 1.1rem;
    }

    .cards-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Responsive Anpassung für das Zwei-Spalten-Layout der Unterseite */
    .split-content-section {
        flex-direction: column; /* Stapelt Spalten vertikal auf Mobil */
        gap: 2rem;
    }
    .split-image-right {
        order: -1; /* Setzt das Bild über den Text, wenn gestapelt */
    }
    .wide-placeholder {
        height: 200px;
    }
    .section-title {
        font-size: 1.6rem;
    }

    /* Responsive Anpassung für Buttons (Mobil - Internetseiten) */
    .buttons {
        gap: 30px;
    }

    .buttonLogo {
        width: 120px;
        height: 120px;
        font-size: 0; /* Schrift unsichtbar */
    }

    /* SPEZIFISCHE ANPASSUNG FÜR HEIMNETZ MOBIL */
    #contentProtected .buttonLogo {
        border-radius: 10px;
        font-size: 0; /* Schrift unsichtbar */
    }
}


/* --- Anpassungen für sehr kleine Bildschirme --- */
@media (max-width: 480px) {
    .content-area {
        padding: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero h1, .page-hero h1 {
        font-size: 1.5rem;
    }

    .buttonLogo {
        width: 100px;
        height: 100px;
        font-size: 0; /* Schrift unsichtbar */
    }

    /* SPEZIFISCHE ANPASSUNG FÜR HEIMNETZ SEHR KLEIN */
    #contentProtected .buttonLogo {
        font-size: 0; /* Schrift unsichtbar */
    }
}