﻿/* css/style.css – Vollständige finale Version */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #e8f0fe;
  color: #0a2540;
  overflow-x: hidden;
}

/* Canvas-Hintergrund – immer im Hintergrund */
canvas#background-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  padding: 60px 40px;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 105, 255, 0.25);
  animation: fadeUp 1.2s ease;
  max-width: 900px;
  width: 90%;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.4));
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #0056ff;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.4rem;
  color: #007bff;
  margin: 0 0 35px;
  font-weight: 500;
}

/* Hero Text */
.hero-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 20px auto;
  max-width: 700px;
  color: #333;
}

/* Loader */
.loader {
  width: 80px;
  height: 80px;
  margin: 40px auto;
  border: 8px solid rgba(0, 123, 255, 0.2);
  border-top: 8px solid #007bff;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  box-shadow: 0 0 30px rgba(0, 123, 255, 0.35);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-main {
  padding: 16px 34px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
  transition: 0.3s;
}

.btn-main:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 45px rgba(0, 123, 255, 0.6);
}

.btn-outline {
  padding: 16px 34px;
  border: 2px solid #007bff;
  border-radius: 50px;
  text-decoration: none;
  color: #007bff;
  font-weight: 600;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #007bff;
  color: white;
  transform: scale(1.05);
}

/* FEATURES */
.features {
  padding: 120px 8%;
  text-align: center;
}

.features h2 {
  font-size: 2.6rem;
  margin-bottom: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 35px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  padding: 35px 25px;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0, 105, 255, 0.18);
  transition: 0.4s;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0, 105, 255, 0.35);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
  padding-top: 120px;
}

.cta-content {
  text-align: center;
  padding: 0 10% 80px;
}

.cta h2 {
  font-size: 2.8rem;
}

.cta p {
  margin-top: 20px;
  font-size: 1.2rem;
}

/* Datenschutz / Legal Bereich */
.legal-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 6%;
}

.legal-box {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 50px 40px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0,105,255,0.25);
  animation: fadeUp 1s ease;
}

.legal-box h2 {
  color: #0056ff;
  margin-bottom: 25px;
  font-size: 2.4rem;
}

.legal-box h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  color: #007bff;
}

.legal-box p {
  line-height: 1.7;
  color: #333;
}

.home-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 14px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg,#007bff,#00c6ff);
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,123,255,0.4);
  transition: 0.3s;
}

.home-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 45px rgba(0,123,255,0.6);
}

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE – ALLGEMEIN
   ========================= */

@media (max-width: 768px) {

  .hero-content { padding: 40px 25px; }
  h1 { font-size: 2.8rem; }
  .subtitle { font-size: 1.2rem; }
  .hero-logo { width: 100px; }
  .loader { width: 70px; height: 70px; border-width: 6px; }

  /* Datenschutz Mobile Fix */
  .legal-container {
    padding: 80px 5% 60px;
    align-items: flex-start;
  }

  .legal-box {
    padding: 35px 22px;
    border-radius: 20px;
  }

  .legal-box h2 {
    font-size: 1.9rem;
    text-align: center;
  }

  .legal-box h3 { font-size: 1.15rem; }
  .legal-box p { font-size: 1.05rem; }

  .home-btn {
    width: 100%;
    text-align: center;
    padding: 14px 0;
  }
}

@media (max-width: 480px) {

  h1 { font-size: 2.4rem; }
  .hero-content p { font-size: 1.1rem; }
  .hero-buttons { flex-direction: column; gap: 15px; }

  /* Datenschutz Extra Small */
  .legal-container { padding: 60px 5% 50px; }
  .legal-box { padding: 28px 18px; }
  .legal-box h2 { font-size: 1.6rem; }
  .legal-box h3 { font-size: 1.05rem; }
  .legal-box p { font-size: 1rem; }
}
