/* Base */
:root {
  --color-primary: #B48A57;  /* Updated Logo-Farbe (goldfarben) */
  --color-accent: #ff6b6b;
  --color-accent-2: #8b5cf6;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-background: #fff;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', serif;
  --container-max: 1200px;
  --container-padding: clamp(1rem, 5vw, 3rem);
  --spacing-section: clamp(4rem, 10vw, 8rem);
}

/* Ensure the hamburger/nav-toggle is only visible on small screens and hidden on desktop
   We keep this minimal so desktop layout is unchanged. */
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-background);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.section-sub {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

.lead {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin: 1.5rem 0;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* MOBILE HEADER - EXTREME SIZE REDUCTION */
@media (max-width: 768px) {
  .site-header {
    padding: 0.1rem 0 !important; /* MINIMAL padding */
    min-height: auto !important;
  }
  
  .header-inner {
    gap: 0.5rem !important;
    min-height: auto !important;
  }
  
  .brand {
    gap: 0.3rem !important;
    align-items: center !important;
  }
  
  .logo {
    height: 30px !important; /* TINY logo */
    width: auto !important;
  }
  
  .brand-text {
    line-height: 1 !important;
  }
  
  .name {
    font-size: 0.75rem !important; /* TINY text */
    margin: 0 !important;
    line-height: 1 !important;
  }
  
  .brand-slogan {
    font-size: 0.6rem !important; /* TINY slogan */
    margin: 0 !important;
    line-height: 1 !important;
    opacity: 0.7 !important;
  }
  
  /* Make navigation compact */
  .header-nav {
    gap: 0.3rem !important;
    font-size: 0.8rem !important;
  }
  
  .header-nav a {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.75rem !important;
  }
  
  .contact-trigger {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.7rem !important;
  }
  
  .social {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.7rem !important;
  }
}

/* EXTRA SMALL MOBILE - EVEN SMALLER */
@media (max-width: 480px) {
  .site-header {
    padding: 0.05rem 0 !important;
  }
  
  .logo {
    height: 25px !important;
  }
  
  .name {
    font-size: 0.7rem !important;
  }
  
  .brand-slogan {
    display: none !important; /* Hide completely on very small screens */
  }
  
  .header-nav {
    font-size: 0.7rem !important;
  }
  
  .header-nav a {
    font-size: 0.7rem !important;
    padding: 0.1rem 0.3rem !important;
  }
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--color-primary);
}

.contact-trigger {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
  padding: 0.6rem 1.2rem; /* larger touch/click area */
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  border-radius: 999px; /* pill */
  font-size: 1rem;
}

.contact-trigger:hover {
  background: color-mix(in srgb, var(--color-primary) 80%, black 20%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.contact-trigger:focus {
  outline: none;
  text-decoration: none;
  box-shadow: 0 0 0 4px rgba(196,148,94,0.18);
  transform: translateY(-1px);
}

.contact-trigger svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  fill: white;
}

.contact-trigger span {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.95rem;
}

/* make it visually match the nav links on small screens */
@media (max-width: 768px) {
  .contact-trigger {
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.03);
  }
  .contact-trigger:focus {
    box-shadow: 0 0 0 3px rgba(196,148,94,0.15);
  }
}

.contact-popup {
  position: fixed;
  top: 80px;
  right: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1rem);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.contact-popup.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

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

.contact-content h3 {
  margin-bottom: 0.5rem;
}

.contact-content a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-content a:hover,
.contact-content a:focus {
  color: var(--color-primary);
}
.brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.logo {
  /* slightly larger than original, minimal change */
  height: 160px;
  width: auto;
  transition: height 0.3s ease, transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Mobile Logo Optimizations */
@media (max-width: 768px) {
  .logo {
    height: 60px; /* Deutlich kleiner für mobile Geräte */
  }
}

@media (max-width: 480px) {
  .logo {
    height: 50px; /* Noch kleiner für sehr kleine Bildschirme */
  }
}

.name {
  font-size: 1.5rem;
  margin: 0;
  transition: font-size 0.3s ease;
}

/* Mobile Name/Brand Text Optimizations */
@media (max-width: 768px) {
  .name {
    font-size: 1.1rem; /* Kleinere Schrift für mobil */
  }
  
  .brand-slogan {
    font-size: 0.8rem; /* Kleinerer Slogan */
    transition: font-size 0.3s ease, opacity 0.3s ease;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 1rem; /* Noch kleiner */
  }
  
  .brand-slogan {
    font-size: 0.75rem;
  }
}

.role {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(139,92,246,0.06), transparent 15%), radial-gradient(circle at 85% 80%, rgba(255,107,107,0.04), transparent 18%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  padding: 6rem 0;
  background: linear-gradient(to bottom, #f8f8f8, white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 1rem;
  margin: 2rem 0;
.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.hero-lead {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.4;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}
}
.about {
  padding: 6rem 0;
  background: white;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.section-lead {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin-bottom: 4rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

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

.feature p {
  line-height: 1.6;
  color: var(--color-text-light);
}

.meta-list {
  list-style: none;
  margin: 2rem 0;
}

.meta-list li {
  margin: 0.5rem 0;
}

.social-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social {
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Bio Section */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.bio-card {
  text-align: center;
}

.bio-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: #f8f8f8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service {
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Video Grid - Professional Layout */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-height: none !important; /* Remove height restriction for better layout */
  overflow: visible !important;
  padding: 0;
}

/* Filter Buttons */
.video-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: rgba(180, 138, 87, 0.1);
  border: 2px solid rgba(180, 138, 87, 0.2);
  color: var(--color-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn:focus {
  background: rgba(180, 138, 87, 0.2);
  border-color: var(--color-primary);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 138, 87, 0.3);
}

.filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(180, 138, 87, 0.4);
}

/* Desktop Layout - 3x3 Grid */
@media (min-width: 769px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-height: calc(260px * 3 + 3rem); /* 3 rows visible */
    overflow-y: auto;
    padding-right: 0.5rem;
  }
  
  .video-thumb {
    height: 260px;
    min-height: 260px;
  }
  
  .video-card .play-icon {
    width: 64px;
    height: 64px;
  }
  
  .play-icon svg { 
    width: 24px;
    height: 24px;
  }
}

/* Tablet Layout */
@media (min-width: 481px) and (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .video-thumb {
    height: 200px;
    min-height: 200px;
  }
  
  .video-card .play-icon {
    width: 56px;
    height: 56px;
  }
}

/* Mobile Layout - Single Column */
@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  
  .video-thumb {
    height: 200px;
    min-height: 200px;
  }
  
  .video-card .play-icon {
    width: 52px;
    height: 52px;
  }
  
  .video-filters {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

.video-card {
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  transition: transform 0.3s ease;
}

/* Elegant hover effect - scale up with shadow */
.video-card:hover {
  transform: scale(1.03);
}

.video-card:hover .video-thumb {
  box-shadow: 0 20px 40px rgba(180, 138, 87, 0.3);
}

/* Kategorie-Badge auf Thumbnails - Durchsichtig und elegant */
.video-card::after {
  content: attr(data-category);
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
  .video-card::after {
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 5px 10px;
  }
}

.video-thumb {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
}

.video-thumb .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Elegant Play Button - Visionary Motion Style */
.video-card .play-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(180, 138, 87, 0.95) 0%, 
    rgba(180, 138, 87, 0.85) 100%
  );
  display: inline-grid;
  place-items: center;
  box-shadow: 
    0 8px 20px rgba(180, 138, 87, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: all 0.3s ease;
  z-index: 10;
}

.video-card:hover .play-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, 
    rgba(180, 138, 87, 1) 0%, 
    rgba(180, 138, 87, 0.9) 100%
  );
  box-shadow: 
    0 12px 30px rgba(180, 138, 87, 0.5),
    0 0 0 4px rgba(255, 255, 255, 0.3);
}

.play-icon svg { 
  width: 22px;
  height: 22px;
  fill: white;
  margin-left: 2px; /* Slight offset for better visual centering */
}

/* Preview layer covers the thumb when playing (muted preview) */
.video-thumb .preview-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* keep under gradient overlays */
  pointer-events: none; /* don't block card clicks */
  background: transparent;
}

