:root {
  --yellow: #FFD500;
  --orange: #F58220;
  --red: #DC2626;
  --dark: #0A0A0A;
  --dark-2: #111111;
  --dark-3: #1A1A1A;
  --dark-4: #242424;
  --gray: #999999;
  --light: #F0ECE6;
  --white: #FAFAF8;
  --gradient: linear-gradient(135deg, var(--red), var(--orange), var(--yellow));
  --gradient-text: linear-gradient(135deg, var(--yellow), var(--orange), var(--red));
}

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

html { scroll-behavior: smooth; font-size: 16px; }

/* ── Accessibility ────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--orange);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ── Utility ───────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Animated gradient line ────────────── */
.gradient-line {
  height: 3px;
  background: var(--gradient);
  border: none;
  border-radius: 2px;
  width: 80px;
  margin: 1.2rem 0 2rem;
}
.gradient-line.center { margin-left: auto; margin-right: auto; }

/* ── NAV ───────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo picture { display: inline-block; line-height: 0; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 0.55rem 1.6rem;
  background: var(--gradient);
  color: var(--dark) !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(245,130,32,0.3); color: var(--dark) !important; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--gray) !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s;
}
.lang-switch:hover {
  border-color: var(--orange);
  color: var(--orange) !important;
  background: rgba(245,130,32,0.1);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--light); transition: 0.3s; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ──────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute; top: -30%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(245,130,32,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -10%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(220,38,38,0.05) 0%, transparent 70%);
  pointer-events: none;
}
/* Geometric decorations */
.hero-geo {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}
.hero-geo-1 {
  top: 15%; right: 8%;
  width: 300px; height: 300px;
  border: 2px solid var(--yellow);
  transform: rotate(15deg);
}
.hero-geo-2 {
  bottom: 20%; right: 15%;
  width: 0; height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 200px solid var(--orange);
  transform: rotate(-10deg);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-tag span {
  width: 32px; height: 2px;
  background: var(--gradient);
  display: inline-block;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gradient);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,130,32,0.3); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--light);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}
.btn-secondary:hover { border-color: var(--orange); background: rgba(245,130,32,0.06); }

/* ── SECTIONS ──────────────────────────── */
section { padding: 7rem 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ── SERVICES (Leistungen) ─────────────── */
#leistungen { background: var(--dark-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.service-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(245,130,32,0.15); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245,130,32,0.1), rgba(220,38,38,0.08));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── SECURITY (Datenschutz & Sicherheit) ── */
#sicherheit { background: var(--dark-3); }
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 3.5rem;
  align-items: start;
}
.security-text p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.security-features {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.security-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.security-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,130,32,0.1), rgba(220,38,38,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.security-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.security-item p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── HISTORY (Geschichte) ──────────────── */
#geschichte { position: relative; }
.timeline {
  position: relative;
  margin-top: 3.5rem;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--orange), var(--yellow));
}
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -3rem; top: 0.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  transform: translateX(-6px);
  box-shadow: 0 0 16px rgba(245,130,32,0.3);
}
.timeline-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.timeline-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.timeline-item p {
  color: var(--gray);
  font-size: 0.95rem;
  max-width: 600px;
}

/* ── CONTACT (Kontakt) ─────────────────── */
#kontakt { background: var(--dark-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3.5rem;
}
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 2rem;
}
.contact-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,130,32,0.1), rgba(220,38,38,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-info-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.contact-info-item p, .contact-info-item a {
  color: var(--gray);
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1.6;
}
.contact-info-item a:hover { color: var(--orange); }
.contact-form {
  display: flex; flex-direction: column; gap: 1.2rem;
}
.contact-form input, .contact-form textarea {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--orange);
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button {
  padding: 0.9rem 2.2rem;
  background: var(--gradient);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.2s, box-shadow 0.3s;
}
.contact-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,130,32,0.3); }
.consent-label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  margin-top: 3px;
  min-width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}
.consent-label a {
  color: var(--orange);
  text-decoration: none;
}
.consent-label a:hover { text-decoration: underline; }
.form-required-note {
  color: var(--gray);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}
.form-group { display: flex; flex-direction: column; }

/* ── FOOTER ────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 0 2rem;
}
.footer-content {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { color: var(--gray); font-size: 0.85rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  color: var(--gray);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--orange); }



/* ── ANIMATIONS ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 968px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-geo { display: none; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed; top: 72px; left: 0; width: 100%; 
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  section { padding: 5rem 0; }
  .hero h1 { font-size: 2.4rem; }
}

/* ── LEGAL CONTENT ── */
.legal-content {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 4rem;
}
.legal-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.legal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--white);
}
.legal-content h3 {
  font-size: 1.05rem; font-weight: 600;
  margin: 1.8rem 0 0.6rem;
}
.legal-content p, .legal-content li {
  color: var(--gray); font-size: 0.95rem;
  line-height: 1.8; margin-bottom: 0.8rem;
}
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content a { color: var(--orange); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--orange); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  margin-bottom: 2rem; transition: gap 0.2s;
}
.legal-back:hover { gap: 0.8rem; }

/* ── HONEYPOT (Spam Protection) ── */
.honeypot-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ── FORM FEEDBACK ── */
.form-feedback {
  display: none;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.form-feedback.visible {
  display: block;
}
.form-feedback.success {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}
.form-feedback.error {
  background: rgba(220,38,38,0.15);
  color: #ef4444;
}

/* ── 404 ERROR PAGE ── */
.error-page {
  min-height: calc(100vh - 72px - 100px);
  display: flex;
  align-items: center;
  padding-top: 72px;
  text-align: center;
}
.error-content {
  max-width: 560px;
  margin: 0 auto;
}
.error-code {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.error-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}
.error-content p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.error-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── COOKIE BANNER (DueSoft Theme) ── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 250px;
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.5;
}
.cookie-banner-link {
  color: var(--orange);
  text-decoration: underline;
  margin-left: 4px;
}
.cookie-banner-link:hover { color: var(--yellow); }
.cookie-banner-btn {
  background: var(--gradient);
  color: var(--dark);
  border: none;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.cookie-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,130,32,0.3);
}
