/* ============================================================
   Studio Noir – Premium Friseursalon
   Stylesheet | Mobile-first, minimalistisch, elegant
   ============================================================ */

/* === Custom Properties === */
:root {
  --schwarz: #111;
  --weiss: #fafafa;
  --gold: #c9a96e;
  --gold-hell: #dfc291;
  --rosa: #d4838f;
  --rosa-hell: #e2a5ae;
  --grau: #888;
  --grau-hell: #1a1a1a;
  --grau-border: #2a2a2a;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --nav-hoehe: 70px;
  --container-max: 1200px;
  --uebergang: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-hoehe);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--weiss);
  background: var(--schwarz);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--uebergang);
}

a:hover {
  color: var(--gold-hell);
}

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

ul {
  list-style: none;
}

/* === Utility === */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--weiss);
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--uebergang);
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--schwarz);
}

.btn-primary:hover {
  background: var(--gold-hell);
  color: var(--schwarz);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
}

.btn-full {
  width: 100%;
}

/* === Scroll-Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-hoehe);
  z-index: 1000;
  transition: background var(--uebergang), box-shadow var(--uebergang);
}

/* Scrolled-Zustand */
.navbar.scrolled {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--weiss);
  letter-spacing: 1px;
}

.nav-logo:hover {
  color: var(--weiss);
}

.nav-logo span {
  font-style: italic;
  color: var(--gold);
}

/* Desktop-Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.7);
  transition: color var(--uebergang);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--uebergang);
}

.nav-link:hover,
.nav-link.active {
  color: var(--weiss);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CTA in Nav */
.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.5rem 1.2rem;
  color: var(--gold) !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--schwarz) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--weiss);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger offen */
.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.72) 100%),
    url('../img/hero.webp') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    );
  pointer-events: none;
}

.hero-content {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--weiss);
}

.hero-title span {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(250, 250, 250, 0.6);
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
}

/* Scroll-Indikator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   Services
   ============================================================ */
.services {
  padding: 7rem 0;
  background: var(--schwarz);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--grau-hell);
  border: 1px solid var(--grau-border);
  padding: 2.5rem 2rem;
  transition: all var(--uebergang);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(201, 169, 110, 0.08);
}

.service-icon {
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--weiss);
}

.service-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--grau-border);
  font-size: 0.95rem;
  color: rgba(250, 250, 250, 0.7);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li span:last-child {
  color: var(--gold);
  font-weight: 600;
}

/* ============================================================
   Galerie
   ============================================================ */
.galerie {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--schwarz) 0%, #0d0d0d 100%);
}

.galerie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.galerie-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.galerie-placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.galerie-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.galerie-item:hover .galerie-placeholder,
.galerie-item:hover .galerie-img {
  transform: scale(1.05);
}

/* Verschiedene elegante Gradienten als Platzhalter */
.grad-1 {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2019 40%, var(--gold) 100%);
}

.grad-2 {
  background: linear-gradient(135deg, var(--rosa) 0%, #3a1a20 60%, #111 100%);
}

.grad-3 {
  background: linear-gradient(135deg, #111 0%, #1a1a2a 50%, #2a2a3a 100%);
}

.grad-4 {
  background: linear-gradient(135deg, var(--gold) 0%, #4a3520 40%, #111 100%);
}

.grad-5 {
  background: linear-gradient(135deg, #1a1520 0%, var(--rosa) 50%, var(--gold) 100%);
}

.grad-6 {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1510 40%, var(--gold-hell) 100%);
}

/* Overlay mit Beschriftung */
.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--uebergang);
}

.galerie-item:hover .galerie-overlay {
  opacity: 1;
}

.galerie-overlay span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 2px;
}

/* ============================================================
   Team
   ============================================================ */
.team {
  padding: 7rem 0;
  background: var(--schwarz);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

.team-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--grau-border);
  transition: border-color var(--uebergang);
}

.team-card:hover .team-avatar {
  border-color: var(--gold);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar-1 {
  background: linear-gradient(135deg, var(--gold) 0%, #3a2a15 60%, #111 100%);
}

.avatar-2 {
  background: linear-gradient(135deg, #2a2a3a 0%, #111 50%, var(--gold) 100%);
}

.avatar-3 {
  background: linear-gradient(135deg, var(--rosa) 0%, #3a1a25 60%, #111 100%);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--weiss);
}

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.team-text {
  font-size: 0.95rem;
  color: rgba(250, 250, 250, 0.6);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================================
   Kontakt
   ============================================================ */
.kontakt {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--schwarz) 0%, #0d0d0d 100%);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Formular */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.6);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--weiss);
  background: var(--grau-hell);
  border: 1px solid var(--grau-border);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color var(--uebergang);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(250, 250, 250, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

/* Validierungs-Fehler */
.form-group.error input,
.form-group.error select {
  border-color: var(--rosa);
}

.form-error {
  font-size: 0.78rem;
  color: var(--rosa);
  min-height: 1rem;
}

/* Formular-Status */
.form-status {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.4rem;
}

.form-status.success {
  color: #7ecf8e;
}

.form-status.error {
  color: var(--rosa);
}

/* Lade-Animation im Button */
.btn-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(17, 17, 17, 0.3);
  border-top-color: var(--schwarz);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Kontakt-Info */
.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.info-block p,
.info-block a {
  font-size: 0.95rem;
  color: rgba(250, 250, 250, 0.7);
  line-height: 1.8;
}

.info-block a:hover {
  color: var(--gold);
}

.opening-hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: rgba(250, 250, 250, 0.7);
  border-bottom: 1px solid var(--grau-border);
}

.opening-hours li:last-child {
  border-bottom: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 3rem 0 1.5rem;
  background: #0a0a0a;
  border-top: 1px solid var(--grau-border);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--weiss);
}

.footer-logo:hover {
  color: var(--weiss);
}

.footer-logo span {
  font-style: italic;
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(250, 250, 250, 0.4);
  margin-top: 0.5rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--grau-border);
  color: rgba(250, 250, 250, 0.5);
  transition: all var(--uebergang);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grau-border);
  font-size: 0.8rem;
  color: rgba(250, 250, 250, 0.3);
}

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

/* ============================================================
   Responsive – ab 480px
   ============================================================ */
@media (min-width: 480px) {
  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Responsive – ab 768px (Tablet / Desktop)
   ============================================================ */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .galerie-item {
    aspect-ratio: 1;
  }

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

  .kontakt-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================================
   Responsive – ab 1024px (Desktop)
   ============================================================ */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   Mobile Navigation (unter 768px)
   ============================================================ */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
  }
}
