/* ========= CSS RESET & NORMALIZE ========= */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}
ul, ol {
  margin: 0;
  padding: 0 0 0 1.5em;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
:focus {
  outline: 2px solid #A21CAF;
  outline-offset: 2px;
}

/* ========== VARIABLES & BRAND COLORS ========== */
:root {
  --primary: #374151;
  --secondary: #F3E8FF;
  --accent: #A21CAF;
  --accent-2: #6D028D;
  --background-dark: #181925;
  --background-light: #ffffff;
  --surface: #23263A;
  --surface-alt: #2B2E43;
  --card-bg: #222233;
  --text-main: #F3E8FF;
  --text-secondary: #C7BFFF;
  --text-dark: #23263A;
  --shadow: 0 4px 24px 0 rgba(86,48,128,0.12);
  --radius: 18px;
  --neon-glow: 0 0 8px #A21CAF, 0 0 16px #6D028D;
}

@media (prefers-color-scheme: light) {
  :root {
    --primary: #374151;
    --secondary: #F3E8FF;
    --accent: #A21CAF;
    --accent-2: #6D028D;
    --background-dark: #f7f5fc;
    --background-light: #fff;
    --surface: #f3e8ff;
    --surface-alt: #ede0fa;
    --card-bg: #fff6fd;
    --text-main: #23263A;
    --text-secondary: #6D028D;
    --text-dark: #23263A;
    --shadow: 0 2px 16px 0 rgba(86,48,128,0.08);
  }
}

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lato:wght@400;700&display=swap');

html {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background: var(--background-dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.125rem;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, address {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1em;
}
strong, b {
  font-weight: 700;
  color: var(--accent);
}
em, i {
  color: var(--accent-2);
}
.hero-sub {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 34px;
}

/* ========== GENERAL LAYOUT ========== */
body {
  background: linear-gradient(135deg, #222233 0%, #2b1746 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 22px 8px;
  }
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  width: 100%;
  z-index: 999;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--primary);
  transition: color 0.18s;
  padding: 8px 0;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  text-shadow: 0 0 5px var(--accent);
}
.main-nav .btn-primary {
  margin-left: 16px;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--accent);
  background: transparent;
  border: none;
  z-index: 1001;
}
@media (max-width: 900px) {
  .header .container {
    padding: 0 10px;
  }
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  header .container {
    padding: 0 10px;
    gap: 10px;
    height: 64px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    align-items: center;
    justify-content: center;
    transition: background .2s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--surface-alt);
    color: var(--accent-2);
  }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25, 20, 36, 0.96);
  z-index: 1100;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .42s cubic-bezier(.63,.05,.32,1), opacity .28s;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: var(--accent);
  background: none;
  border: 0;
  margin: 20px 28px 10px 0;
  cursor: pointer;
  line-height: 1;
  z-index: 1110;
  transition: color 0.15s;
}
.mobile-menu-close:hover {
  color: var(--accent-2);
}
.mobile-nav {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  padding: 0 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  padding: 14px 0;
  width: 100%;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: background 0.14s, color 0.16s;
  font-family: 'Lato', Arial, sans-serif;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 13px 28px;
  box-shadow: 0 0 16px 0 rgba(198,75,255,0.10);
  border: none;
  transition: background 0.22s, box-shadow 0.22s, transform 0.12s;
  text-shadow: 0 0 6px #6D028D33;
  letter-spacing: 0.015em;
  cursor: pointer;
  margin-top: 14px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-2);
  box-shadow: 0 0 16px 2px #A21CAF66;
  transform: translateY(-2px) scale(1.04);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 23px;
  font-weight: 700;
  transition: background 0.13s, color 0.15s;
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--accent);
  color: #fff;
}

