/* ===== PC-FUTURE GmbH — Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&family=Merriweather:wght@700;900&display=swap');

:root {
    --primary: #0B3D91;
    --primary-light: #1565C0;
    --primary-dark: #062654;
    --accent: #00B894;
    --accent-dark: #009B7D;
    --warning: #E17055;
    --bg: #F4F6FA;
    --bg-white: #FFFFFF;
    --bg-dark: #0A1628;
    --card: #FFFFFF;
    --text: #1A2332;
    --text-dim: #5A6A7A;
    --text-light: #8899AA;
    --border: #DEE4ED;
    --shadow-sm: 0 2px 8px rgba(11,61,145,0.06);
    --shadow-md: 0 4px 20px rgba(11,61,145,0.08);
    --shadow-lg: 0 12px 40px rgba(11,61,145,0.12);
    --radius: 12px;
    --max-width: 1140px;
    --nav-height: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--bg-dark);
    color: #CCD6E0;
    padding: 24px;
    display: none;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
    font-size: 0.92rem;
    line-height: 1.6;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
    max-width: var(--max-width); margin: 0 auto;
}
.cookie-inner p { margin-bottom: 16px; }
.cookie-inner a { color: var(--accent); text-decoration: underline; }
.cookie-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cookie-option { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.cookie-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.cookie-option label { cursor: pointer; }
.cookie-option .required { opacity: 0.5; font-size: 0.8rem; }
.cookie-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn {
    padding: 10px 24px; border-radius: 8px; border: none; cursor: pointer;
    font-family: inherit; font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
}
.cookie-btn-accept { background: var(--accent); color: #fff; }
.cookie-btn-accept:hover { background: var(--accent-dark); }
.cookie-btn-essential { background: transparent; color: #CCD6E0; border: 1px solid #3A4A5A; }
.cookie-btn-essential:hover { border-color: #8899AA; color: #fff; }
.cookie-btn-decline { background: transparent; color: #8899AA; border: 1px solid transparent; font-size: 0.85rem; }
.cookie-btn-decline:hover { color: #CCD6E0; }

/* ===== NAVIGATION ===== */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 44px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name {
    font-family: 'Merriweather', serif; font-weight: 900;
    font-size: 1.15rem; color: var(--primary); line-height: 1.2;
}
.nav-brand-tagline { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; letter-spacing: 0.5px; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
    display: block; padding: 8px 16px; border-radius: 8px;
    color: var(--text); font-size: 0.92rem; font-weight: 500;
    transition: background 0.2s, color 0.2s; text-decoration: none;
}
.nav-menu a:hover, .nav-menu a.active {
    background: rgba(11,61,145,0.06); color: var(--primary);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger::after {
    content: '▾'; margin-left: 4px; font-size: 0.7em;
}
.nav-dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 8px;
    min-width: 280px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all 0.25s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
    padding: 10px 14px; border-radius: 8px; font-size: 0.88rem;
    white-space: nowrap;
}

/* Mobile menu */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; border-radius: 8px;
    align-items: center; justify-content: center;
    position: relative; z-index: 1002;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--text);
    transition: all 0.3s; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 2px;
    background: var(--text); transition: all 0.3s;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* Mobile overlay menu */
#mobileMenu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid #DEE4ED;
    padding: 0;
    margin: 0;
}
#mobileMenu.open {
    display: block;
}
#mobileMenu a {
    display: block;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1A2332;
    text-decoration: none;
    border-bottom: 1px solid #DEE4ED;
}
#mobileMenu a:hover,
#mobileMenu a:active {
    background: #F0F4FF;
    color: #0B3D91;
}
#mobileMenu a.active {
    color: #0B3D91;
    background: #F0F4FF;
}
#mobileMenu .mobile-sub {
    display: none;
    background: #F4F6FA;
}
#mobileMenu .mobile-sub.open {
    display: block;
}
#mobileMenu .mobile-sub a {
    padding: 16px 24px 16px 48px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #5A6A7A;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
