/* ===== Global Reset & Variables ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1116;
  --surface: #151822;
  --surface-2: #1b1f2b;
  --text: #e9eef5;
  --muted: #9aa3af;
  --accent: #00c6ff;
}

html, body {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #182031 0%, transparent 60%), var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Layout ===== */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.section h2 {
  text-align: center;
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 40px;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 1000;
  background: rgba(10, 12, 18, .35);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: .6rem; }
.logo { height: 36px; width: auto; }
.brand-name { font-weight: 700; letter-spacing: .2px; }

.menu { display: flex; gap: 1.4rem; align-items: center; }
.menu a {
  color: var(--text);
  font-weight: 600;
  opacity: .9;
  padding: .5rem .4rem;
  border-radius: .6rem;
  transition: opacity .2s, background .2s;
}
.menu a:hover { opacity: 1; background: rgba(255,255,255, .06); }
.cta-link {
  background: var(--accent);
  color: #03121a;
  padding: .6rem .9rem;
  border-radius: .8rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(1000px 600px at 80% -10%, #1b2233 0%, transparent 60%);
}
.hero-overlay {
  position: absolute;
  inset: -20% -10% -10% -10%;
  background: conic-gradient(from 210deg at 50% 50%, rgba(0,198,255,.12), transparent 25%, rgba(0,198,255,.15) 50%, transparent 75%, rgba(0,198,255,.12));
  filter: blur(80px);
  opacity: .6;
  pointer-events: none;
}
.hero-inner { text-align: center; padding-top: 72px; }
.hero h1 { font-size: clamp(28px,5vw,56px); line-height: 1.15; margin: .2rem 0 .8rem; }
.hero h1 span { opacity: .9; font-weight: 300; }
.hero p { color: var(--muted); max-width: 740px; margin: 0 auto 1.8rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

.hero-logo {
  width: min(70vw,760px);
  height: clamp(160px,22vw,280px);
  margin: 0 auto 2rem auto;
  position: relative;
  background-image: url('images/logo-hero.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 18px rgba(255,255,255,.12)) drop-shadow(0 6px 24px rgba(0,0,0,.45));
  opacity: 1;
  animation: logoIn 1.2s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-logo::before {
  content:"";
  position:absolute;
  inset:-8% -10%;
  background: radial-gradient(40% 40% at 50% 50%, rgba(0,198,255,.20), transparent 70%);
  filter: blur(24px);
  opacity:.55;
  animation: glow 5.6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes logoIn {
  0% { opacity: 0; transform: translateY(-80px) scale(.9) rotateX(18deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}
@keyframes glow {
  0%,100% { opacity:.35 }
  50% { opacity:.75 }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  padding: .9rem 1.2rem;
  border-radius: .9rem;
  text-decoration: none;
  background: var(--accent);
  color: #08131b;
  box-shadow: 0 10px 30px rgba(0,198,255,.2);
  transform: translateZ(0);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,198,255,.28);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.18);
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background: linear-gradient(180deg, #141823, #0f121a);
  border: 1px solid rgba(0, 198, 255, 0.15);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.35);
  border-color: rgba(0, 198, 255, 0.4);
}
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 0 15px rgba(0,198,255,0.6));
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive Services */
@media(max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== About / Features Section ===== */
.about {
  background: radial-gradient(800px 600px at 50% 20%, rgba(0,198,255,0.07), transparent 70%),
              radial-gradient(600px 400px at 20% 80%, rgba(0,140,255,0.1), transparent 70%),
              var(--bg);
  text-align: center;
  padding: 120px 0;
}

.about-title {
  font-size: clamp(42px, 5vw, 64px);
  margin-bottom: 1.5rem;
  color: var(--text);
  text-shadow: 0 0 15px rgba(0,198,255,.25), 0 0 35px rgba(0,198,255,.15);
}
.about-subtitle {
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 850px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  text-shadow: 0 0 6px rgba(0,198,255,.12);
}

.features-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.feature-card {
  flex: 1 1 280px;
  max-width: 300px;
  background: rgba(15, 20, 30, 0.3);
  border-radius: 18px;
  padding: 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,198,255,.15), inset 0 0 15px rgba(0,198,255,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(0,198,255,.25), inset 0 0 22px rgba(0,198,255,.07);
}
.feature-icon {
  height: 140px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 18px rgba(0,198,255,.6));
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 8px rgba(0,198,255,.3);
}
@media (max-width: 1000px) {
  .features-grid { flex-direction: column; align-items: center; }
  .feature-icon { height: 120px; }
}

/* ===== Footer ===== */
.footer {
  background: #0d1017;
  padding: 60px 0 0;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Desktop Standard */
  gap: 2rem;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.footer-logo {
  width: 160px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(0,198,255,.3));
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col a {
  color: var(--text);
  opacity: .8;
  transition: opacity .2s;
}
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 0;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col { margin-bottom: 2rem; }
  .footer-logo { margin: 0 auto 1rem auto; }
}

/* ===== Contact Form ===== */
.contact-form select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0f131c;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  padding: .9rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,198,255,.15);
}
.contact-form button { margin-top: .5rem; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: .6rem; }

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #1a1d26;
  border: 1px solid rgba(255,255,255,.12);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  z-index: 2000;
}
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--muted); }
.cookie-banner a { color: var(--accent); font-weight: 500; }

/* ===== Legal Pages ===== */
.legal h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-align: center;
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: .8rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: .6rem;
}
.legal p, .legal ul {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.legal ul { padding-left: 1.2rem; list-style: disc; }

/* ===== Brand Link (Logo + Name klickbar) ===== */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}
.brand-link .logo { height: 36px; width: auto; }
.brand-link .brand-name {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
/* === Prevent horizontal scrolling on mobile === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.hero, .hero-overlay, .container, .footer, .footer-grid {
  max-width: 100%;
  overflow-x: hidden;
}
.hero {
  position: relative;
  background: radial-gradient(1000px 600px at 80% -10%, #1b2233 0%, transparent 60%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px; /* sanfter Übergang, nicht zu hoch */
  background: linear-gradient(to bottom, rgba(15,17,22,0) 0%, #0f1116 100%);
  z-index: -1; /* geht hinter den Inhalt */
  pointer-events: none;
}

/* === Hamburger sichtbar ab Tablet ↓ === */
@media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #0f1116;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .menu.open {
    right: 0;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1000;
  }

  .mobile-contact-cta {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1001;
    background: var(--accent);
    color: #08131b;
    padding: 0.6rem 1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,198,255,.3);
  }
}
