/* ===== Custom Properties (Farben aus Logo) ===== */
:root {
  --green: #519f45;
  --green-dark: #3d8a36;
  --green-subtle: #e8f5e8;
  --blue: #4470b4;
  --blue-subtle: #e8eef8;
  --orange: #e7b042;
  --orange-subtle: #fef9e8;
  --red: #e09080;
  --red-subtle: #fceee8;
  --pink: #e1a4ad;
  --pink-light: #f5e0e5;

  --green-light: #a3d49a;
  --blue-light: #9db8dc;
  --orange-light: #f2d48f;
  --pink-circle: #efc8cf;

  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.05);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.7;
  font-weight: 400;
  font-size: 1rem;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Section Reveal Animation ===== */
.section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.site-header {
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
  font-family: 'Architects Daughter', cursive;
}

.header-logo-text {
  display: flex;
  align-items: center;
  gap: 1px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.site-header.scrolled .header-logo-text {
  opacity: 1;
  transform: translateY(0);
}

.header-star {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transform: rotate(8deg);
  margin: 0 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

nav a:hover {
  color: var(--gray-900);
  background: rgba(0, 0, 0, 0.05);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 1px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  background: var(--white);
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}

.hero-circle--1 {
  width: 600px;
  height: 600px;
  background: var(--green-light);
  top: -200px;
  left: -200px;
}

.hero-circle--2 {
  width: 180px;
  height: 180px;
  background: var(--blue-light);
  top: 10%;
  right: 18%;
  opacity: 0.25;
}

.hero-circle--4 {
  width: 100px;
  height: 100px;
  background: var(--pink-circle);
  top: 20%;
  left: 8%;
  opacity: 0.3;
}

.hero-circle--5 {
  width: 240px;
  height: 240px;
  background: var(--orange-light);
  bottom: 5%;
  left: -60px;
  opacity: 0.2;
}

.hero-circle--6 {
  width: 70px;
  height: 70px;
  background: var(--green-light);
  bottom: 20%;
  right: 5%;
  opacity: 0.35;
}

.hero-circle--7 {
  width: 140px;
  height: 140px;
  background: var(--blue-light);
  bottom: -40px;
  left: 35%;
  opacity: 0.18;
}

.floating-logo {
  position: fixed;
  top: 140px;
  right: 2%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-lg);
  transform: rotate(20deg);
  z-index: 101;
  pointer-events: none;
  will-change: top;
  transition: background 0.3s ease, width 0.3s ease, height 0.3s ease, left 0.3s ease, right 0.3s ease, box-shadow 0.3s ease;
}

.floating-logo.stuck {
  background: white;
}

.floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-circle--3 {
  width: 300px;
  height: 300px;
  background: var(--pink-circle);
  bottom: -100px;
  right: 10%;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-subtle);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.hero-title-logo {
  font-family: 'Architects Daughter', cursive !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.1em;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

.hero-title-logo .hero-title-star {
  width: 0.55em;
  height: 0.55em;
  margin: 0 0.15em;
  flex-shrink: 0;
  transform: rotate(8deg);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-500);
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(58, 170, 53, 0.25);
}

.btn--primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(58, 170, 53, 0.35);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--gray-700);
  box-shadow: inset 0 0 0 1.5px var(--gray-200);
}

.btn--outline:hover {
  background: var(--gray-50);
  box-shadow: inset 0 0 0 1.5px var(--gray-300);
  transform: translateY(-2px);
}

/* ===== Section Common ===== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
}

/* ===== About ===== */
.about-section {
  padding: 6rem 0;
  background: var(--gray-50);
  text-align: center;
}

