/* SafeSolutions365 – style.css with Dark Mode */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --navy: #0B1D3A; --navy-light: #132B52;
  --teal: #00A5B5; --teal-dark: #008A98; --teal-glow: #00D4E8;
  --accent-orange: #FF8C42;
  --bg: #FFFFFF; --bg-alt: #F7F8FA; --bg-card: #FFFFFF;
  --border: #EEF0F4; --border-hover: rgba(0,165,181,0.25);
  --heading: #0B1D3A; --text: #2A2F3C; --text-secondary: #545B6A; --text-muted: #8B92A0;
  --ill-bg: #F0F2F6; --ill-primary: #0B1D3A; --ill-accent: #00A5B5; --ill-muted: #8B92A0;
  --shadow: 0 20px 60px rgba(11,29,58,0.1); --shadow-card: 0 8px 30px rgba(0,0,0,0.06);
  color-scheme: light dark;
}
[data-theme="dark"] {
    --bg: #0D1117; --bg-alt: #161B22; --bg-card: #1C2128;
    --border: #2D333B; --border-hover: rgba(0,165,181,0.35);
    --heading: #E6EDF3; --text: #C9D1D9; --text-secondary: #8B949E; --text-muted: #6E7681;
    --ill-bg: #161B22; --ill-primary: #00A5B5; --ill-accent: #00D4E8; --ill-muted: #6E7681;
    --shadow: 0 20px 60px rgba(0,0,0,0.4); --shadow-card: 0 8px 30px rgba(0,0,0,0.2);
}
html { scroll-behavior: smooth; }
body { overflow-x:hidden; font-family: 'DM Sans', Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; }

/* NAV */
.nav { position:fixed; top:0; left:0; right:0; z-index:1000; background:rgba(11,29,58,0.92); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border-bottom:1px solid rgba(0,165,181,0.12); transition:0.35s ease; }
.nav.scrolled { background:rgba(11,29,58,0.97); box-shadow:0 4px 30px rgba(0,0,0,0.25); }
.nav-inner { max-width:1280px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:0 2rem; height:72px; }
.nav-logo { text-decoration:none; display:flex; align-items:center; }
.logo-img { height:40px; width:auto; }
/* Logo auf dunklem Nav/Footer: weißer Hintergrund als Badge */
.nav .logo-img, footer .logo-img {
  background: rgba(255,255,255,0.95); border-radius:8px; padding:4px 10px;
}

