:root {
    --sn-bg-dark: #0f172a;        /* Dark Blue / Tech */
    --sn-bg-card: #111827;        /* Card Background */
    --sn-text-main: #e5e7eb;      /* Light Text */
    --sn-text-muted: #9ca3af;     /* Muted Text */
    --sn-accent: #38bdf8;         /* Spider-NET Accent (Cyan/Blue) */
    --sn-accent-hover: #0ea5e9;
    --sn-border: #1f2937;
}

html {
    scroll-behavior: smooth;
    color: #0f172a;
}

/* Custom Gradients */
.bg-gradient-header {
    background: linear-gradient(to right, #ffffff, #e0f2fe, #2563eb);
}

.bg-gradient-hero {
    background: linear-gradient(to bottom right, #dbeafe, #e0e7ff, #f3e8ff);
}

.bg-gradient-services {
    background: linear-gradient(to bottom, #f1f5f9, #f9fafb);
}

.bg-gradient-about {
    background: linear-gradient(to bottom right, #dbeafe, #f0f9ff, #e0e7ff);
}

.bg-gradient-footer {
    background: linear-gradient(to bottom right, #0f172a, #1e3a8a);
}

.bg-gradient-contact-form {
    background: linear-gradient(to bottom right, #dbeafe, #e0e7ff);
}

.gradient-overlay {
    background: linear-gradient(
            to right,
            rgba(30, 58, 138, 0.75),
            rgba(30, 64, 175, 0.65),
            rgba(30, 58, 138, 0.55)
    );
}

.shadow-blue {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.shadow-blue-sm {
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(to right, #93c5fd, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles (Bootstrap-konform) */
.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-light-blue {
    background-color: #dbeafe;
    color: #1f2937;
    border: none;
}

.btn-light-blue:hover {
    background-color: #bfdbfe;
    color: #1f2937;
}

/* FIX: Klassenselektor (vorher fälschlich "icon-box" ohne Punkt) */
.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1);
}

/* Header fixed */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Adjust main content for fixed header */
main {
    padding-top: 80px;
}

/* Hero Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
}

/* Cookie Banner/Modal */
.cookie-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    z-index:9998;
}

.cookie-banner,
.cookie-modal{
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    z-index:9999;
    width:min(560px, calc(100% - 24px));
    bottom:20px;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.cookie-modal{
    top:50%;
    bottom:auto;
    transform:translate(-50%,-50%);
}

.cookie-card{
    background:var(--sn-bg-card);
    color:var(--sn-text-main);
    border-radius:18px;
    padding:20px;
    box-shadow:0 25px 60px rgba(0,0,0,.6);
    border:1px solid var(--sn-border);
}

.cookie-card h2{
    margin:0 0 10px;
    font-size:20px;
    font-weight:700;
    color:#fff;
}

.cookie-card p{
    margin:0 0 16px;
    line-height:1.5;
    color:var(--sn-text-muted);
}

.cookie-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

/* FIX: .btn NICHT global überschreiben -> nur innerhalb cookie-card */
.cookie-card .btn{
    padding:10px 16px;
    border-radius:14px;
    font-weight:600;
    cursor:pointer;
    border:1px solid var(--sn-border);
    background:#020617;
    color:var(--sn-text-main);
    transition:all .2s ease;

    /* verbessert Hover/Klickfläche */
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}

.cookie-card .btn.secondary:hover{
    background:#020617;
    border-color:var(--sn-accent);
    color:#fff;
}

.cookie-card .btn.primary{
    background:var(--sn-accent);
    border-color:var(--sn-accent);
    color:#020617;
}

.cookie-card .btn.primary:hover{
    background:var(--sn-accent-hover);
    border-color:var(--sn-accent-hover);
}

.cookie-link{
    display:inline-block;
    margin-top:12px;
    font-size:13px;
    color:var(--sn-accent);
    text-decoration:none;
}

.cookie-link:hover{
    text-decoration:underline;
}

.cookie-option{
    padding:12px 0;
    border-top:1px solid var(--sn-border);
}

.cookie-option:first-of-type{
    border-top:none;
}

.cookie-option label{
    display:flex;
    gap:10px;
    align-items:center;
    font-weight:600;
}

.cookie-option small{
    display:block;
    color:var(--sn-text-muted);
    margin-left:26px;
    margin-top:4px;
}

/* Legal */
.legal-page{
    background: linear-gradient(
            to bottom,
            #f1f5f9 0%,
            #f8fafc 40%,
            #ffffff 100%
    );
    min-height:100vh;
    padding:80px 0 100px;
    color:#0f172a;
}

.legal-container{
    background:#ffffff;
    border-radius:18px;
    padding:40px;
    box-shadow:0 20px 40px rgba(0,0,0,.08);
}

.legal-page h1{
    font-size:2.4rem;
    margin-bottom:30px;
    color:#0f172a;
}

.legal-page h2{
    font-size:1.3rem;
    margin:40px 0 12px;
    color:#2563eb;
}

.legal-page p{
    line-height:1.7;
    color:#334155;
}

/* Sections als dezente Blöcke */
.legal-page section{
    padding: 18px 0;
    border-top: 1px solid rgba(15,23,42,.08);
}

.legal-page section:first-of-type{
    border-top: none;
    padding-top: 0;
}

/* “Cookie-Einstellungen ändern” wie Button-Link */
.legal-page a[onclick*="openCookieSettings"]{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid rgba(37,99,235,.20);
    text-decoration: none;
}

.legal-page a[onclick*="openCookieSettings"]:hover{
    background: #dbeafe;
    text-decoration: none;
}

.legal-page a{
    color:#2563eb;
}

.legal-page a:hover{
    text-decoration:underline;
}

/* Saubere Listenoptik (falls du ul/li verwendest) */
.legal-page ul{
    margin: 10px 0 0;
    padding-left: 18px;
    color: #334155;
}

.legal-page li{
    margin: 6px 0;
}

/* Mobile: weniger Padding */
@media (max-width: 576px){
    .legal-container{
        padding: 26px 20px;
        border-radius: 18px;
    }
    .legal-page{
        padding: 95px 0 90px;
    }
}

/* ===== Legal Address / Verantwortlicher ===== */
.legal-address{
    display: grid;
    gap: 4px;
    margin-top: 14px;

    padding: 20px 22px;
    border-radius: 18px;

    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 12px 30px rgba(15,23,42,.08);

    font-style: normal; /* <address> nicht kursiv */
    color: #334155;
}

.legal-company{
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.legal-person{
    font-weight: 600;
    color: #1e293b;
}

.legal-address a{
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.legal-address a:hover{
    text-decoration: underline;
}

.legal-sep{
    height: 1px;
    background: rgba(15,23,42,.08);
    margin: 8px 0;
}