.about-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.about-text {
  font-size: 1.12rem;
  color: var(--gray-500);
  line-height: 1.75;
  letter-spacing: -0.01em;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.about-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-logo {
  display: inline-block;
  transition: transform var(--transition), opacity var(--transition);
}

.badge-logo:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

.badge-logo img {
  display: block;
  object-fit: contain;
}

/* ===== Horse 3D Section ===== */
.horse-section {
  text-align: center;
  padding: 6rem 0;
  background: var(--white);
}

.horse-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gray-900);
  margin-bottom: 0.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.canvas-wrapper {
  position: relative;
  max-width: 960px;
  width: calc(100% - 2rem);
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(180deg, #b8d4e8, #d4ecd0);
  border: 1px solid var(--gray-200);
}

#horse-canvas-container {
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

#horse-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.horse-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.horse-cta p {
  font-size: 1.15rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Status Indicators ===== */
.status-indicators {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  pointer-events: none;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 0.85rem;
  color: #fff;
  font-size: 0.65rem;
}
.status-bar-track {
  width: 3rem;
  height: 0.3rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.15rem;
  overflow: hidden;
}
.status-bar-fill {
  height: 100%;
  width: 25%;
  border-radius: 0.15rem;
  transition: width 0.4s ease, background 0.4s ease;
}

/* Dirt bar colors */
.dirt-fill {
  background: linear-gradient(90deg, var(--orange), var(--green));
}
.dirt-fill.clean {
  background: linear-gradient(90deg, var(--green), #5bb84d);
}
.dirt-fill.dirty {
  background: linear-gradient(90deg, #8b5e3c, var(--orange));
}

/* Hunger bar colors */
.hunger-fill {
  background: linear-gradient(90deg, var(--orange), var(--green));
}
.hunger-fill.full {
  background: linear-gradient(90deg, var(--green), #5bb84d);
}
.hunger-fill.hungry {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.canvas-wrapper:fullscreen .status-indicators,
.canvas-wrapper.pseudo-fullscreen .status-indicators {
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Fullscreen Button ===== */
.fullscreen-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  z-index: 10;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.fullscreen-btn:hover {
  background: rgba(30, 30, 30, 0.7);
  color: #fff;
  transform: scale(1.05);
}

.fullscreen-btn:active {
  transform: scale(0.92);
}

/* Scroll lock when pseudo-fullscreen is active */
html.fs-lock {
  overflow: hidden !important;
}

html.fs-lock body {
  overflow: hidden !important;
}

/* iOS/mobile fallback: simulate fullscreen via fixed positioning */
.canvas-wrapper.pseudo-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
  z-index: 99999 !important;
  background: #000 !important;
}

/* Force landscape via CSS rotation (non-iOS only, applied by JS) */
.canvas-wrapper.pseudo-fullscreen.force-landscape {
  top: 50% !important;
  left: 50% !important;
  width: 100dvh !important;
  height: 100dvw !important;
  transform: translate(-50%, -50%) rotate(90deg) !important;
  transform-origin: center center !important;
  padding: 0 !important;
}

/* Keep fullscreen button visible in both modes */
.canvas-wrapper:fullscreen .fullscreen-btn,
.canvas-wrapper.pseudo-fullscreen .fullscreen-btn {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  right: calc(0.75rem + env(safe-area-inset-right, 0px));
  z-index: 100000;
  width: 44px;
  height: 44px;
  pointer-events: auto;
}

.canvas-wrapper.pseudo-fullscreen.force-landscape .fullscreen-btn {
  top: 0.75rem;
  right: 0.75rem;
  transform: rotate(-90deg);
}

.canvas-wrapper.pseudo-fullscreen.force-landscape .status-indicators {
  transform: translateX(-50%) rotate(-90deg);
}

.canvas-wrapper.pseudo-fullscreen.force-landscape .tool-feedback {
  transform: translateX(-50%) rotate(-90deg);
}

.canvas-wrapper.pseudo-fullscreen.force-landscape .tool-feedback.show {
  transform: translateX(-50%) translateY(0) rotate(-90deg);
}

/* Toolbar positioning in pseudo-fullscreen */
.canvas-wrapper.pseudo-fullscreen .horse-toolbar {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.canvas-wrapper.pseudo-fullscreen.force-landscape .horse-toolbar {
  bottom: 1rem;
  transform: translateX(-50%) rotate(-90deg);
}

.canvas-wrapper.pseudo-fullscreen .grooming-panel {
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.canvas-wrapper.pseudo-fullscreen.force-landscape .grooming-panel {
  bottom: 4.75rem;
  transform: translateX(-50%) translateY(0) rotate(-90deg);
}

/* Rotate-device hint (iOS portrait in pseudo-fullscreen) */
.rotate-hint {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100001;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  pointer-events: none;
  animation: rotateHintFade 3s ease forwards;
}

.canvas-wrapper.pseudo-fullscreen.show-rotate-hint .rotate-hint {
  display: flex;
}

.rotate-hint svg {
  animation: rotateHintWiggle 1.5s ease-in-out infinite;
}

@keyframes rotateHintWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-20deg); }
  75% { transform: rotate(90deg); }
}

@keyframes rotateHintFade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== Horse Toolbar ===== */
.horse-toolbar {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
  z-index: 10;
  max-width: calc(100% - 1.5rem);
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  min-width: 52px;
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
}

.tool-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.8;
  transition: transform 0.2s ease;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.tool-btn:hover svg {
  transform: scale(1.08);
}

.tool-btn:active {
  transform: scale(0.92);
}

.tool-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.tool-btn.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.tool-btn.active svg {
  stroke: #fff;
}

/* Grooming sub-tool panel */
.grooming-panel {
  position: absolute;
  bottom: 4.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
  z-index: 11;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100% - 1.5rem);
}

.grooming-panel.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.grooming-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  min-width: 44px;
  padding: 5px 10px;
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.grooming-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.grooming-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.grooming-btn:active {
  transform: scale(0.92);
}

.grooming-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.grooming-btn.active svg {
  stroke: var(--orange);
}

/* Tool feedback toast */
.tool-feedback {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 1.2rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  white-space: nowrap;
  max-width: calc(100% - 2rem);
  text-overflow: ellipsis;
  overflow: hidden;
}

.tool-feedback.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Info popup card */
.info-popup {
  position: absolute;
  top: 3.25rem;
  left: 0.75rem;
  transform: translateY(8px);
  width: calc(100% - 4rem);
  max-width: 260px;
  padding: 0.8rem 1rem;
  background: rgba(30, 30, 30, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.info-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.info-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.info-popup-header strong {
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow-wrap: break-word;
}

.info-popup-close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
  flex-shrink: 0;
}

.info-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.info-popup p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin: 0;
}

/* ===== Activities ===== */
.activities-section {
  padding: 6rem 0;
  background: var(--gray-50);
  text-align: center;
}

.activities-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gray-900);
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

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

.activity-accent {
  height: 4px;
}

.activity-accent--green { background: var(--green); }
.activity-accent--blue { background: var(--blue); }
.activity-accent--red { background: var(--red); }
.activity-accent--orange { background: var(--orange); }

.activity-body {
  padding: 1.5rem;
}

.activity-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--gray-800);
}