/* ========== HERO / LANDING ========= */
main > section:first-child {
  background: linear-gradient(127deg, #23263a 70%, #A21CAF 340%);
  border-radius: 0 0 64px 64px;
  box-shadow: 0 24px 64px -32px #6D028D22;
  margin-bottom: 48px;
}
.content-wrapper {
  padding: 38px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 700px){
  .content-wrapper {
    padding: 22px 0 0 0;
  }
  main > section:first-child {
    border-radius: 0 0 32px 32px;
  }
}

/* ========== FEATURES / CARDS / SECTIONS ========== */
.feature-grid,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div,
.card {
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 240px;
  position: relative;
  transition: box-shadow .18s, transform .14s;
}
.feature-grid > div:hover,
.card:hover {
  box-shadow: 0 0 16px 0 #A21CAF80, 0 4px 16px 0 #2B174610;
  transform: translateY(-3px) scale(1.03);
}
.feature-grid img,
.card img {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 8px #A21CAF50);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .feature-grid,
  .card-container,
  .card-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

.text-section {
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.service-list li {
  margin-bottom: 16px;
  color: var(--text-main);
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 18px 18px 18px 28px;
  position: relative;
  font-size: 1.075rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px 0 #A21CAF08;
}
.service-list li span {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1em;
  margin-left: 18px;
}

/* ========== PRICING TABLE (preise.html) ========== */
.pricing-table {
  width: 100%;
  margin-bottom: 36px;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-table th, .pricing-table td {
  padding: 16px 14px;
  text-align: left;
}
.pricing-table th {
  background: var(--accent);
  color: #fff;
  font-size: 1.06rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.pricing-table tr {
  border-bottom: 1px solid #6D028D22;
}
.pricing-table tr:last-child {
  border-bottom: none;
}
.pricing-table td {
  color: var(--text-main);
  background: var(--surface-alt);
  font-size: 1rem;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  color: var(--text-dark);
  font-style: italic;
  border-radius: 22px;
  box-shadow: 0 2px 18px 0 #A21CAF1e;
  margin-bottom: 24px;
  border: 1.5px solid #A21CAF18;
  font-size: 1.09rem;
  position: relative;
  transition: box-shadow .15s, border .15s, transform .12s;
}
.testimonial-card:hover {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 16px 0 #A21CAF40, 0 2px 10px 0 #F3E8FF20;
  z-index: 2;
  transform: scale(1.013);
}
.testimonial-card p {
  color: var(--text-dark);
  margin-bottom: 8px;
}
.testimonial-meta {
  font-size: 1em;
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-meta span {
  color: #f8c901;
  font-size: 1.13em;
  margin-left: 7px;
}

/* ========== FOOTER ========== */
footer {
  width: 100%;
  background: var(--card-bg);
  color: var(--text-main);
  margin-top: 48px;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -4px 24px 0 #6D028D0c;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 0 28px 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px;
}
.footer-nav a {
  color: var(--accent);
  font-size: 1em;
  transition: color 0.14s;
  margin-bottom: 3px;
}
.footer-nav a:hover {
  color: var(--accent-2);
}
.footer-contact {
  font-size: .98em;
  color: var(--text-secondary);
  margin-top: 3px;
}
.footer-contact address {
  font-style: normal;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
footer img {
  height: 40px;
  margin-bottom: 15px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer img {
    margin-bottom: 0;
  }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #222233e0;
  color: #fff;
  box-shadow: 0 -2px 24px 0 #6D028D32;
  z-index: 3999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: center;
  padding: 22px 18px 16px;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
  transition: opacity .32s, transform .38s cubic-bezier(.43,.05,.37,1);
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-outline {
  font-size: .98em;
  margin: 0 7px;
  box-shadow: none;
  padding: 7px 18px;
}
.cookie-banner .btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.cookie-banner .btn-outline:hover {
  background: #A21CAF;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: .97em;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,18,36,.68);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #222233;
  border-radius: 22px;
  box-shadow: 0 4px 30px #6D028D55;
  max-width: 420px;
  width: 92%;
  padding: 34px 24px 26px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadePopIn .33s cubic-bezier(.5,.36,.38,1) both;
}
@keyframes fadePopIn {
  0% {transform: scale(.93) translateY(24px); opacity:0;}
  100% {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-modal-category input[type='checkbox'] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.cookie-modal-category label {
  color: #fff;
  cursor: pointer;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-outline {
  margin-top: 12px;
  width: 100%;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 13px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  transition: color 0.14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 680px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.13rem; }
  .footer-nav,
  .footer-contact {
    font-size: .97em;
  }
  .feature-grid,
  .card-container { gap: 12px; }
  .service-list li { font-size: .97em; padding: 12px 11px 12px 17px; }
  .testimonial-card { padding: 18px 10px; font-size: 0.98rem; }
}

/* ========== MICRO INTERACTIONS / HOVER / EFFECTS ========== */
a,
.btn-primary,
.btn-outline,
.main-nav a,
.footer-nav a,
.mobile-nav a,
.cookie-banner .btn-outline {
  transition: color 0.14s, background 0.18s, box-shadow 0.23s, transform 0.12s;
}
img[src*='logo'], img[src*='logo-mark'] {
  transition: filter .18s;
}
img[src*='logo']:hover, img[src*='logo-mark']:hover {
  filter: drop-shadow(0 0 10px #A21CAF99);
}

/* ========== SPECIFIC UTILITIES ========== */
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ========= COLOR UTILITIES ========== */
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.bg-accent { background: var(--accent); color: #fff; }
.bg-secondary { background: var(--surface-alt); }

/* ========= MISC ========= */
::-webkit-scrollbar { width: 7px; background: #211E2C; }
::-webkit-scrollbar-thumb { background: #A21CAF33; border-radius: 4px; }

/* Accessibility focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