#mobileMenu .mobile-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
#mobileMenu .mobile-dropdown-btn .arrow {
    font-size: 0.7em;
    transition: transform 0.3s;
    margin-left: 8px;
}
#mobileMenu .mobile-dropdown-btn.open .arrow {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-menu { display: none; }
}
@media (min-width: 901px) {
    #mobileMenu { display: none !important; }
}

/* ===== PAGE HERO BANNER ===== */
.page-hero {
    position: relative;
    margin-top: var(--nav-height);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 0;
    text-align: center; color: #fff;
    overflow: hidden;
    height: 260px;
    display: flex; align-items: center; justify-content: center;
}
.page-hero-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.page-hero-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(6,38,84,0.75) 0%, rgba(11,61,145,0.6) 100%);
}
.page-hero h1 {
    font-family: 'Merriweather', serif; font-size: 2rem; font-weight: 900;
    position: relative; z-index: 1;
}

/* ===== HOME HERO (SPECIAL) ===== */
.home-hero {
    margin-top: var(--nav-height);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 72px 24px 56px;
    position: relative; overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-hero-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    position: relative; z-index: 1;
}
.home-hero-text { color: #fff; }
.home-hero-text h1 {
    font-family: 'Merriweather', serif; font-size: 2.4rem; font-weight: 900;
    line-height: 1.25; margin-bottom: 20px;
}
.home-hero-text p { font-size: 1.05rem; opacity: 0.9; line-height: 1.7; margin-bottom: 28px; }
.home-hero-text .btn { display: inline-flex; }
.home-hero-img { display: flex; justify-content: center; }
.home-hero-img img {
    border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    max-width: 420px; width: 100%;
}

@media (max-width: 768px) {
    .home-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .home-hero-text h1 { font-size: 1.8rem; }
    .home-hero-img { order: -1; }
    .home-hero-img img { max-width: 320px; }
}

/* ===== CONTENT SECTIONS ===== */
.content-section { padding: 64px 24px; }
.content-section:nth-child(even) { background: var(--bg-white); }

.content-card {
    max-width: var(--max-width); margin: 0 auto;
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    padding: 48px;
}

.content-grid {
    display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start;
}
.content-grid.reverse { grid-template-columns: 1fr 340px; }
.content-grid img {
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    width: 100%; object-fit: cover;
}

@media (max-width: 768px) {
    .content-grid, .content-grid.reverse { grid-template-columns: 1fr; }
    .content-card { padding: 28px; }
}

.content-card h2 {
    font-family: 'Merriweather', serif; font-size: 1.6rem; font-weight: 700;
    color: var(--primary); margin-bottom: 16px; line-height: 1.3;
}
.content-card h3 {
    font-size: 1.15rem; font-weight: 700; color: var(--primary-dark);
    margin: 24px 0 10px;
}
.content-card p { margin-bottom: 14px; color: var(--text); }
.content-card ul, .content-card ol {
    margin: 10px 0 18px 24px; color: var(--text);
}
.content-card ul li, .content-card ol li { margin-bottom: 6px; }

/* ===== LEISTUNGEN CARDS ===== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px; max-width: var(--max-width); margin: 0 auto;
}
.service-card {
    background: var(--card); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-img {
    height: 200px; overflow: hidden;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card-body { padding: 28px; }
.service-card-body h3 {
    font-family: 'Merriweather', serif; font-size: 1.2rem;
    color: var(--primary); margin-bottom: 12px;
}
.service-card-body ul { list-style: none; margin: 0; padding: 0; }
.service-card-body li {
    padding: 6px 0; font-size: 0.92rem; color: var(--text);
    display: flex; align-items: flex-start; gap: 8px;
}
.service-card-body li::before {
    content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 8px; font-weight: 600;
    font-size: 0.95rem; cursor: pointer; border: none;
    font-family: inherit; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; }

/* ===== KONTAKT ===== */
.contact-info {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.contact-block h3 {
    font-size: 1rem; font-weight: 700; color: var(--primary);
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px;
}
.contact-block p { margin-bottom: 6px; font-size: 0.95rem; }
.contact-block a { color: var(--primary); font-weight: 500; }

.contact-form { margin-top: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: 0.95rem; background: var(--bg);
    transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
    .contact-info { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ===== SUPPORT ===== */
.support-benefits {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px; margin-top: 24px;
}
.support-benefit {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px; background: var(--bg); border-radius: var(--radius);
}
.support-benefit-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(11,61,145,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.support-benefit-text h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.support-benefit-text p { font-size: 0.85rem; color: var(--text-dim); margin: 0; }

/* ===== LEGAL PAGES (AGB, Datenschutz, Impressum) ===== */
.legal-content { max-width: var(--max-width); margin: 0 auto; }
.legal-content h1 {
    font-family: 'Merriweather', serif; font-size: 1.6rem; font-weight: 700;
    color: var(--primary); margin: 28px 0 14px;
}
.legal-content h2 {
    font-size: 1.2rem; font-weight: 700; color: var(--primary-dark);
    margin: 28px 0 10px; padding-top: 12px; border-top: 1px solid var(--border);
}
.legal-content h3 {
    font-size: 1.05rem; font-weight: 600; margin: 18px 0 8px;
}
.legal-content p { margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin: 8px 0 16px 24px; }
.legal-content li { margin-bottom: 4px; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-dark); color: rgba(255,255,255,0.7);
    padding: 56px 24px 28px;
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand h3 {
    font-family: 'Merriweather', serif; color: #fff;
    font-size: 1.1rem; margin-bottom: 10px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 {
    color: #fff; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 14px; font-weight: 600;
}
.footer-col a {
    display: block; color: rgba(255,255,255,0.55); font-size: 0.9rem;
    margin-bottom: 8px; transition: color 0.2s; text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    max-width: var(--max-width); margin: 28px auto 0;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 16px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.08); display: flex;
    align-items: center; justify-content: center;
    transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); }
.footer-social img { width: 18px; height: 18px; filter: brightness(0) invert(1); opacity: 0.7; }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ===== IMAGE CAROUSEL ===== */
.carousel { position: relative; max-width: 300px; margin: 0 auto; }
.carousel-track { overflow: hidden; border-radius: 24px; box-shadow: var(--shadow-lg); }
.carousel-track img { width: 100%; display: none; border-radius: 24px; }
.carousel-track img.active { display: block; }
.carousel-nav {
    display: flex; justify-content: center; gap: 8px; margin-top: 16px;
}
.carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border); border: none; cursor: pointer;
    transition: background 0.2s;
}
.carousel-dot.active { background: var(--primary); }
.carousel-arrows { display: flex; justify-content: space-between; position: absolute; top: 50%; left: -20px; right: -20px; transform: translateY(-50%); pointer-events: none; }
.carousel-arrow {
    pointer-events: all; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; color: var(--text);
    transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.carousel-arrow:hover { background: #fff; box-shadow: var(--shadow-md); }

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    background: var(--bg); border-radius: var(--radius); padding: 32px;
    border: 2px solid var(--border); margin-top: 32px;
}
.download-section h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 12px; }
.download-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; cursor: pointer; }
.download-checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.download-checkbox label { cursor: pointer; font-size: 0.92rem; line-height: 1.5; }
.download-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 8px; font-weight: 700;
    font-size: 1rem; cursor: pointer; border: none;
    font-family: inherit; transition: all 0.2s; text-decoration: none;
    background: var(--primary); color: #fff;
}
.download-btn:hover { background: var(--primary-light); color: #fff; }
.download-btn:disabled { background: var(--text-light); cursor: not-allowed; }

/* ===== GOOGLE MAP ===== */
.map-container {
    margin-top: 32px; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.map-container iframe { width: 100%; height: 350px; border: 0; display: block; }

/* ===== CAPTCHA ===== */
.captcha-row {
    display: flex; align-items: center; gap: 12px; margin: 16px 0;
    padding: 12px 16px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border);
}
.captcha-row input { width: 22px; height: 22px; accent-color: var(--primary); cursor: pointer; }
.captcha-row label { font-size: 0.92rem; cursor: pointer; }