.activity-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact-section {
  padding: 6rem 0;
  background: var(--pink-light);
}

.contact-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gray-900);
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(242, 196, 206, 0.4);
  max-width: 760px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
}

.contact-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.contact-motto {
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-500);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--green-subtle);
  color: var(--green);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--green);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--pink);
  color: var(--gray-800);
  padding: 2.5rem 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-tagline {
  color: var(--gray-700);
}

.footer-tagline a {
  color: var(--gray-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-tagline a:hover {
  color: var(--gray-900);
}

/* ===== Legal Pages (Impressum, Datenschutz) ===== */
.legal-page {
  padding: 4rem 0 5rem;
}

.legal-page h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.legal-intro {
  color: var(--gray-500);
  margin-bottom: 2.5rem;
}

.legal-content {
  max-width: 720px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.legal-content ul {
  padding-left: 1.5rem;
}

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

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--green-dark);
}

/* ===== Responsive ===== */

/* Medium desktops: shrink logo to avoid overlapping hero text */
@media (min-width: 1025px) and (max-width: 1400px) {
  .floating-logo {
    width: 180px;
    height: 180px;
    top: 100px;
  }
}

/* iPad / tablet: same logo style as phones */
@media (min-width: 769px) and (max-width: 1024px) {
  nav {
    padding-right: 56px;
  }

  .floating-logo {
    width: 160px;
    height: 160px;
    top: 80px;
    right: auto;
    left: calc(50% - 80px);
    transform: rotate(0deg);
  }

  .floating-logo.stuck {
    width: 48px;
    height: 48px;
    left: auto;
    right: 2rem;
    box-shadow: var(--shadow-sm);
  }

  .hero-title-logo {
    font-size: clamp(1.8rem, 5.5vw, 2.8rem) !important;
  }
}

@media (max-width: 768px) {
  .hero-circle--1 {
    width: 200px;
    height: 200px;
    top: -60px;
    left: -60px;
  }

  .hero-circle--2 {
    width: 100px;
    height: 100px;
    top: 5%;
    right: 10%;
  }

  .hero-circle--3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: -20px;
  }

  .hero-circle--4 {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 5%;
  }

  .hero-circle--5 {
    width: 130px;
    height: 130px;
    bottom: 10%;
    left: -40px;
  }

  .hero-circle--6 {
    width: 50px;
    height: 50px;
    bottom: 25%;
    right: 8%;
  }

  .hero-circle--7 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: 30%;
  }

  .floating-logo {
    width: 160px;
    height: 160px;
    top: 80px;
    right: auto;
    left: calc(50% - 80px);
    transform: rotate(0deg);
  }

  .floating-logo.stuck {
    width: 48px;
    height: 48px;
    left: calc(100% - 128px);
    box-shadow: var(--shadow-sm);
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
  }

  .hero-title-logo {
    font-size: clamp(1.8rem, 5.5vw, 2.8rem) !important;
  }

  .header-content {
    position: relative;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: -2rem;
    right: -2rem;
    background: var(--white);
    flex-direction: column;
    padding: 0.5rem 1rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.8rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700) !important;
    font-size: 1rem;
  }

  nav a:hover {
    color: var(--gray-900) !important;
    background: var(--gray-50);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 60vh;
    padding: 14rem 1.5rem 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .canvas-wrapper {
    aspect-ratio: 4 / 3;
    max-height: 65vh;
    border-radius: var(--radius);
    width: calc(100% - 2rem);
  }

  .tool-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 6px 8px;
  }

  .tool-btn span {
    display: none;
  }

  .grooming-panel {
    bottom: 4.25rem;
  }

  .grooming-btn {
    min-width: 38px;
    min-height: 38px;
    padding: 4px 6px;
  }

  .grooming-btn span {
    display: none;
  }

  .activities-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    padding: 0 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .contact-info {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .contact-item {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .about-section,
  .horse-section,
  .activities-section,
  .contact-section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-title-logo {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
  }

  .hero-title-logo .hero-title-star {
    width: 0.5em;
    height: 0.5em;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .floating-logo {
    width: 140px;
    height: 140px;
    top: 75px;
    left: calc(50% - 70px);
  }

  .floating-logo.stuck {
    width: 42px;
    height: 42px;
    left: calc(100% - 120px);
  }

  .logo {
    font-size: 1.1rem;
  }

  .header-star {
    width: 12px;
    height: 12px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .canvas-wrapper {
    aspect-ratio: 3 / 3;
    max-height: 55vh;
    width: calc(100% - 1.5rem);
    border-radius: var(--radius-sm);
  }

  .tool-feedback {
    font-size: 0.78rem;
    padding: 0.4rem 1rem;
  }

  .hero-label {
    font-size: 0.7rem;
    padding: 0.3rem 0.9rem;
  }

  .hero {
    padding: 12.5rem 1rem 2.5rem;
  }

  .contact-grid {
    padding: 1.5rem 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

@media (max-width: 360px) {
  .hero-title-logo {
    font-size: 1.35rem !important;
  }

  .floating-logo {
    width: 120px;
    height: 120px;
    top: 72px;
    left: calc(50% - 60px);
  }

  .floating-logo.stuck {
    width: 36px;
    height: 36px;
    left: calc(100% - 112px);
  }

  .hero-content {
    max-width: 100%;
  }

  .canvas-wrapper {
    aspect-ratio: 3 / 4;
    max-height: 50vh;
  }

  .horse-toolbar {
    gap: 0.2rem;
    padding: 0.3rem;
    border-radius: 10px;
  }

  .hero {
    min-height: 50vh;
    padding: 11rem 0.75rem 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .logo {
    font-size: 0.95rem;
  }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 2rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--gray-700);
}

.cookie-banner-text a {
  color: var(--blue);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem 1.25rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    max-width: 160px;
  }
}

/* Landscape on short viewports (phones in landscape) */
@media (orientation: landscape) and (max-height: 500px) {
  .floating-logo {
    width: 80px;
    height: 80px;
    top: 8px;
    right: 2%;
    left: auto;
    transform: rotate(10deg);
  }

  .floating-logo.stuck {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 1.5rem;
  }
}
