/* CSS Reset & Design-Variablen */
:root {
  --primary: #142952;
  /* Tiefes Vertrauens-Blau */
  --secondary: #425c4f;
  /* Salbeigrün passend zum Hundetier-Thema */
  --accent: #923921;
  /* Warmes Terrakotta / Call-to-Action */
  --bg-light: #f8fafc;
  /* Helles Off-White */
  --text-dark: #1e293b;
  /* Dunkles Grau für Lesbarkeit */
  --text-light: #64748b;
  /* Sekundärtext */
  --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-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Barrierefreiheit: Fokus-Stile */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px;
  z-index: 1001;
  transition: top 0.3s;
}

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

/* Header & Navigation (Mobile First) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  /* Perfekter Abstand, nicht zu weit oben */
  height: 70px;
}

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

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

/* Hamburger Menü Button */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  z-index: 1002;
  padding: 0;
}

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

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

nav.active {
  right: 0;
}

nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

nav a:hover,
nav a:focus {
  color: var(--accent);
}

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

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

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

/* Hero Sektion (Split Layout 50/50 auf Desktop, gestapelt auf Mobile) */
.hero {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
}

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

/* Linke Seite: Bild (Ohne Raster/Transparenz-Problem durch solaren Hintergrund) */
.hero-half-left {
  position: relative;
  width: 100%;
  min-height: 350px;
  background-color: var(--white);
  /* Verhindert Raster-Effekt */
  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: rgba(20, 41, 82, 0.85);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
}

/* Rechte Seite: SVG & Content */
.hero-half-right {
  width: 100%;
  background: var(--white);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  width: fit-content;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

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

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

/* SVG Vektorgrafik im Textbereich */
.hero-svg-accent {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0.5rem 0;
}

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

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

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.3);
}

.btn-primary:hover {
  background-color: #c06546;
  transform: translateY(-2px);
}

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

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

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

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

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(20, 41, 82, 0.08);
}

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

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

.step-item {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  align-items: flex-start;
}

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

/* Kontakt & DSGVO Formular */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  max-width: 700px;
  margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f8fafc;
}

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

.checkbox-group input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

/* 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);
  }

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

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

  /* Nur das Hamburger-Menü sichtbar schalten */
  .hamburger {
    display: flex;
  }

  header {
    padding: 1rem 3rem;
  }
}
/* --- Screenreader-Klasse für Barrierefreiheit --- */
.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: #5c8374; /* Salbeigrün */
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(92, 131, 116, 0.3);
  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: #4c6c5f;
  transform: translateY(-3px);
}
/* --- Footer Gesamtlayout --- */
.site-footer {
  display: block;
  background-color: #142952; /* Tiefblau */
  color: #ffffff;
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 10;
  border-top: 2px solid rgba(217, 119, 87, 0.3); /* Terrakotta Akzentlinie */
}

.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: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

.footer-text a.dom {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.footer-text a.dom:hover {
  color: #d97757;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  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.1);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.footer-icon-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Macht schwarze SVGs weiß */
  display: block;
}

.footer-icon-link:hover,
.footer-icon-link:focus-visible {
  background-color: #d97757; /* Terrakotta */
  border-color: #d97757;
  transform: translateY(-3px);
  outline: none;
}

/* --- Screenreader-Klasse für Barrierefreiheit --- */
.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;
}
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  border: 2px solid #555555 !important; /* Ein kräftiger Rand sorgt für klare Abgrenzung */
  border-radius: 4px;
  padding: 8px;
}
input:focus,
select,
textarea {
  outline: none;
  border-color: #005fcc !important; /* Eine kräftige Akzentfarbe */
  box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.3) !important; /* Zusätzlicher Fokus-Ring */
}
input[type="checkbox"] {
  width: 40px;
  height: 40px;
  cursor: pointer;
  vertical-align: middle;
  accent-color: #d97757;
}
