/* ========================================
   Edu-infinity - Wein- und Genussreisen
   ======================================== */

:root {
  --color-primary: #8B2942;
  --color-secondary: #D4A574;
  --color-dark: #2C1810;
  --color-light: #F5E6D3;
  --color-white: #FFFFFF;
  --color-text: #3D2A1F;
  --color-muted: #6B5A4F;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow-soft: 0 2px 15px rgba(44, 24, 16, 0.1);
  --shadow-medium: 0 4px 25px rgba(44, 24, 16, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* ========================================
   Layout
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--color-light);
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo:hover {
  color: var(--color-primary);
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle__bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-medium);
  padding: 1rem 0;
}

.mobile-nav--open {
  display: block;
}

.mobile-nav__list {
  list-style: none;
}

.mobile-nav__link {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-light);
}

.mobile-nav__link:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-dark);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
}

.hero__title {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ========================================
   Cards
   ======================================== */

.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--color-muted);
  margin-bottom: 0;
}

.card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 1rem;
}

/* ========================================
   Testimonials
   ======================================== */

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-primary);
}

.testimonial__text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.testimonial__author {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial__location {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ========================================
   Features
   ======================================== */

.features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.feature__content {
  flex: 1;
}

.feature__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature__text {
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ========================================
   Contact Info
   ======================================== */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-item__text {
  color: var(--color-text);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer__text {
  color: var(--color-light);
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: var(--color-light);
  font-size: 0.9rem;
}

.footer__link:hover {
  color: var(--color-secondary);
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 230, 211, 0.2);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* ========================================
   Thank You Page
   ======================================== */

.thank-you {
  text-align: center;
  padding: 6rem 0;
}

.thank-you__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

.thank-you__title {
  margin-bottom: 1rem;
}

.thank-you__text {
  color: var(--color-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ========================================
   Cookie Banner
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-banner--visible {
  display: block;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner__text {
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  border: none;
  transition: var(--transition);
}

.cookie-banner__btn--accept {
  background-color: var(--color-secondary);
  color: var(--color-dark);
}

.cookie-banner__btn--accept:hover {
  background-color: var(--color-light);
}

.cookie-banner__btn--settings {
  background-color: transparent;
  border: 1px solid var(--color-light);
  color: var(--color-light);
}

.cookie-banner__btn--settings:hover {
  background-color: rgba(245, 230, 211, 0.1);
}

.cookie-banner__btn--reject {
  background-color: transparent;
  color: var(--color-light);
  opacity: 0.8;
}

.cookie-banner__btn--reject:hover {
  opacity: 1;
}

/* ========================================
   Cookie Modal
   ======================================== */

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(44, 24, 16, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal--visible {
  display: flex;
}

.cookie-modal__content {
  background-color: var(--color-white);
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-medium);
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-light);
}

.cookie-modal__title {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-muted);
  padding: 0;
  line-height: 1;
}

.cookie-modal__close:hover {
  color: var(--color-primary);
}

.cookie-modal__body {
  padding: 1.5rem;
}

.cookie-option {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-light);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-option__title {
  font-weight: 600;
  font-size: 1rem;
}

.cookie-option__text {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle__input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-muted);
  border-radius: 26px;
  transition: var(--transition);
}

.toggle__slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-white);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle__input:checked + .toggle__slider {
  background-color: var(--color-primary);
}

.toggle__input:checked + .toggle__slider::before {
  transform: translateX(22px);
}

.toggle__input:disabled + .toggle__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-light);
}

.cookie-modal__btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.cookie-modal__btn--save {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
}

.cookie-modal__btn--save:hover {
  background-color: var(--color-dark);
}

.cookie-modal__btn--accept {
  background-color: var(--color-secondary);
  color: var(--color-dark);
  border: none;
}

.cookie-modal__btn--accept:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   About Page
   ======================================== */

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-item__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ========================================
   Services Page
   ======================================== */

.services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  border-top: 4px solid var(--color-primary);
}

.service-card__title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-card__description {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.service-card__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
}

.service-card__price-note {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: 400;
}

/* ========================================
   Media Queries
   ======================================== */

@media (min-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 5rem 0;
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__text {
    flex: 1;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 5rem 0;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: block;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
  }

  .testimonials {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonial {
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
  }

  .features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature {
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__nav {
    flex-direction: row;
    gap: 1.5rem;
  }

  .services-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  .hero {
    padding: 6rem 0;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .card {
    flex: 1 1 calc(33.333% - 1rem);
  }

  .service-card {
    flex: 1 1 calc(33.333% - 1.34rem);
  }
}

/* ========================================
   Accessibility
   ======================================== */

.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 {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  z-index: 10001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}
