/* ============================================
   FRINTROP FOTO - Custom Styles
   Migration von Vite/React zu WBCE
   ============================================ */

/* ==================== Design Tokens ==================== */
:root {
  /* Brand colors (HSL) */
  --brand-blue-1: 205 100% 70%;      /* #6CB6FF */
  --brand-blue-2: 210 59% 45%;       /* #2F6DB3 */
  --accent-red: 358 82% 50%;         /* #E31B23 */
  
  /* Neutrals */
  --bg: 0 0% 100%;
  --fg: 0 0% 10%;
  --muted: 220 14% 96%;
  --muted-fg: 215 16% 47%;
  --border: 214 32% 91%;
  
  /* Spacing & Radius */
  --radius: 12px;
  --container-width: 1440px;
  
  /* Z-index */
  --z-nav: 50;
  --z-modal: 100;
  --z-cookie: 90;
}

/* ==================== Base Reset ==================== */

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

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--fg));
  background: hsl(var(--bg));
  margin: 0;
  padding: 0;
}

/* Link-Styles zurücksetzen */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

/* ==================== Typography ==================== */

h1 { 
  font-size: clamp(2rem, 5vw, 3.5rem); 
  font-weight: 700; 
  line-height: 1.1; 
  margin: 0 0 1.5rem; 
}

h2 { 
  font-size: clamp(1.75rem, 4vw, 1.875rem); 
  font-weight: 700; 
  line-height: 1.2; 
  margin: 0rem 0 3rem; 
}

h3 { 
  font-size: 1.5rem; 
  font-weight: 600; 
  line-height: 1.3; 
  margin: 1.5rem 0 0.75rem; 
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.25rem 0 0.5rem;
}

p { 
  margin: 0 0 1rem; 
  line-height: 1.5;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==================== Navigation ==================== */
.ff-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: linear-gradient(90deg, hsl(var(--brand-blue-1)), hsl(var(--brand-blue-2)));
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ff-nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 2rem;
}

.ff-nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.ff-nav-logo:hover {
  color: white;
  opacity: 0.9;
}

.ff-nav-menu {
  display: flex !important;
  flex-direction: row !important;
  gap: 2rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  align-items: center;
}

.ff-nav-menu li {
  margin: 0;
  display: inline-block;
}

.ff-nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.ff-nav-menu a:hover {
  opacity: 0.8;
  color: white;
}

.ff-nav-actions {
  display: flex;
  gap: 0.75rem;
  margin-left: 0;
}

/* Primary button in navigation (white) */
.ff-btn-nav-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 36px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #252525;
  background: white;
  border: 1px solid white;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.ff-btn-nav-primary:hover {
  background: hsl(0, 0%, 86%);
  color: #252525;
}

/* Call button in navigation (outline) */
.ff-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 37px;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  background: transparent;
  border: 1px solid rgb(95, 153, 201);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.ff-btn-call:hover {
  background: white;
  color: hsl(var(--brand-blue-2));
}

.ff-btn-call svg {
  flex-shrink: 0;
}

/* Mobile menu toggle */
.ff-nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1.2;
  min-width: 48px;
  min-height: 48px;
}

@media (max-width: 768px) {
  .ff-nav-inner {
    flex-wrap: wrap;
  }
  
  .ff-nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, hsl(var(--brand-blue-1)), hsl(var(--brand-blue-2)));
    flex-direction: column !important;
    padding: 1rem;
    gap: 0 !important;
    margin: 0 !important;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: var(--z-nav);
  }
  
  .ff-nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }
  
  .ff-nav-menu li {
    display: block;
    width: 100%;
  }
  
  .ff-nav-menu a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  
  .ff-nav-menu li:last-child a {
    border-bottom: 0;
  }
  
  .ff-nav-toggle {
    display: block;
    margin-left: auto;
  }
  
  .ff-nav-actions {
    display: none;
  }
}

/* ==================== Hero ==================== */
.ff-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--brand-blue-1) / 0.1), hsl(var(--brand-blue-2) / 0.1));
}

/* Higher hero for video background */
.ff-hero:has(.ff-hero-video-bg) {
  min-height: 600px;
}

.ff-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('/templates/capacity/img/hero-studio-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
}

/* Container for video background with overlay */
.ff-hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ff-hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
  filter: blur(3px);
}

/* Dark overlay only for video hero */
.ff-hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

.ff-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  padding: 2rem;
}

/* White text for video hero */
.ff-hero-video-bg ~ .ff-hero-content p {
  font-size: clamp(1.75rem, 6vw, 0.875rem);
  color: white;
}

.ff-hero-video-bg ~ .ff-hero-content h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  margin-bottom: 1rem;
}

.ff-hero-header {
  position: relative;
  z-index: 3;
  text-align: center;
  background: transparent;
}

.ff-hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  font-weight: 700;
}

.ff-hero p {
  font-size: 1.25rem;
  color: hsl(var(--muted-fg));
  margin-bottom: 2rem;
}

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

/* ==================== Buttons ==================== */
.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.ff-btn-primary {
  background: hsl(var(--brand-blue-2));
  color: white;
}

.ff-btn-primary:hover {
  background: hsl(210 59% 40%);
  color: white;
}

.ff-btn-secondary {
  background: white;
  color: hsl(var(--brand-blue-2));
  border: 1px solid #e1e8f0;
}