.video-card .play-icon { z-index: 5; }

/* Video info and meta - hidden since we use category badges */
.video-info {
  display: none !important;
}

.video-thumb {
  margin-bottom: 0; /* No spacing needed since info is hidden */
}

.video-thumb.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.1) 100%
  );
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(0,0,0,0.1) 0%, 
    rgba(0,0,0,0.3) 60%,
    rgba(0,0,0,0.5) 100%
  );
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Remove the hover darkening effect */
.video-card:hover .video-thumb::after {
  opacity: 1; /* Keep same opacity on hover */
}

.video-info h4 {
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* Gallery */
.gallery {
  padding: 6rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0;
  background: #f8f8f8;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-primary);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  text-align: center;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

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

.footer-contact svg {
  flex-shrink: 0;
}

.footer-contact {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

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

.contact-foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
}

.modal.is-active {
  display: block;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: black;
  padding: 1rem;
  border-radius: 0.5rem;
  max-width: 90vw;
  max-height: 90vh;
  min-width: 320px;
  min-height: 180px;
  overflow: visible; /* allow close button to sit outside without being clipped */
  z-index: 1001; /* ensure modal content stacks above backdrop */
}

.modal-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

.modal-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  padding: 1rem;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.modal-close {
  position: absolute;
  top: 0.5rem; /* place inside the modal content so it's always reachable */
  right: 0.5rem;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  z-index: 1003; /* ensure it's above iframe and overlays */
  pointer-events: auto;
  min-width: 44px;
  min-height: 44px; /* larger touch target */
}

.modal-close:focus {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.45);
}

/* Skip-to-content link - visible on focus */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  background: #000;
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  transform: translateY(-120%);
  transition: transform 0.15s ease-in-out;
  z-index: 2000;
  font-size: 0.95rem;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
}

