/* MobileHairstyle - Design System */
/* Senior-friendly design with large fonts, high contrast, and touch-friendly buttons */

:root {
  /* Brand colors from logo */
  --brand-lilac: #6F4394;
  --brand-green: #50B36C;
  --brand-dark: #4F2E85;
  
  /* Semantic colors */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 15%);
  --primary: #6F4394;
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: #50B36C;
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(0, 0%, 96%);
  --muted-foreground: #333;
  --accent: #A7E7F0;
  --accent-foreground: #6F4394;
  --border: hsl(0, 0%, 90%);
  --input: hsl(0, 0%, 90%);
  --ring: #6F4394;
  
  /* Typography - Large and readable */
  --text-base: 1.0rem; /* 18px */
  --text-lg: 1.125rem; /* 20px */
  --text-xl: 1.25rem; /* 24px */
  --text-2xl: 2rem; /* 32px */
  --text-3xl: 2.5rem; /* 40px */
  --text-4xl: 3rem; /* 48px */
  
  /* Spacing */
  --spacing-xs: 0.3rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1.2rem;
  --spacing-lg: 1.2rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 3.2rem;
  
  /* Border radius */
  --radius: 1.5rem;
  
  /* Shadows */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
  min-height: 52px;
}

.logo-link {
  display: flex;
  align-items: center;
  width: 290px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo {
  height: 100px;
  width: auto;
  display: block;
  transform: translateX(-90px) scale(5.3);
  transform-origin: left center;
}

.nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--foreground);
  padding: var(--spacing-xs) var(--spacing-xs);
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 300px;
  background: var(--background);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-overlay.active {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  min-height: 44px; /* Touch-friendly */
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: transparent;
  box-shadow:
    0 -10px 24px rgba(255, 255, 255, 0.52),
    0 10px 24px rgba(111, 67, 148, 0.38),
    0 4px 12px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  background: var(--muted);
  color: var(--primary);
  text-decoration: none;
  box-shadow:
    0 -12px 28px rgba(255, 255, 255, 0.58),
    0 12px 26px rgba(111, 67, 148, 0.34),
    0 5px 14px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-outline {
  /* background: hsl(200, 85%, 65%); */
  background: #013C7C;
  /* color: var(--foreground); */
  color: var(--primary-foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--muted);
  text-decoration: none;
}

.btn-lg {
  padding: var(--spacing-sm) var(--spacing-sm);
  font-size: var(--text-base);
}

.hero-cta {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  padding-left: calc(var(--spacing-lg) + 0.4rem);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-content {
  padding: var(--spacing-lg);
}

.card-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

/* Sections */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-muted {
  background: var(--muted);
}

.section-accent {
  background: linear-gradient(
    180deg,
    #4F2E85 0%,
    #ffffff 95%
  );
}

/* Hero */
.hero {
  padding: var(--spacing-2xl) 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.team-grid > * {
  min-width: 0;
}

.team-member {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 1.75rem;
  padding: 1.1rem 0.8rem 0.8rem;
  box-shadow: 0 14px 32px rgba(79, 46, 133, 0.08);
}

.team-photo-frame {
  position: relative;
  width: min(100%, 300px);
  height: 270px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.team-photo-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 62%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0) 78%);
  filter: blur(6px);
  pointer-events: none;
}

.rounded-full {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  border-radius: 50%;
}

.team-photo {
  position: relative;
  z-index: 1;
  transform: scale(1.28);
  transform-origin: center 18%;
}

.team-role {
  color: #8c8c94;
  font-size: 0.85rem;
  margin-top: -0.50rem;
  margin-bottom: 0.25rem;
}

.team-member h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.customer-logos-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  overflow: hidden;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2rem, 8vw, 7rem);
  z-index: 1;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--background) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--background) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 24s linear infinite;
}

.logo-marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.75rem);
  padding-right: clamp(2rem, 4vw, 3.75rem);
  flex-shrink: 0;
}

.partner-logos {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: grayscale(0.08);
  opacity: 0.95;
}

@keyframes logo-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.3333%);
  }
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-lg);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm);
  font-size: var(--text-base);
  border: 2px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s;
  min-height: 44px; /* Touch-friendly */
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 4rem;
  align-items: start;
}

.contact-copy {
  max-width: 680px;
}

.contact-eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.contact-title {
  font-size: clamp(1.5rem, 2.5vw, 2.9rem);
  line-height: 0.95;
  margin-bottom: var(--spacing-lg);
}

.contact-intro {
  font-size: var(--text-xl);
  color: var(--muted-foreground);
  max-width: 38rem;
  margin-bottom: var(--spacing-2xl);
}

.contact-steps {
  display: grid;
  gap: 1.75rem;
}

.contact-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

.contact-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--muted);
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-step h3 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.contact-step p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.contact-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 246, 252, 0.98) 100%);
  border-radius: 2rem;
  box-shadow: 0 30px 60px rgba(1, 60, 124, 0.12);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-card h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  text-align: center;
  color: #5c5f67;
  margin-bottom: 1.75rem;
}