.ff-btn-secondary:hover {
  background: #66bfff;
  color: white;
}

.ff-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 38px;
}

.ff-btn:focus-visible {
  outline: 3px solid hsl(var(--brand-blue-1) / 0.5);
  outline-offset: 2px;
}

/* ==================== Cards ==================== */
.ff-card {
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.ff-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Card for passbilder */
.ff-card-passbilder {
  background: hsl(var(--bg));
  border: 0px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Card for sortiment */
.ff-card-sortiment {
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ff-card-sortiment:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.ff-card-image {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.ff-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ff-card-sortiment:hover .ff-card-image img {
  transform: scale(1.05);
}

.ff-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
}

.ff-card-content {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
}

.ff-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ff-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--brand-blue-2));
}

.ff-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.ff-card-body {
  padding: 1.5rem;
}

.ff-card-body p {
  color: hsl(var(--muted-fg));
  margin: 0;
}

/* ==================== Gallery ==================== */
.ff-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ff-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ff-gallery-item {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.ff-gallery-item:hover {
  transform: scale(1.05);
}

.ff-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== Scroll to Top Button ==================== */
#ff-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--brand-blue-2));
  color: white;
  border: 0;
  cursor: pointer;
  font-size: 1.25rem;
  display: none;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  opacity: 0.9;
}

#ff-scroll-top:hover {
  background: #66bfff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

#ff-scroll-top:active {
  transform: translateY(0);
}

.ff-card-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, hsl(var(--brand-blue-1)), hsl(var(--brand-blue-2)));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Icon for passbilder */
.ff-card-icon-passbilder {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, hsl(var(--brand-blue-1)), hsl(var(--brand-blue-2)));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Icon for sortiment */
.ff-card-icon-sortiment {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--brand-blue-2));
}

.ff-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.ff-card h4 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.ff-card p {
  color: hsl(var(--muted-fg));
  margin: 0;
}

.ff-card ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ff-card li {
  margin: 0.25rem 0;
}

/* ==================== Price Card ==================== */
.ff-price-card {
  position: relative;
  background: hsl(var(--bg));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.ff-price-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ff-price-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: hsl(var(--accent-red));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ff-price-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.ff-price-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--brand-blue-2));
  margin: 1rem 0;
  display: block;
}

.ff-price-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.ff-price-card li {
  padding: 0.5rem 0;
  display: flex;
  align-items: start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  margin: 0;
}

.ff-price-card li::before {
  content: '✓';
  color: hsl(var(--brand-blue-2));
  font-weight: 700;
  flex-shrink: 0;
}

/* ==================== Modal ==================== */
.ff-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.ff-modal.open {
  opacity: 1;
  visibility: visible;
}

.ff-modal-dialog {
  background: hsl(var(--bg));
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.ff-modal-header {
  position: sticky;
  top: 0;
  background: hsl(var(--bg));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.ff-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.ff-modal-close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  color: hsl(var(--fg));
}

.ff-modal-close:hover {
  background: hsl(var(--muted));
}

.ff-modal-body {
  padding: 1.5rem;
}

.ff-modal-body h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.ff-modal-body h3:first-child {
  margin-top: 0;
}

/* ==================== Cookie Banner ==================== */
.ff-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie);
  background: hsl(var(--bg));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.ff-cookie.show {
  transform: translateY(0);
}

.ff-cookie-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ff-cookie p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.ff-cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==================== Accordion (FAQ) ==================== */
.ff-accordion {
  border: 0px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.ff-accordion-item {
  border-bottom: 1px solid hsl(var(--border));
}

.ff-accordion-item:last-child {
  border-bottom: 0;
}

.ff-accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
  color: hsl(var(--fg));
  font-family: inherit;
}

.ff-accordion-trigger:hover {
  background: transparent;
}

.ff-accordion-trigger::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.ff-accordion-trigger.open::after {
  transform: rotate(45deg);
}

.ff-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ff-accordion-content-inner {
  padding: 0 1.5rem 1.25rem;
  color: hsl(var(--muted-fg));
}

/* ==================== Utility Classes ==================== */
.ff-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.ff-section {
  width: 100%;
  padding: 4rem 0;
}

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

.ff-section-white {
  background: white;
}

.ff-grid {
  display: grid;
  gap: 1.5rem;
}

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

.ff-grid-3 { 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

.ff-grid-4 { 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
}

@media (max-width: 768px) {
  .ff-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .ff-grid-3,
  .ff-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .ff-section {
    padding: 2rem 0;
  }
}

.ff-text-center { 
  text-align: center; 
}

.ff-text-muted { 
  color: hsl(var(--muted-fg)); 
}

/* ==================== Accessibility ==================== */
*:focus-visible {
  outline: 3px solid hsl(var(--brand-blue-1) / 0.5);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==================== Footer Overrides ==================== */
footer.ff-section {
  margin-top: 3rem;
}

footer.ff-section h3,
footer.ff-section h4 {
  margin-top: 0;
}

footer.ff-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

footer.ff-section li {
  margin: 0.25rem 0;
}

footer.ff-section a {
  color: hsl(var(--fg));
  text-decoration: none;
  transition: color 0.2s;
}

footer.ff-section a:hover {
  color: hsl(var(--brand-blue-2));
}

