/*
Theme Name: Servus Friseur
Theme URI: https://servus-friseur.at
Author: WebWest / 360digital
Author URI: https://360digital.ch
Description: Custom Theme für Servus Damen & Herrenfriseur Innsbruck. Premium Barbershop-Stil, Schwarz + Gold.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: servus-friseur
*/

:root {
  --black: #0F0F0F;
  --gold: #C9A253;
  --gold-light: #D9B56C;
  --off-white: #FAFAF7;
  --cream: #F5F2ED;
  --text-dark: #1A1A1A;
  --text-gray: #666;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
a { color: var(--gold); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: 0.8; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--black); color: var(--off-white); padding: 1rem 0; border-bottom: 1px solid rgba(201, 162, 83, 0.2); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--gold); letter-spacing: 0.05em; }
.logo .scissor { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links a { color: var(--off-white); font-size: 0.95rem; font-weight: 400; }
.nav-links a:hover { color: var(--gold); }
.cta-btn { background: var(--gold); color: var(--black) !important; padding: 0.75rem 1.5rem; border-radius: 4px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; }
.cta-btn:hover { background: var(--gold-light); opacity: 1; }

/* Hero */
.hero { background: var(--black); color: var(--off-white); padding: 8rem 0 6rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 30%, rgba(201, 162, 83, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(201, 162, 83, 0.06) 0%, transparent 50%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-overline { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--gold); font-size: 1.3rem; margin-bottom: 1rem; letter-spacing: 0.05em; }
.hero h1 { color: var(--off-white); margin-bottom: 1.5rem; }
.hero .subhead { font-size: 1.3rem; color: rgba(250, 250, 247, 0.85); max-width: 620px; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-secondary { padding: 0.75rem 1.5rem; border: 1px solid var(--gold); color: var(--gold); background: transparent; border-radius: 4px; font-weight: 500; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-secondary:hover { background: var(--gold); color: var(--black) !important; opacity: 1; }
.hero-trust { font-size: 0.95rem; color: rgba(250, 250, 247, 0.7); display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* USP */
.usp { background: var(--cream); padding: 5rem 0; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.usp-item { text-align: center; }
.usp-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--gold); }
.usp-item h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--black); }
.usp-item p { color: var(--text-gray); font-size: 0.98rem; }

/* Leist */
.leistungen { background: var(--off-white); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .kicker { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--gold); font-size: 1.2rem; margin-bottom: 0.5rem; }
.leist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.leist-card { background: white; padding: 2.5rem 2rem; border: 1px solid rgba(0,0,0,0.06); border-radius: 2px; transition: all .3s; }
.leist-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.leist-card h3 { font-family: 'Playfair Display', serif; margin-bottom: 0.75rem; color: var(--black); }
.leist-card p { color: var(--text-gray); font-size: 0.95rem; }
.leist-link { margin-top: 1rem; display: inline-block; font-weight: 500; font-size: 0.9rem; }

/* About */
.about { background: var(--black); color: var(--off-white); }
.about-inner { max-width: 800px; text-align: center; margin: 0 auto; }
.about h2 { color: var(--off-white); margin-bottom: 1rem; }
.about .lead { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.5rem; color: var(--gold); margin-bottom: 2rem; }
.about p { margin-bottom: 1.2rem; color: rgba(250, 250, 247, 0.85); }

/* CTA Banner */
.cta-banner { background: var(--cream); text-align: center; border-top: 1px solid rgba(201, 162, 83, 0.3); border-bottom: 1px solid rgba(201, 162, 83, 0.3); }
.cta-banner h2 { margin-bottom: 1rem; color: var(--black); }
.cta-banner p { font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-gray); }
.cta-banner .btns { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.phone-big { display: inline-block; font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--black); margin: 1rem 0; }

/* Standard Pages (Leistungen, Team, etc.) */
.page-hero { background: var(--black); color: var(--off-white); padding: 5rem 0 4rem; text-align: center; }
.page-hero h1 { color: var(--off-white); margin-bottom: 1rem; }
.page-hero p { color: rgba(250, 250, 247, 0.75); font-size: 1.2rem; }
.page-content { padding: 5rem 0; max-width: 800px; margin: 0 auto; }
.page-content h2 { margin: 2.5rem 0 1rem; color: var(--black); }
.page-content h3 { margin: 2rem 0 0.5rem; color: var(--black); font-size: 1.3rem; }
.page-content p { margin-bottom: 1.2rem; color: var(--text-dark); }
.page-content ul, .page-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content a { color: var(--gold); text-decoration: underline; }
.page-content blockquote { border-left: 3px solid var(--gold); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--text-gray); }