/* Theme Toggle */
.theme-toggle {
  background:none; border:1px solid rgba(255,255,255,0.2); border-radius:10px;
  color:rgba(255,255,255,0.7); cursor:pointer; padding:0.4rem 0.6rem;
  font-size:1.1rem; line-height:1; transition:0.3s ease; display:flex; align-items:center;
  margin-right:0.75rem;
}
.theme-toggle:hover { border-color:rgba(255,255,255,0.5); color:#fff; background:rgba(255,255,255,0.08); }
/* Toggle: light mode shows moon, dark mode shows sun */
.theme-toggle .icon-sun { display:none; }
.theme-toggle .icon-moon { display:inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display:inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display:none; }
.nav-links { display:flex; gap:0.25rem; list-style:none; }
.nav-links a { text-decoration:none; color:rgba(255,255,255,0.7); font-size:0.88rem; font-weight:500; padding:0.5rem 0.9rem; border-radius:8px; transition:0.3s ease; }
.nav-links a:hover, .nav-links a.active { color:#fff; background:rgba(0,165,181,0.15); }
.nav-cta { background:var(--teal); color:#fff; padding:0.6rem 1.4rem; border-radius:10px; text-decoration:none; font-weight:600; font-size:0.88rem; transition:0.3s ease; }
.nav-cta:hover { background:var(--teal-dark); }
.burger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
.burger span { width:24px; height:2px; background:#fff; border-radius:2px; }
.mobile-menu { display:none; position:fixed; top:72px; left:0; right:0; background:var(--navy); padding:1rem; z-index:999; box-shadow:0 10px 40px rgba(0,0,0,0.4); border-bottom-left-radius:16px; border-bottom-right-radius:16px; }
.mobile-menu.open { display:flex; flex-direction:column; gap:0.2rem; }
.mobile-menu a { color:rgba(255,255,255,0.8); text-decoration:none; font-size:0.95rem; padding:0.7rem 1rem; border-radius:8px; transition:0.3s ease; }
.mobile-menu a:hover { background:rgba(0,165,181,0.15); color:#fff; }
@media(max-width:960px) { .nav-links, .nav .nav-cta { display:none; } .burger { display:flex; } }

/* HERO */
.hero { min-height:100vh; display:flex; align-items:center; background:linear-gradient(160deg,var(--navy) 0%,#0F2847 50%,#0A1E3C 100%); padding:5rem 2rem; padding-top:calc(72px + 3rem); }
.hero-grid { max-width:1280px; margin:0 auto; width:100%; display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
.hero-badge { display:inline-block; background:rgba(0,165,181,0.12); border:1px solid rgba(0,165,181,0.25); padding:0.4rem 1rem; border-radius:50px; color:var(--teal-glow); font-size:0.82rem; font-weight:500; margin-bottom:1.5rem; }
.hero h1 { font-family:Georgia,serif; font-weight:400; font-size:clamp(2.4rem,5vw,3.4rem); color:#fff; line-height:1.15; margin-bottom:1.5rem; }
.hero h1 em { font-style:italic; color:var(--teal-glow); }
.hero-text { color:rgba(255,255,255,0.6); font-size:1.08rem; line-height:1.7; margin-bottom:2.5rem; max-width:520px; }
.hero-buttons { display:flex; gap:1rem; flex-wrap:wrap; }
.hero-illustration { border-radius:20px; overflow:hidden; }
.hero-illustration svg { width:100%; height:auto; display:block; }

/* BUTTONS */
.btn-primary { background:var(--teal); color:#fff; padding:0.9rem 2rem; border-radius:12px; text-decoration:none; font-weight:600; font-size:0.95rem; display:inline-block; transition:0.3s ease; border:none; cursor:pointer; }
.btn-primary:hover { background:var(--teal-dark); transform:translateY(-1px); box-shadow:0 8px 24px rgba(0,165,181,0.3); }
.btn-secondary { background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.25); padding:0.9rem 2rem; border-radius:12px; text-decoration:none; font-weight:500; font-size:0.95rem; transition:0.3s ease; }
.btn-secondary:hover { border-color:rgba(255,255,255,0.5); background:rgba(255,255,255,0.05); }

/* STATS */
.stats-bar { background:var(--bg-card); max-width:1280px; margin:-3rem auto 0; border-radius:20px; box-shadow:var(--shadow); border:1px solid var(--border); display:grid; grid-template-columns:repeat(4,1fr); padding:2.5rem 2rem; position:relative; z-index:2; box-sizing:border-box; }
.stat { text-align:center; }
.stat-number { font-family:Georgia,serif; font-size:2.4rem; color:var(--heading); }
.stat-number span { color:var(--teal); }
.stat-label { color:var(--text-muted); font-size:0.85rem; margin-top:0.3rem; }

/* SECTIONS */
section { padding:5rem 2rem; overflow-x:hidden; }
.section-inner { max-width:1280px; margin:0 auto; overflow:hidden; }
.section-gray { background:var(--bg-alt); }
.section-tag { display:inline-block; color:var(--teal); font-size:0.82rem; font-weight:600; text-transform:uppercase; letter-spacing:0.1em; margin-bottom:1rem; padding-left:36px; position:relative; }
.section-tag::before { content:''; width:28px; height:2px; background:var(--teal); position:absolute; left:0; top:50%; transform:translateY(-50%); }
.section-title { font-family:Georgia,serif; font-size:clamp(1.8rem,4vw,2.6rem); color:var(--heading); font-weight:400; line-height:1.2; margin-bottom:1.2rem; }
.section-title em { font-style:italic; color:var(--teal); }
.section-desc { color:var(--text-secondary); font-size:1.05rem; max-width:640px; line-height:1.75; margin-bottom:3rem; }

/* CONTENT BLOCK */
.content-block { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; margin-bottom:4rem; }
.content-block.reverse .content-text { order:2; }
.content-block.reverse .content-image { order:1; }
.content-block h2 { font-family:Georgia,serif; font-size:2rem; color:var(--heading); font-weight:400; margin-bottom:1rem; line-height:1.25; }
.content-block h2 em { font-style:italic; color:var(--teal); }
.content-block p { color:var(--text-secondary); line-height:1.8; margin-bottom:1rem; }
.content-image svg { width:100%; height:auto; display:block; border-radius:20px; }
.content-image img { max-width:100%; height:auto; }
.content-image { min-width:0; }
.content-text { min-width:0; }

/* FEATURE LIST */
.feature-list { list-style:none; display:flex; flex-direction:column; gap:0.75rem; margin:1.5rem 0; }
.feature-list li { display:flex; align-items:flex-start; gap:0.75rem; color:var(--text-secondary); font-size:0.95rem; line-height:1.6; padding-left:28px; position:relative; word-break:break-word; }
.feature-list li::before { content:'✓'; color:var(--teal); font-weight:700; position:absolute; left:0; top:0; }

/* CARDS */
.cards-row { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; margin:2rem 0; }
.cards-row.cols-3 { grid-template-columns:repeat(3,1fr); }
.card { background:var(--bg-card); border:1px solid var(--border); border-radius:18px; padding:2.2rem; transition:0.3s ease; text-decoration:none; color:inherit; display:block; position:relative; overflow:hidden; }
.card::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--teal); transform:scaleX(0); transition:0.3s ease; transform-origin:left; }
.card:hover { border-color:var(--border-hover); box-shadow:var(--shadow-card); transform:translateY(-2px); }
.card:hover::after { transform:scaleX(1); }
.card-icon { width:52px; height:52px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:1.2rem; }
.card-icon.teal { background:rgba(0,165,181,0.1); }
.card-icon.orange { background:rgba(255,140,66,0.1); }
.card-icon.navy-icon { background:rgba(11,29,58,0.08); }
[data-theme="dark"] .card-icon.navy-icon { background:rgba(0,165,181,0.08); }
.card h3 { font-size:1.1rem; font-weight:600; color:var(--heading); margin-bottom:0.6rem; }
.card p { color:var(--text-secondary); font-size:0.92rem; line-height:1.7; }
.card-link { display:inline-block; margin-top:1rem; color:var(--teal); font-weight:600; font-size:0.88rem; text-decoration:none; }

/* CTA BAND */
.cta-band { background:linear-gradient(135deg,var(--navy) 0%,#132B52 100%); border-radius:24px; padding:4rem; text-align:center; margin:3rem 0; position:relative; overflow:hidden; max-width:100%; box-sizing:border-box; }
.cta-band::before { content:''; position:absolute; top:-50%; right:-20%; width:500px; height:500px; background:radial-gradient(circle,rgba(0,165,181,0.12),transparent 70%); border-radius:50%; }
.cta-band h2 { font-family:Georgia,serif; font-size:2.2rem; color:#fff; margin-bottom:1rem; position:relative; }
.cta-band h2 span { color:var(--teal-glow); }
.cta-band p { color:rgba(255,255,255,0.6); margin-bottom:2rem; position:relative; }
.cta-band .btn-primary { position:relative; }

/* PAGE HERO */
.page-hero { background:linear-gradient(160deg,var(--navy) 0%,#0F2847 100%); padding:8rem 2rem 5rem; }
.page-hero-inner { max-width:1280px; margin:0 auto; }
.page-hero h1 { font-family:Georgia,serif; font-size:clamp(2rem,4.5vw,2.8rem); color:#fff; font-weight:400; line-height:1.15; margin-bottom:1.2rem; }
.page-hero h1 em { font-style:italic; color:var(--teal-glow); }
.page-hero p { color:rgba(255,255,255,0.6); font-size:1.1rem; max-width:640px; line-height:1.7; }
.page-hero .section-tag { color:var(--teal-glow); }

/* PROCESS STEPS */
.process-steps { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; margin:3rem 0; }
.step-card { background:var(--bg-card); border:1px solid var(--border); border-radius:18px; padding:2rem; position:relative; }
.step-num { font-family:Georgia,serif; font-size:3rem; color:rgba(0,165,181,0.12); position:absolute; top:1rem; right:1.5rem; }
.step-card h4 { font-size:1rem; font-weight:600; color:var(--heading); margin-bottom:0.6rem; }
.step-card p { color:var(--text-secondary); font-size:0.9rem; line-height:1.7; }

/* CONTACT */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; }
.contact-item { display:flex; gap:1rem; align-items:flex-start; margin-bottom:1.5rem; }
.contact-icon { width:48px; height:48px; border-radius:12px; background:rgba(0,165,181,0.08); color:var(--teal); display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0; }
.contact-item h4 { font-size:0.95rem; font-weight:600; color:var(--heading); margin-bottom:0.3rem; }
.contact-item p { color:var(--text-secondary); font-size:0.9rem; }
.contact-form { background:var(--bg-alt); border:1px solid var(--border); border-radius:20px; padding:2.5rem; }
.form-group { margin-bottom:1.2rem; }
.form-group label { display:block; font-size:0.85rem; font-weight:500; color:var(--text-secondary); margin-bottom:0.4rem; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:0.85rem 1rem; border-radius:10px; border:1px solid var(--border); font-family:'DM Sans',sans-serif; font-size:0.95rem; background:var(--bg); color:var(--text); transition:0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(0,165,181,0.15); }
.form-group textarea { resize:vertical; min-height:120px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* LEGAL */
.legal-content h2 { font-family:Georgia,serif; font-size:1.4rem; color:var(--heading); margin:2.5rem 0 1rem; font-weight:400; padding-bottom:0.5rem; border-bottom:1px solid var(--border); }
.legal-content h2:first-of-type { margin-top:0; }
.legal-content p { color:var(--text-secondary); line-height:1.85; margin-bottom:1rem; font-size:0.95rem; }
.legal-content strong { color:var(--heading); }
.legal-content ul, .legal-content ol { padding-left:1.5rem; margin:1rem 0; color:var(--text-secondary); font-size:0.95rem; line-height:1.85; }
.legal-content li { margin-bottom:0.4rem; }
.legal-content a { color:var(--teal); text-decoration:none; }
.legal-content a:hover { text-decoration:underline; }

/* FOOTER */
footer { background:var(--navy); color:rgba(255,255,255,0.5); padding:4rem 2rem 2rem; }
.footer-inner { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; padding-bottom:3rem; border-bottom:1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size:0.88rem; line-height:1.7; margin-top:1rem; }
.footer-col h4 { color:#fff; font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:1rem; }
.footer-col a { display:block; color:rgba(255,255,255,0.5); text-decoration:none; font-size:0.88rem; padding:0.3rem 0; transition:0.3s ease; }
.footer-col a:hover { color:var(--teal-glow); }
.footer-bottom { max-width:1280px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; padding-top:2rem; font-size:0.8rem; }

/* RESPONSIVE */
@media(max-width:960px) {
  .hero-grid, .content-block, .contact-grid { grid-template-columns:1fr; gap:2rem; }
  .content-block.reverse .content-text { order:1; }
  .content-block.reverse .content-image { order:2; }
  .cards-row, .cards-row.cols-3 { grid-template-columns:1fr; }
  .stats-bar { grid-template-columns:repeat(2,1fr); gap:1rem; margin-top:-1.5rem; padding:1.5rem; }
  .process-steps { grid-template-columns:1fr; }
  .footer-inner { grid-template-columns:1fr 1fr; }
  section { padding:3rem 1.5rem; }
  .hero { padding:calc(72px + 2rem) 1.5rem 3rem; min-height:auto; }
  .hero-grid { text-align:center; }
  .hero-grid .hero-text { margin-left:auto; margin-right:auto; }
  .hero-grid .hero-buttons { justify-content:center; }
  .hero-grid .hero-badge { margin-left:auto; margin-right:auto; }
  .hero-grid [style*="flex-direction:column"] img { max-width:260px !important; max-height:260px !important; }
  .hero h1 { font-size:1.8rem; }
  .hero-text { font-size:0.95rem; margin-bottom:1.5rem; }

  .section-title { font-size:1.5rem; }
  .content-block h2 { font-size:1.4rem; }
  .content-block { margin-bottom:2rem; gap:1.5rem; }
  .cta-band { padding:2.5rem 1.5rem; }
  .cta-band h2 { font-size:1.5rem; }
  .page-hero { padding:6rem 1.5rem 3rem; }
  .page-hero h1 { font-size:1.6rem; }
}
@media(max-width:480px) {
  .stats-bar { grid-template-columns:1fr 1fr; gap:0.75rem; padding:1.2rem; }
  .stat-number { font-size:1.8rem; }
  .stat-label { font-size:0.75rem; }
  .footer-inner { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .hero-buttons { flex-direction:column; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { text-align:center; }
  .hero h1 { font-size:1.5rem; }
  .hero-badge { font-size:0.72rem; padding:0.3rem 0.8rem; }
  .hero-grid [style*="flex-direction:column"] img { max-width:200px !important; max-height:200px !important; }

  .card { padding:1.5rem; }
  .section-title { font-size:1.3rem; }
  .content-block h2 { font-size:1.25rem; }
  .section-desc { font-size:0.92rem; }
  .cta-band h2 { font-size:1.3rem; }
  .page-hero h1 { font-size:1.4rem; }
  .page-hero p { font-size:0.95rem; }
  .contact-form { padding:1.5rem; }
}
