/* Main Styles for domain.com - Finanzprüfung Website */

:root {
  /* Neon Noir Finance Palette */
  --bg-color: #0a0f14;
  --accent-1: #00e5d4;
  --accent-2: #8a2be2;
  --accent-3: #c4f000;
  --text-primary: #e6f1ff;
  --text-secondary: #a9b7c6;
  --border-color: #1b2330;
  --gradient: linear-gradient(135deg, #00e5d4 0%, #8a2be2 60%, #c4f000 100%);

  /* Spacing */
  --container-max: 1200px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover,
a:focus {
  color: var(--accent-3);
  text-shadow: 0 0 8px rgba(196, 240, 0, 0.5);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--spacing-md);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (min-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* Section */
.section {
  padding: var(--spacing-xl) 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(10, 15, 20, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo a {
  color: var(--text-primary);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav__link {
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--spacing-xs) 0;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link:focus::after {
  width: 100%;
}

/* Hamburger Menu (CSS-only) */
.hamburger {
  position: relative;
  z-index: 101;
}

.hamburger__checkbox {
  display: none;
}

.hamburger__icon {
  display: block;
  position: relative;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 103;
}

.hamburger__icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--accent-1);
  border-radius: 3px;
  transition: 0.25s ease-in-out;
}

.hamburger__icon span:nth-child(1) {
  top: 0;
}

.hamburger__icon span:nth-child(2),
.hamburger__icon span:nth-child(3) {
  top: 10px;
}

.hamburger__icon span:nth-child(4) {
  top: 20px;
}

.hamburger__checkbox:checked ~ .hamburger__icon span:nth-child(1),
.hamburger__checkbox:checked ~ .hamburger__icon span:nth-child(4) {
  opacity: 0;
}

.hamburger__checkbox:checked ~ .hamburger__icon span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger__checkbox:checked ~ .hamburger__icon span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-color);
  padding: 80px var(--spacing-md) var(--spacing-md);
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 100;
  border-left: 1px solid var(--border-color);
}

.hamburger__checkbox:checked ~ .mobile-nav {
  right: 0;
}

.mobile-nav__list {
  list-style: none;
  margin-top: var(--spacing-xl);
}

.mobile-nav__item {
  margin-bottom: var(--spacing-md);
}

.mobile-nav__link {
  display: block;
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav__link:hover,
.mobile-nav__link:focus {
  color: var(--accent-3);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--spacing-xl) 0;
  margin-top: 60px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 20, 0.7);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  margin-bottom: var(--spacing-md);
  animation: fade-up 0.6s ease forwards;
}

.hero__subtitle {
  margin-bottom: var(--spacing-lg);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  animation: fade-up 0.8s ease forwards;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--gradient);
  color: var(--bg-color);
}

.btn--primary:hover,
.btn--primary:focus {
  box-shadow: 0 0 15px rgba(0, 229, 212, 0.6);
  color: var(--bg-color);
  text-shadow: none;
  transform: translateY(-3px);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent-1);
  color: var(--accent-1);
}

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--accent-1);
  color: var(--bg-color);
  text-shadow: none;
}

/* Grid Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: var(--spacing-lg);
}

.card {
  background-color: rgba(27, 35, 48, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 229, 212, 0.2);
}

.card__media {
  min-height: 200px;
  position: relative;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card__content {
  padding: var(--spacing-md);
}

.card__title {
  margin-bottom: var(--spacing-sm);
  font-size: 1.4rem;
}

.card__text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* About Section */
.about {
  position: relative;
  overflow: hidden;
}