/* Footer */
.site-footer { background: var(--black); color: rgba(250, 250, 247, 0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.site-footer h4 { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(250, 250, 247, 0.8); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(201, 162, 83, 0.15); text-align: center; font-size: 0.85rem; color: rgba(250, 250, 247, 0.5); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-show { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); padding: 2rem; gap: 1.5rem; }
  .hero { padding: 4rem 0 4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 4rem 0; }
}

/* v3 — Photo Hero + Gallery */
.hero-image { position: relative; min-height: 80vh; display: flex; align-items: center; }
.hero-image .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-image .hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,15,15,0.88) 0%, rgba(15,15,15,0.70) 60%, rgba(15,15,15,0.55) 100%); z-index: 1; }
.hero-image .container { position: relative; z-index: 2; }

.about-with-image .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}
.about-with-image { padding: 6rem 0; }
.about-with-image .kicker {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.about-with-image h2 { color: var(--off-white); text-align: left; }
.about-with-image .lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 1rem 0 1.5rem;
}
.about-with-image p { text-align: left; }
.about-img img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.gallery-teaser { background: var(--cream); padding: 6rem 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 2px;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); opacity: 1; }

/* Gallery page */
.gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery-full img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  transition: transform .3s;
}
.gallery-full img:hover { transform: scale(1.02); }

@media (max-width: 768px) {
  .about-with-image .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { min-height: 70vh; padding: 6rem 0 4rem; }
}

/* v3 — Photo Hero + Gallery */
.hero-image { position: relative; min-height: 80vh; display: flex; align-items: center; }
.hero-image .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-image .hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,15,15,0.88) 0%, rgba(15,15,15,0.70) 60%, rgba(15,15,15,0.55) 100%); z-index: 1; }
.hero-image .container { position: relative; z-index: 2; }

.about-with-image .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}
.about-with-image { padding: 6rem 0; }
.about-with-image .kicker {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.about-with-image h2 { color: var(--off-white); text-align: left; }
.about-with-image .lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 1rem 0 1.5rem;
}
.about-with-image p { text-align: left; }
.about-img img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.gallery-teaser { background: var(--cream); padding: 6rem 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 2px;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); opacity: 1; }

/* Gallery page */
.gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery-full img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  transition: transform .3s;
}
.gallery-full img:hover { transform: scale(1.02); }

@media (max-width: 768px) {
  .about-with-image .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { min-height: 70vh; padding: 6rem 0 4rem; }
}

/* === A11y + Spacing Fixes (QA-Report 2026-04-24) === */

/* Touch targets minimum 44x44px (WCAG 2.5.5) */
.nav-links a,
.nav-links li a,
.footer a,
.leist-link,
.gallery-item,
a[href^="tel:"],
a[href^="mailto:"],
.btn-secondary,
.cta-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.nav-links a,
.nav-links li a {
  padding: 0.75rem 1rem;
}

/* Consistent section spacing */
section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
section.hero,
section.hero-image,
section.cta-banner {
  padding-top: 7rem;
  padding-bottom: 7rem;
}
@media (max-width: 768px) {
  section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Heading margin normalization */
.section-header {
  margin-bottom: 3rem;
}
h1, h2 { margin-top: 0; margin-bottom: 1.25rem; }
h3 { margin-top: 0; margin-bottom: 0.75rem; }

/* === OnePager Additions (2026-04-24) === */

/* Smooth scroll for anchor links, with nav offset */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

/* Map section - full width edge to edge */
.map-section {
  width: 100%;
  padding: 0;
  margin: 0;
  line-height: 0;
  background: #000;
}
.map-section iframe {
  width: 100%;
  height: 500px;
  display: block;
  border: 0;
}

/* Contact meta (address + email in CTA banner) */
.cta-banner .contact-meta {
  margin-top: 2rem;
  font-size: 0.95rem;
  opacity: 0.9;
}
.cta-banner .contact-meta p { margin: 0.35rem 0; }
.cta-banner .contact-meta a { color: inherit; text-decoration: underline; }

/* Full-width gallery grid on onepager */
.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-grid-full .gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-grid-full .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid-full .gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
  .map-section iframe { height: 400px; }
}

/* === Logo Image (2026-04-24) === */
.logo.logo-img {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  text-decoration: none;
}
.logo.logo-img img {
  display: block;
  height: 55px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.site-footer .logo.logo-img img {
  height: 50px;
  max-width: 200px;
}
@media (max-width: 600px) {
  .logo.logo-img img { height: 42px; }
}

/* === Fix QA false-positive: about-grid rows align (2026-04-24) === */
.about-with-image .about-grid {
  align-items: stretch !important;
}
.about-with-image .about-text,
.about-with-image .about-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-with-image .about-img img {
  height: 100%;
  object-fit: cover;
}
