/* CSS Reset & Design-Variablen (Urlaubsorte-buchen.de Farbwelt) */
:root {
  --primary: #957c62;
  /* Dunkles Warmes Braun (starker Kontrast für Text/Buttons) */
  --primary-dark: #362921;
  /* Sehr dunkles Braun für Text auf hellem Grund */
  --secondary: #82473b;
  /* Terracotta / Akzent */
  --accent: #e2b59a;
  /* Warmes Sand-Beige */
  --bg-light: #ffe1af;
  /* Helles Muted Sand/Creme */
  --bg-surface: #fffbf5;
  /* Fast Weißes Warm-Creme für Lesbarkeit */
  --text-dark: #2a2119;
  /* Max-Kontrast-Dunkelbraun (erfüllt AAA) */
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Barrierefreiheit: Tastatur-Fokus-Stile */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--secondary) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(183, 116, 102, 0.3) !important;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--primary-dark);
  color: var(--white);
  padding: 12px 20px;
  font-weight: bold;
  z-index: 2000;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

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

/* Header & Navigation (Mobile First) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 251, 245, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--accent);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  height: 70px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary);
}

/* Hamburger Menü Button */
.hamburger {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  z-index: 1002;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* Navigation Links (Mobile Drawer) */
nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: right 0.35s ease-in-out;
  box-shadow: -5px 0 25px rgba(42, 33, 25, 0.15);
  z-index: 1001;
}

nav.active {
  right: 0;
}

nav a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

nav a:hover,
nav a:focus {
  color: var(--secondary);
  background-color: rgba(255, 225, 175, 0.4);
}

/* Hamburger Animation zu X */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Sektion */
.hero {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  background-color: var(--bg-light);
}

.hero-split-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.hero-half-left {
  position: relative;
  width: 100%;
  min-height: 300px;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-half-right {
  width: 100%;
  background: var(--bg-surface);
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-light);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50px;
  width: fit-content;
  border: 1px solid var(--accent);
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
}

h1 span {
  color: var(--secondary);
}

.hero-text {
  color: var(--text-dark);
  font-size: 1.05rem;
}

.hero-svg-accent {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0.25rem 0;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(42, 33, 25, 0.2);
}

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

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

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

/* Sektionen */
section {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* Cards Layout */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(42, 33, 25, 0.06);
  border: 1px solid var(--accent);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(42, 33, 25, 0.12);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

/* Verkaufsabwicklung Schritte */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--accent);
  align-items: flex-start;
}

.step-number {
  background: var(--secondary);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Kontakt & DSGVO Formular */
.contact-form {
  background: var(--bg-surface);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(42, 33, 25, 0.08);
  border: 2px solid var(--accent);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--primary-dark);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--white);
  color: var(--text-dark);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.checkbox-group input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-top: 2px;
  accent-color: var(--secondary);
  cursor: pointer;
}

/* Desktop Medienabfrage */
@media (min-width: 992px) {
  .hero-split-container {
    flex-direction: row;
  }

  .hero-half-left,
  .hero-half-right {
    width: 50%;
    min-height: calc(100vh - 70px);
  }

  .hero-half-right {
    padding: 4rem 3rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn-group {
    flex-direction: row;
  }

  .hamburger {
    display: flex;
  }

  header {
    padding: 1rem 3rem;
  }

  .contact-form {
    padding: 3rem;
  }
}

/* Screenreader-Klasse */
.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;
}

/* Scroll-to-Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--accent);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

/* Footer Gesamtlayout */
.site-footer {
  display: block;
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 10;
  border-top: 3px solid var(--secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-text {
  color: var(--accent);
  font-size: 1rem;
  margin: 0;
}

.footer-text a.dom {
  color: var(--white);
  text-decoration: underline;
  font-weight: bold;
}

.footer-text a.dom:hover {
  color: var(--bg-light);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.footer-icon-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

.footer-icon-link:hover,
.footer-icon-link:focus-visible {
  background-color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-3px);
  outline: none;
}
