/*
Theme Name: DEG Electronics
Theme URI: https://deg-germany.com
Author: Digital Electronic Gebert
Author URI: https://deg-germany.com
Description: Professional theme for DEG – Digital Electronic Gebert semiconductor distribution.
Version: 2.0.1
License: Proprietary
Text Domain: deg-electronics
*/


        /* Background Images - Subtle & Professional */
        .bg-image {
            position: relative;
            overflow: hidden;
        }
        
        .bg-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-size: cover;
            background-position: center;
            opacity: 0.15;
            z-index: 0;
        }
        
        .bg-image > * {
            position: relative;
            z-index: 1;
        }
        
        /* Hero - Chip Macro */
        .hero-bg::before {
            background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80');
            opacity: 0.2;
        }
        
        /* Industries - Tech/Data */
        .industries-bg::before {
            background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80');
            opacity: 0.08;
        }
        
        /* Services - Warehouse/Logistics */
        .services-bg::before {
            background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1920&q=80');
            opacity: 0.12;
        }
        
        /* Stats - Circuit Board */
        .stats-bg::before {
            background-image: url('https://images.unsplash.com/photo-1517077304055-6e89abbf09b0?w=1920&q=80');
            opacity: 0.06;
        }
        
        /* Location - Germany/Industrial */
        .location-bg::before {
            background-image: url('https://images.unsplash.com/photo-1565008447742-97f6f38c985c?w=1920&q=80');
            opacity: 0.15;
        }
        
        :root {
            --black: #000000;
            --white: #FFFFFF;
            --gray-100: #F5F5F5;
            --gray-800: #262626;
            --accent: #3E68FF;
            --success: #10B981;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 18px;
            line-height: 1.6;
            color: var(--gray-800);
            background: var(--white);
        }
        
        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 99999;
            padding: 24px 48px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(10px);
        }
        
        .logo {
            font-size: 24px;
            font-weight: 900;
            color: var(--white);
            text-decoration: none;
        }
        
        .nav-links {
            display: flex;
            gap: 32px;
            list-style: none;
        }
        
        .nav-links a {
            color: var(--white);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            opacity: 0.8;
            transition: opacity 0.2s;
        }
        
        .nav-links a:hover {
            opacity: 1;
        }
        
        /* Language Switch — IAE-Design */
        .lang-switch {
            margin-left: 8px;
            display: flex;
            gap: 6px;
        }

        .lang-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 6px;
            color: white;
            text-decoration: none;
            font-size: 0.875rem;
            transition: background 0.2s, border-color 0.2s;
        }

        .lang-btn:hover {
            background: rgba(255,255,255,0.2);
            border-color: rgba(255,255,255,0.3);
        }

        .lang-btn.active {
            background: var(--accent);
            border-color: var(--accent);
        }

        .lang-flag {
            width: 20px;
            height: 14px;
            display: inline-block;
            background-size: cover;
            background-position: center;
            border-radius: 2px;
            flex-shrink: 0;
        }
        .lang-flag-de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='1' y='0' fill='%23000'/%3E%3Crect width='5' height='1' y='1' fill='%23D00'/%3E%3Crect width='5' height='1' y='2' fill='%23FFCE00'/%3E%3C/svg%3E"); }
        .lang-flag-gb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M30 15h30v15zM30 15H0V0zM30 15v15H0zM30 15V0h30z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23b)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E"); }
        .lang-text { font-weight: 600; font-size: 0.875rem; }

        @media (max-width: 768px) {
            .lang-switch { margin-left: 0; margin-top: 12px; }
        }
        
        /* Sections */
        section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 120px 48px;
        }
        
        .dark {
            background: var(--black);
            color: var(--white);
        }
        
        .light {
            background: var(--white);
            color: var(--gray-800);
        }
        
        .gray {
            background: var(--gray-100);
            color: var(--gray-800);
        }
        
        .container {
            max-width: 1200px;
            width: 100%;
            text-align: center;
        }
        
        h1 {
            font-size: 72px;
            font-weight: 900;
            line-height: 1.1;
            letter-spacing: -0.02em;
            margin-bottom: 24px;
        }
        
        h2 {
            font-size: 48px;
            font-weight: 900;
            line-height: 1.1;
            letter-spacing: -0.02em;
            margin-bottom: 24px;
        }
        
        h3 {
            font-size: 20px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 16px;
        }
        
        .subline {
            font-size: 20px;
            opacity: 0.8;
            max-width: 600px;
            margin: 0 auto 48px;
        }
        
        /* Buttons */
        .btn-group {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            padding: 16px 32px;
            font-size: 16px;
            font-weight: 500;
            text-decoration: none;
            border-radius: 4px;
            transition: all 0.2s;
            border: 2px solid transparent;
        }
        
        .btn-primary {
            background: var(--white);
            color: var(--black);
            border-color: var(--white);
        }
        
        .btn-primary:hover {
            background: transparent;
            color: var(--white);
        }
        
        .btn-secondary {
            background: transparent;
            color: var(--white);
            border-color: var(--white);
        }
        
        .btn-secondary:hover {
            background: var(--white);
            color: var(--black);
        }
        
        .btn-accent {
            background: var(--accent);
            color: var(--white);
            border-color: var(--accent);
        }
        
        /* Cards */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 32px;
            margin-top: 48px;
            text-align: left;
        }
        
        .card {
            background: var(--gray-800);
            color: var(--white);
            padding: 48px 32px;
            border-radius: 8px;
            transition: transform 0.3s;
            display: flex;
            flex-direction: column;
        }
        
        .card:hover {
            transform: translateY(-8px);
        }
        
        .card-light {
            background: var(--white);
            color: var(--gray-800);
            border: 1px solid #E5E5E5;
            display: flex;
            flex-direction: column;
        }

        .card-light h3 {
            min-height: 3em;
        }
        
        .card p {
            opacity: 0.8;
            margin-bottom: 24px;
            flex: 1;
        }
        
        .card-link {
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
        }

        .card-btn {
            display: inline-block;
            margin-top: 8px;
            padding: 10px 22px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: 4px;
            border: 1.5px solid rgba(255,255,255,0.4);
            color: var(--white);
            transition: all 0.2s;
        }

        .card-btn:hover {
            background: var(--white);
            color: var(--black);
            border-color: var(--white);
        }

        .card-btn-dark {
            display: inline-block;
            margin-top: 8px;
            padding: 10px 22px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: 4px;
            border: 1.5px solid rgba(0,0,0,0.35);
            color: var(--gray-800);
            transition: all 0.2s;
        }

        .card-btn-dark:hover {
            background: var(--gray-800);
            color: var(--white);
            border-color: var(--gray-800);
        }
        
        .profit-badge {
            color: var(--success);
            font-size: 20px;
        }
        
        /* Stats */
        .stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 48px;
            text-align: center;
        }
        
        .stat-number {
            font-size: 72px;
            font-weight: 900;
            line-height: 1;
            margin-bottom: 8px;
        }
        
        .stat-label {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            opacity: 0.6;
        }
        
        /* USP List */
        .usp-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            text-align: left;
            max-width: 900px;
            margin: 48px auto 0;
        }
        
        .usp-item {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .usp-check {
            color: var(--success);
            font-size: 24px;
        }
        
        /* Footer */
        footer {
            background: var(--black);
            color: var(--white);
            padding: 80px 48px 40px;
            text-align: center;
        }
        
        .footer-company {
            opacity: 0.6;
            font-size: 14px;
            margin-bottom: 16px;
        }
        
        .footer-contact {
            margin-bottom: 32px;
        }
        
        .footer-contact a {
            color: var(--white);
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 24px;
        }
        
        .footer-links a {
            color: var(--white);
            text-decoration: none;
            opacity: 0.6;
            font-size: 14px;
        }
        
        .footer-links a:hover {
            opacity: 1;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            h1 { font-size: 48px; }
            h2 { font-size: 36px; }
            .stat-number { font-size: 48px; }
            section { padding: 80px 24px; }
            nav { padding: 16px 24px; }
            .nav-links { display: none; }
            .stats { grid-template-columns: 1fr; gap: 32px; }
        }
    


        /* Overlay blockiert Seite vollständig */
        #cookie-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            z-index: 999999;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 0;
        }

        #cookie-overlay.hidden {
            display: none;
        }

        /* Banner am unteren Rand, nimmt volle Breite ein */
        #cookie-banner {
            background: #0f1117;
            border-top: 3px solid #3E68FF;
            width: 100%;
            padding: 32px 48px;
            color: #e2e8f0;
            font-family: 'Inter', system-ui, sans-serif;
            box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
        }

        #cookie-banner h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: #fff;
            margin: 0 0 12px 0;
        }

        #cookie-banner p {
            font-size: 0.9rem;
            line-height: 1.6;
            color: #a0aec0;
            margin: 0 0 8px 0;
            max-width: 780px;
        }

        #cookie-banner a {
            color: #3E68FF;
            text-decoration: underline;
        }

        .cookie-actions {
            display: flex;
            gap: 12px;
            margin-top: 24px;
            flex-wrap: wrap;
            align-items: center;
        }

        /* Ablehnen = gleich groß, gleich sichtbar (DSGVO: kein Dark Pattern) */
        .cookie-btn-accept {
            background: #3E68FF;
            color: #fff;
            border: 2px solid #3E68FF;
            padding: 12px 28px;
            border-radius: 6px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }
        .cookie-btn-accept:hover { background: #2d55e0; border-color: #2d55e0; }

        .cookie-btn-decline {
            background: transparent;
            color: #e2e8f0;
            border: 2px solid rgba(255,255,255,0.3);
            padding: 12px 28px;
            border-radius: 6px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: border-color 0.2s, color 0.2s;
        }
        .cookie-btn-decline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

        .cookie-note {
            font-size: 0.78rem;
            color: #718096;
            margin-top: 12px;
            margin-bottom: 0 !important;
        }

        /* Scrollsperre wenn Banner aktiv */
        body.cookie-pending {
            overflow: hidden;
        }

        @media (max-width: 600px) {
            #cookie-banner { padding: 24px 20px; }
            .cookie-actions { flex-direction: column; }
            .cookie-btn-accept, .cookie-btn-decline { width: 100%; text-align: center; }
        }
    