.contact-form .form-label {
  font-size: 1rem;
  font-weight: 500;
  color: #74767d;
  margin-bottom: 0.45rem;
}

.contact-form .form-input {
  background: #f0f0f1;
  border: 1px solid #d9d9df;
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
}

.contact-form .form-input::placeholder {
  color: #a2a3a8;
}

.contact-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 0.5rem;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

/* Footer */
.footer {
  background: var(--brand-dark);
  color: var(--background);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer a {
  color: var(--background);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-logo {
  display: inline-block;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

/* Sticky mobile call button */
.mobile-call-btn {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 50;
  display: none;
  box-shadow: var(--shadow-lg);
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mt-lg { margin-top: var(--spacing-lg); }
.space-y-md > * + * { margin-top: var(--spacing-md); }
.space-y-lg > * + * { margin-top: var(--spacing-lg); }

/* Icons */
.icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.icon-lg {
  width: 64px;
  height: 64px;
}

/* Number badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

/* Testimonials */
.testimonial {
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.testimonial-author {
  font-style: normal;
  font-weight: 600;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

/* Star rating */
.stars {
  color: #fbbf24;
  font-size: var(--text-xl);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
  }

  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    height: 56px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-card {
    border-radius: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .mobile-call-btn {
    display: flex;
    bottom: 80px; /* Above any browser UI */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .logo-link {
    width: 210px;
  }

  .btn-lg {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--text-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
  }
}

/* FAQ Section */
  .faq {
    max-width: 800px;
    margin: 2rem auto;
  }

  .faq-item {
    border-bottom: 1px solid #ddd;
  }

  .faq-question {
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
  }

  .faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
  }

  .faq-arrow {
    transition: transform 0.2s ease;
  }

  .faq-answer {
    padding: 0 0 1rem 0;
  }

  /* =========================
   HERO SLIDER (robust)
   ========================= */

.hero-slider {
  position: relative;
  overflow: hidden;
}

/* Wichtig: damit Pfeile sicher über allem liegen */
.hero-slider .slider {
  position: relative;
}

/* Slides aus-/einblenden (hart, konfliktarm) */
.hero-slider .slide {
  display: none !important;
}

.hero-slider .slide.is-active {
  display: block !important;
  animation: heroFade 0.35s ease-in-out;
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Pfeile: z-index + pointer-events, damit Klicks ankommen */
.hero-slider .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999 !important;
  pointer-events: auto !important;

  border: 0;
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.45em 0.45em;
  border-radius: 999px;
  user-select: none;
}

.hero-slider .slider-arrow.prev { left: 12px; }
.hero-slider .slider-arrow.next { right: 12px; }

/* Dots */
.hero-slider .slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hero-slider .slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  padding: 0;
}

.hero-slider .slider-dots button.is-active {
  background: rgba(0,0,0,0.75);
}

/* ==================================
   Hero Slider – Pfeile nur bei Hover
   ================================== */

/* Standard: Pfeile verstecken */
.hero-slider .slider-arrow {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Bei Hover über den Slider einblenden */
.hero-slider:hover .slider-arrow {
  opacity: 1;
  visibility: visible;
}

/* Mobile / Touch-Geräte: Pfeile dauerhaft aus */
@media (hover: none) {
  .hero-slider .slider-arrow {
    display: none !important;
  }
}

/* Bildernachweis */
.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.ai-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;

  font-size: 11px;
  line-height: 1;
  padding: 5px 8px;

  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;

  border-radius: 4px;
  backdrop-filter: blur(4px);

  pointer-events: none;
  z-index: 10;
}

/* News Teaser Startseite */
.teaser-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Stapelt sich auf dem Handy untereinander */
    margin-top: 0px;
    margin-bottom: 50px;
}

.blog-card {
    flex: 1;
    min-width: 280px; /* Breite auf dem Handy */
    border: 1px solid #eee;
    padding: 15px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.blog-card h3 { 
	font-size: var(--text-lg); 
	margin: 10px 0; 
	line-height: 1.4; 
}
	
.blog-card h3 a { 
	color: #262626; 
}
	
.blog-card p { 
	font-size: 16px; 
	color: var(--muted-foreground);
	line-height: 1.4; 
}
	
.btn-read-more { 
	display: inline-block;
	font-size: 14px !important;
	color: var(--primary, #d32f2f); 
	text-decoration: none; 
}
	
.btn-read-more a { 
	font-size: 14px !important;
	color: var(--primary, #d32f2f); 
	font-weight: normal;
}

  .faq {
    max-width: 800px;
    margin: 2rem auto;
  }

  .faq-item {
    border-bottom: 1px solid #ddd;
  }

  .faq-question {
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.25rem;
    cursor: pointer;
  }

  .faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
  }

  .faq-arrow {
    transition: transform 0.2s ease;
    color: var(--primary);
  }

  .faq-answer {
    padding: 0 0 1rem 0;
  }