/* design tokens: neo-brutalismus */
:root {
    --bg-main: #fcf8f2;        /* weiches pastell-creme */
    --border-color: #000000;
    --text-main: #000000;
    --text-muted: #2d2d2d;
    
    /* pastelltöne für die karten */
    --pastel-blue: #e8f0fe;
    --pastel-green: #e6fcf5;
    --pastel-pink: #fff0f6;
    --pastel-yellow: #fef9e7;
    --pastel-purple: #f3f0ff;
    --pastel-orange: #fff4e6;
    
    --primary: #ffde43;        /* brutalistisches gelb */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-flat: 4px 4px 0px #000000;
    --shadow-hover: 7px 7px 0px #000000;
}

html {
    scroll-behavior: smooth;
}

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

html {
    height: 100%;
    overflow: hidden; /* Verhindert das Scrollen des viewports selbst */
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    padding: 0 20px;
    height: 100svh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.fullpage-wrapper {
    flex: 1 !important;
    overflow-y: scroll !important;
    scroll-snap-type: y mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Header & Nav */
.header {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: 100% !important;
    max-width: 1400px;
    margin: 20px auto 10px auto !important;
    z-index: 100;
    border: 3px solid var(--border-color);
    background: #ffffff;
    box-shadow: var(--shadow-flat);
    padding: 20px;
    box-sizing: border-box;
    will-change: auto !important;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.logo-text {
    color: var(--text-main);
}

.highlight {
    background: var(--primary);
    padding: 2px 8px;
    border: 2px solid var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    border-bottom: 2px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 3px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-flat);
    transition: all 0.15s ease;
}

.btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary {
    background: #ffffff;
}

.btn-outline {
    background: #ffffff;
}

/* Hero Section */
.hero, .features, .about-section, .contact {
    min-height: 100% !important;
    height: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Vertikal zentriert auf Desktops */
    padding: 40px 0 !important;
}

.hero {
    position: relative;
}

.hero-content {
    text-align: left;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: #ffffff;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0px #000000;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 700px;
}

.cta-group {
    display: flex;
    gap: 16px;
}

/* Features/Services Section */
.features {
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 8px;
}

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

.card {
    border: 3px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-flat);
    transition: all 0.15s ease;
}

.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hover);
}

/* verschiedene pastellfarben für die karten */
#service-security { background-color: var(--pastel-blue); }
#service-network { background-color: var(--pastel-green); }
#service-hosting { background-color: var(--pastel-pink); }
#service-support { background-color: var(--pastel-yellow); }
#service-tel { background-color: var(--pastel-purple); }
#service-consulting { background-color: var(--pastel-orange); }

.card-svg {
    width: 48px;
    height: 48px;
    padding: 6px;
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0px #000000;
    margin-bottom: 12px;
    display: block;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Contact / Call-to-action */
.contact {
}

.contact-box {
    background: #ffffff;
    border: 3px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--shadow-flat);
}

.contact-box h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input, .contact-form textarea {
    background: #ffffff;
    border: 3px solid var(--border-color);
    padding: 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.05);
}

.contact-form input:focus, .contact-form textarea:focus {
    background: var(--pastel-yellow);
}

.feedback-message {
    margin-top: 16px;
    font-weight: 800;
    padding: 10px;
    border: 2px dashed var(--border-color);
    display: inline-block;
}

.feedback-success {
    background-color: var(--pastel-green);
}

.feedback-error {
    background-color: #ff8080;
}

.about-section {
}

.about-box {
    background-color: var(--pastel-purple);
    border: 3px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--shadow-flat);
}

.about-box h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

/* Footer */
.footer {
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    font-weight: 600;
}

.footer a {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
}

.footer a:hover {
    text-decoration: underline;
}