.modal-frame {
  width: 100%;
  height: 100%;
}

.modal-frame video {
  width: 100%;
  max-height: 80vh;
  background: #000;
}

/* Ensure iframe/video inside modal sits below the close button */
.modal-frame iframe,
.modal-frame video {
  position: relative;
  z-index: 1000;
}

.modal-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.modal-play-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: white;
}

.modal-play-button svg {
  width: 32px;
  height: 32px;
  fill: var(--color-primary);
  margin-left: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: #C4945E;
  opacity: 0.9;
}

.btn-ghost {
  background: none;
  color: var(--color-text);
  border: 1px solid currentColor;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .social-row {
    justify-content: center;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Make header nav wrap and stay accessible on small screens */
  .header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
  }

  .header-nav a,
  .header-nav .social,
  .header-nav .contact-trigger {
    white-space: nowrap;
    min-width: 0;
  }
  
  .brand {
    flex-direction: column;
    align-items: center; /* zentriert Logo + Text auf mobilen Geräten */
  }

  .logo {
    /* kleinere Logo-Größe auf Mobilgeräten (zentriert durch .brand) */
    height: 110px;
  }


/* Hide header on scroll (mobile): slide out when scrolling down, slide in when scrolling up */
@media (max-width: 768px) {
  .site-header.hide-on-scroll {
    transition: transform 0.28s ease, opacity 0.28s ease;
    will-change: transform, opacity;
    /* switch to fixed so it overlays content cleanly and can be translated out of view */
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1100; /* ensure above other elements */
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* hidden state: move header fully out of view */
  .site-header.hide-on-scroll.is-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
  }

  /* shown state: visible again */
  .site-header.hide-on-scroll.is-shown {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Compact header state on mobile: reduce height, hide slogan and shrink logo */
@media (max-width: 768px) {
  .site-header.compact {
    height: 56px;
    padding: 0.35rem 0;
    transition: height 0.22s ease, padding 0.22s ease, transform 0.22s ease;
  }

  .site-header.compact .brand {
    gap: 0.6rem;
    align-items: center;
  }

  .site-header.compact .logo {
    height: 44px;
  }

  /* Keep brand text (name + slogan) visible in compact mode — smaller/condensed but readable */
  .site-header.compact .brand-text {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .site-header.compact .brand-slogan {
    font-size: 0.85rem;
    opacity: 0.9;
  }

  /* Initial visible state on mobile: make logo larger and keep name + slogan visible.
     We target .site-header.is-shown so it overrides earlier !important reductions. */
  .site-header.is-shown {
    transition: transform 0.28s ease, opacity 0.28s ease, height 0.22s ease;
  }

  .site-header.is-shown .logo {
    height: 140px; /* larger initial logo on mobile (increased per user request) */
  }

  .site-header.is-shown .brand-text {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .site-header.is-shown .brand-slogan {
    font-size: 1rem;
    opacity: 1;
    display: block !important; /* ensure visible even when small-screen rules hide it */
  }

  /* On very small screens the theme hid the slogan; force it visible when header is in shown state */
  @media (max-width: 480px) {
    .site-header.is-shown .logo { height: 150px; }
    .site-header.is-shown .brand-slogan { display: block !important; font-size: 1rem !important; opacity: 1 !important; }
    .site-header.is-shown .brand-text { opacity: 1 !important; }
  }

  /* Make nav links smaller in compact mode */
  .site-header.compact .header-nav a,
  .site-header.compact .contact-trigger {
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
  }
}

/* ensure main content isn't hidden under a fixed header on mobile; JS will set --header-height */
@media (max-width: 768px) {
  main {
    padding-top: var(--header-height, 0px);
  }
}

/* Emergency CSS hook: when JS cannot rely on scroll events, this class hides the header fully */
html.mobile-header-hidden .site-header {
  display: none !important;
  transform: translateY(-110%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html.mobile-header-hidden main {
  padding-top: 0 !important;
}
  /* Nav toggle (hamburger) - visible on small screens */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.35rem;
    z-index: 1200; /* ensure it's above other header elements and tappable */
    pointer-events: auto;
  }

  .nav-toggle:focus {
    outline: 2px solid rgba(196,148,94,0.18);
    border-radius: 6px;
  }

  .nav-toggle-box {
    width: 34px;
    height: 22px;
    display: inline-block;
    position: relative;
  }

  .nav-toggle-inner,
  .nav-toggle-inner::before,
  .nav-toggle-inner::after {
    display: block;
    background: var(--color-text);
    height: 2px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle-inner { top: 50%; transform: translateY(-50%); }
  .nav-toggle-inner::before { content: ''; top: -8px; }
  .nav-toggle-inner::after { content: ''; top: 8px; }

  /* Collapsible nav with slide-down animation using max-height */
  .header-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms cubic-bezier(.2,.9,.3,1), padding 220ms ease;
    padding: 0 0; /* collapsed */
  }

  .header-nav.is-open {
    max-height: 480px; /* enough to show several items; caps the animation */
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.98);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }

  .header-nav.is-open a,
  .header-nav.is-open .social,
  .header-nav.is-open .contact-trigger {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }


/* animate burger -> X when open */
.nav-toggle.open .nav-toggle-inner { opacity: 0; }
.nav-toggle.open .nav-toggle-inner::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .nav-toggle-inner::after { transform: translateY(-8px) rotate(-45deg); }
  /* Mobile-friendly tweaks for video grid and filters */
  .video-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  .video-grid {
    gap: 1.25rem;
  }

  /* reduce heavy shadow/transform effects on touch devices for a cleaner look */
  .video-thumb {
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  }

  .video-card:hover .video-thumb,
  .video-card:hover {
    transform: none; /* remove hover lifts on mobile */
    box-shadow: none;
  }

  .hero {
    padding: clamp(2.5rem, 6vw, 4rem);
  }
}

/* Extra small screens tweaks */
@media (max-width: 480px) {
  /* scale down the play icon for small screens and make it easier to tap */
  .video-card .play-icon {
    width: 56px;
    height: 56px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
  }

  .play-icon svg {
    width: 20px;
    height: 20px;
  }

  /* slightly smaller badge */
  .video-card::after {
    font-size: 11px;
    padding: 5px 8px;
    top: 8px;
    left: 8px;
  }

  /* make modal comfortably fit small screens */
  .modal-content {
    max-width: 96vw;
    max-height: 86vh;
    min-width: 280px;
  }
}

/* Fixes for header / contact / services / social on small screens */
@media (max-width: 768px) {
  /* slightly smaller header padding so top areas aren't pushed off */
  .site-header {
    padding: 0.6rem 0;
  }

  /* make contact button visible and prominent on mobile */
  .contact-trigger {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
  }

  /* reduce logo on small screens to avoid overlapping hero */
  .logo { height: 90px; }

  /* make sure hero doesn't get visually hidden by header */
  .hero { padding-top: 1.5rem; }

  /* ensure services text isn't clipped and wraps naturally */
  .services .service { overflow: visible; }
  .services p, .service p { white-space: normal; word-break: break-word; }

  /* social / instagram row should wrap and be visible */
  .social-row { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  /* even smaller logo */
  .logo { height: 72px; }

  /* touch-friendly video interaction: provide active feedback */
  .video-card:active .video-thumb {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.16);
  }

  .video-card:active .video-thumb::before {
    opacity: 0.08;
  }

  /* increase spacing for service cards so text doesn't look cramped */
  .services-grid { gap: 1.5rem; }
}

/* Extra tweak: ensure very large screens get the larger logo size explicitly */
@media (min-width: 1200px) {
  .logo {
    height: 180px; /* modest increase for very large desktops */
  }
}

/* Ensure brand stays horizontal on desktop (prevent accidental stacking) */
@media (min-width: 640px) {
  /* keep brand horizontal from small-desktop/tablet widths upward */
  .brand {
    flex-direction: row;
    align-items: center;
  }
  .brand-text {
    text-align: left;
  }
}

/* Override for desktop: stack brand name and slogan vertically */
@media (min-width: 1024px) {
  .brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
  }
  .brand-text .name {
    display: block;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    line-height: 1.05;
  }
  .brand-text .brand-slogan {
    display: block;
    margin-top: 0;
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    color: var(--color-text);
    white-space: nowrap; /* keep slogan on a single line */
    hyphens: none;
  }
}

/* Video cards should be visible by default */
.video-card {
  opacity: 1;
  transform: none;
}

/* Fallback player when embedding fails */
.video-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.fallback-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(180, 138, 87, 0.3);
}

.fallback-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.fallback-content:hover img {
  filter: brightness(0.6);
}

.fallback-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(180, 138, 87, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  color: white;
  text-align: center;
  transition: background 0.3s ease;
}

.fallback-overlay:hover {
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(180, 138, 87, 0.2) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.fallback-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #D4A853 100%);
  border: 3px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(180, 138, 87, 0.4);
  color: white;
}

.fallback-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(180, 138, 87, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.fallback-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.fallback-text {
  max-width: 300px;
  margin: 0 1rem;
}

.fallback-text p {
  margin: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.fallback-text strong {
  color: var(--color-primary);
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .fallback-play-btn {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .fallback-play-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .fallback-text {
    font-size: 0.9em;
  }
}

/* Make img placeholders inside .video-thumb fill the area and cover */
.video-thumb img.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* don't block clicks */
}

/* Mobile-friendly tweaks to ensure thumbnails and play icon are tappable and visible */
@media (max-width: 768px) {
  .video-thumb img.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Keep play icon clearly above the image on mobile (some webviews change stacking) */
  .video-thumb .play-icon,
  .video-card .play-icon {
    z-index: 10 !important;
    pointer-events: none; /* tapping the card should open modal, not the icon itself */
  }

  /* Slightly larger tap area on mobile for the whole card */
  .video-card {
    padding: 0.5rem !important;
  }
}

/* Explicit desktop rule: enforce 3 columns x max 3 rows visible (scroll if more) */
@media (min-width: 1024px) {
  :root { --thumb-height-desktop: 160px; }
  .video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    /* show exactly 3 rows on desktop and hide any overflow (no scrollbar) */
    max-height: calc((var(--thumb-height-desktop) + 1rem) * 3);
    overflow: hidden; /* hide extra items */
  }

  .video-thumb {
    height: var(--thumb-height-desktop);
    min-height: var(--thumb-height-desktop);
    aspect-ratio: unset;
    background-size: cover;
  }

  .video-card { padding: 0.4rem; }
}