.about__content {
  position: relative;
  z-index: 2;
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section__title {
  display: inline-block;
  position: relative;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

/* Services Section */
.services {
  background-color: rgba(27, 35, 48, 0.2);
  position: relative;
}

/* Advantages Section */
.advantages__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(27, 35, 48, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.advantage-item__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  flex-shrink: 0;
}

.advantage-item__icon i {
  font-size: 1.5rem;
  color: var(--bg-color);
}

/* Process Section */
.process__steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  background: rgba(27, 35, 48, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.step__number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  font-weight: 700;
  color: var(--bg-color);
  flex-shrink: 0;
}

.step__content {
  flex: 1;
}

/* Testimonials Section */
.testimonials {
  background-color: rgba(27, 35, 48, 0.2);
}

.testimonial {
  padding: var(--spacing-md);
}

.testimonial__text {
  font-style: italic;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.testimonial__text::before,
.testimonial__text::after {
  content: '"';
  color: var(--accent-1);
  font-size: 1.5rem;
  font-weight: 700;
}

.testimonial__author {
  font-weight: 600;
  color: var(--accent-3);
}

/* FAQ Section */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  background-color: rgba(27, 35, 48, 0.5);
  padding: var(--spacing-md);
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-1);
}

.faq__checkbox {
  display: none;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(27, 35, 48, 0.2);
  transition: max-height 0.3s ease;
}

.faq__content {
  padding: var(--spacing-md);
}

.faq__checkbox:checked ~ .faq__answer {
  max-height: 500px;
}

.faq__checkbox:checked + .faq__question::after {
  content: "–";
}

/* Form Section */
.form-section {
  position: relative;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(27, 35, 48, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  position: relative;
}

.form-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.form__group {
  margin-bottom: var(--spacing-md);
}

.form__label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 10px 15px;
  background-color: rgba(10, 15, 20, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
}

.form__select option {
  color: white;
  background-color: #0a0f14;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 2px rgba(0, 229, 212, 0.2);
}

.form__checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.form__checkbox {
  margin-right: var(--spacing-sm);
  margin-top: 5px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background-color: rgba(10, 15, 20, 0.7);
  cursor: pointer;
  position: relative;
}

.form__checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-3);
  font-size: 14px;
  font-weight: bold;
}

.form__checkbox-label {
  font-size: 0.9rem;
  line-height: 1.4;
}

.form__checkbox-label a {
  text-decoration: underline;
}

.form__error {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 5px;
}

.honeypot {
  display: none;
}

/* Contact Section */
.contact {
  background-color: rgba(27, 35, 48, 0.2);
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 212, 0.1);
  border-radius: 50%;
  color: var(--accent-1);
  flex-shrink: 0;
}

/* Footer */
.footer {
  background-color: rgba(10, 15, 20, 0.9);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.footer__column {
  margin-bottom: var(--spacing-md);
}

.footer__heading {
  color: var(--accent-1);
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
}

.footer__list {
  list-style: none;
}

.footer__list-item {
  margin-bottom: var(--spacing-xs);
}

.footer__link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer__link:hover,
.footer__link:focus {
  color: var(--accent-3);
}

.footer__bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 15, 20, 0.95);
  padding: var(--spacing-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  z-index: 999;
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner__buttons {
  display: flex;
  gap: var(--spacing-sm);
}

/* Thankyou Page */
.thankyou {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing-xl) 0;
}

.thankyou__container {
  margin: 8rem auto 5rem;
  max-width: 720px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  background-color: rgba(27, 35, 48, 0.3);
}

.thankyou__icon {
  font-size: 4rem;
  color: var(--accent-1);
  margin-bottom: var(--spacing-md);
}

/* Policy Pages */
.policy {
  padding: var(--spacing-xl) 0;
  margin-top: 2rem;
}

.policy__content {
  background-color: rgba(27, 35, 48, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.policy__section {
  margin-bottom: var(--spacing-lg);
}

.policy__title {
  color: var(--accent-1);
  margin-bottom: var(--spacing-sm);
}

.policy__links {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 5px rgba(0, 229, 212, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 229, 212, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 229, 212, 0.5);
  }
}

/* Media Queries */
@media (min-width: 768px) {
  .nav {
    display: block;
  }

  .hamburger {
    display: none;
  }

  .section__header {
    margin-bottom: var(--spacing-xl);
  }

  .hero__content {
    max-width: 700px;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    max-width: 800px;
  }

  .footer__grid {
    gap: 50px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 var(--spacing-lg);
  }

  .grid {
    gap: 30px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