.legal-links {
    margin-top: 8px;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        height: 100%;
        overflow: hidden; /* Verhindert das Scrollen des viewports selbst */
    }
    
    body {
        height: 100svh !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 20px !important;
        box-sizing: border-box;
    }
    
    /* Mobil: Der Header sitzt statisch oben im Flexbox-Raster des Bodys und bleibt immer sichtbar */
    .header {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
        width: 100% !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
        padding: 15px !important;
        will-change: auto !important;
    }
    
    /* Mobil: Der fullpage-wrapper wird zum einzigen Scroller der App */
    .fullpage-wrapper {
        flex: 1 !important;
        overflow-y: scroll !important;
        scroll-snap-type: y mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100%;
        height: auto !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Mobil: Sektionen nehmen mindestens die verbleibende Höhe (100% des Scrollers) ein */
    .hero, .about-section, .contact {
        min-height: 100% !important;
        height: auto !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-bottom: 0 !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Richtet den Inhalt oben unter dem Header aus */
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }

    /* Mobil: Sektion und Grid selbst auflösen, damit Cards direkte Layout-Kinder des Wrappers werden */
    .features, .features .grid {
        display: contents;
    }
    
    .features .section-title {
        display: none;
    }
    
    .features .card {
        min-height: 100% !important;
        height: auto !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Richtet den Inhalt oben unter dem Header aus */
        padding: 10px 0 !important;
        box-sizing: border-box;
        border: none;
        box-shadow: none;
        background: transparent !important; /* Nutzt den pastell-creme Hintergrund des Bodys */
    }
    
    .features .card-svg {
        width: 64px;
        height: 64px;
        padding: 8px;
        margin-bottom: 16px;
        box-shadow: 2px 2px 0px #000000;
        border: 2px solid var(--border-color);
    }
    
    .features .card h3 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .features .card p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* Kontakteingaben und Footer mobil verkleinern, um alles auf eine Folie zu bringen */
    .contact-box {
        padding: 15px !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    
    .contact-box h2 {
        font-size: 1.5rem !important;
        margin-bottom: 8px !important;
    }
    
    .contact-box p {
        display: none !important; /* Blendet die Beschreibung mobil aus für maximale Höhe */
    }
    
    .contact-form {
        gap: 8px !important; /* Spalt zwischen den Feldern komprimiert */
    }
    
    .contact-form input {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
    }
    
    .contact-form textarea {
        padding: 8px 12px !important;
        height: 50px !important; /* Textarea Höhe noch kompakter */
        font-size: 0.9rem !important;
    }
    
    .contact-form button {
        padding: 10px 20px !important;
        margin-top: 4px !important;
        font-size: 0.9rem !important;
    }
    
    .footer {
        margin-top: 12px !important;
        padding: 5px 0 !important;
    }
    
    .footer p {
        font-size: 0.85rem !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .about-box {
        padding: 20px !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    
    .about-box h2 {
        font-size: 1.6rem !important;
        margin-bottom: 12px !important;
    }
    
    .about-content {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
        gap: 10px !important;
    }

    .nav {
        display: none;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1400px;
    }
    
    .header {
        max-width: 1400px;
    }

    /* Widescreen-spezifische Zentrierung und Breitenbegrenzung der Boxen */
    .hero-content, .about-box, .contact-box {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .about-box, .contact-box {
        background-color: #ffffff;
        border: 3px solid var(--border-color);
        padding: 50px !important;
        box-shadow: var(--shadow-flat);
    }
    
    .about-box {
        background-color: var(--pastel-purple);
    }

    /* Größere Schriftgrößen auf Widescreen */
    .hero-content h1 {
        font-size: 3.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 24px !important;
    }

    .hero-content p {
        font-size: 1.3rem !important;
        line-height: 1.6 !important;
    }

    .about-box h2, .contact-box h2 {
        font-size: 2.8rem !important;
        margin-bottom: 24px !important;
    }

    .about-content p, .contact-box p {
        font-size: 1.2rem !important;
        line-height: 1.6 !important;
    }
    
    .contact-form input, .contact-form textarea {
        font-size: 1.1rem !important;
        padding: 16px !important;
    }

    .contact-form button {
        font-size: 1.1rem !important;
        padding: 16px 30px !important;
    }
    
    /* Leistungen im Grid-Format auf Widescreen */
    .features .section-title {
        max-width: 1200px;
        margin: 0 auto 24px auto;
        width: 100%;
        font-size: 2.8rem !important;
    }

    .features .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
    }
    
    .features .card {
        padding: 24px;
        background-color: #ffffff;
        border: 3px solid var(--border-color);
        box-shadow: var(--shadow-flat);
        min-height: auto !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .features .card-svg {
        width: 56px;
        height: 56px;
        padding: 6px;
        margin-bottom: 16px;
        box-shadow: 2px 2px 0px #000000;
        border: 2px solid var(--border-color);
    }
    
    .features .card h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .features .card p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}
