/* Atmosphair Barbershop – mobile-first */
/* Arabische Schrift (lokal, SIL OFL: fonts/OFL-Cairo.txt); wird nur für arabische Zeichen geladen */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --bg: #0f0e0d;
  --bg-alt: #161412;
  --card: #1d1a17;
  --gold: #c9a45c;
  --gold-light: #e3c68b;
  --text: #f1ece4;
  --muted: #b0a79a;
  --line: #322d27;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: "Playfair Display", "Cairo", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
}

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 100;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 14, 13, .96);
  border-bottom: 1px solid var(--line);
}
.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-end: auto;
  min-width: 0;
  min-height: 44px;
  font-family: "Playfair Display", "Cairo", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-light);
  text-decoration: none;
  white-space: nowrap;
  hyphens: none;
}
.brand img { width: 44px; height: 44px; flex: none; }

.nav { display: flex; flex-wrap: wrap; column-gap: 22px; }
.nav a {
  display: block;
  padding: 10px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--gold-light); }

.lang {
  flex: none;
  min-height: 42px;
  padding: 0 8px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 600 .9rem Inter, "Cairo", system-ui, sans-serif;
  cursor: pointer;
}

.menu-btn { display: none; }

/* Mobil: ohne JavaScript steht die Navigation in einer eigenen Zeile */
@media (max-width: 759px) {
  .bar { flex-wrap: wrap; }
  .brand { min-height: var(--header-h); }
  .nav { order: 10; width: 100%; }

  .js .bar { flex-wrap: nowrap; }
  .js .menu-btn {
    display: flex;
    flex: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
  }
  .menu-btn span { width: 18px; height: 2px; background: var(--gold-light); }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 6px 20px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 13px 0; font-size: 1.05rem; color: var(--text); }
  .js .nav a + a { border-top: 1px solid var(--line); }
}

/* ---- Buttons ---- */
.buttons { display: flex; flex-direction: column; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn-gold { background: var(--gold); color: #17130e; }
.btn-gold:hover { background: var(--gold-light); }
.btn-line { color: var(--gold-light); }
.btn-line:hover { background: rgba(201, 164, 92, .12); }

/* ---- Hero ---- */
.hero {
  padding: 40px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse 90% 55% at 50% 22%, rgba(201, 164, 92, .17), transparent 70%), var(--bg);
}
.hero-logo {
  width: min(68vw, 292px);
  margin: 0 auto 28px;
  filter: drop-shadow(0 18px 40px rgba(201, 164, 92, .22));
}
.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.3rem, 10vw, 4rem); margin-bottom: 16px; }
.lead { max-width: 480px; margin: 0 auto 28px; color: var(--muted); font-size: 1.05rem; }

/* ---- Abschnitte ---- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
section[id] { scroll-margin-top: var(--header-h); }
h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.title { text-align: center; margin-bottom: 36px; }
.title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--gold);
}
.center { text-align: center; margin-top: 30px; }

/* ---- Preise ---- */
.prices { max-width: 920px; margin: 0 auto; }
.prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.price {
  flex: none;
  color: var(--gold-light);
  font-family: "Playfair Display", "Cairo", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}
.note { margin-top: 24px; text-align: center; color: var(--muted); font-size: .92rem; }

/* ---- Über uns ---- */
.about { display: grid; gap: 30px; }
.about img { width: 100%; max-width: 480px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; }
.about h2 { margin-bottom: 16px; }
.about p { color: var(--muted); }
.about .speak {
  margin-top: 22px;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--gold);
  color: var(--text);
  font-weight: 500;
}

/* ---- Galerie ---- */
.gallery { display: grid; gap: 14px; max-width: 480px; margin: 0 auto; }
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.gallery img.focus-top { object-position: 50% 10%; }

/* ---- Kontakt ---- */
.contact { display: grid; gap: 18px; }
.card { padding: 24px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.card h3 { margin-bottom: 8px; color: var(--gold-light); font-size: 1.25rem; }
.card address { margin-bottom: 22px; font-style: normal; }
.card p { margin-bottom: 22px; }
.card .btn { width: 100%; }
.phone { display: inline-block; padding: 6px 0; font-size: 1.15rem; font-weight: 600; }

.hours > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin: 0 -10px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
.hours dd { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours > div.today {
  background: rgba(201, 164, 92, .13);
  border-inline-start: 3px solid var(--gold);
  border-radius: 6px;
  font-weight: 600;
}
.hours > div.today dd { color: var(--gold-light); }
.today-tag {
  margin-inline-start: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #17130e;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ---- Footer ---- */
.site-footer {
  padding: 30px 0 calc(100px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.legal-links { display: flex; justify-content: center; gap: 24px; margin-top: 6px; }
.legal-links a { padding: 8px 0; }
.legal-links a:hover { color: var(--gold-light); }

/* ---- WhatsApp ---- */
.whatsapp {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.whatsapp svg { width: 32px; height: 32px; fill: #fff; }

/* ---- Rechts-nach-links (Arabisch) ---- */
[dir="rtl"] .whatsapp { right: auto; left: calc(16px + env(safe-area-inset-left)); }
[dir="rtl"] .card address { text-align: right; }
/* Buchstabenabstand würde die arabische Schrift zerreißen */
[dir="rtl"] .badge { letter-spacing: 0; }

/* ---- Impressum & Datenschutz ---- */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 64px; overflow-wrap: break-word; }
.legal h1 { margin-bottom: 24px; font-size: clamp(2rem, 8vw, 2.8rem); hyphens: auto; }
.legal h2 { margin: 34px 0 10px; color: var(--gold-light); font-size: 1.35rem; }
.legal p { margin-bottom: 12px; color: var(--muted); }
.legal a { color: var(--gold-light); }
.legal dt { margin-top: 14px; font-weight: 600; }
.legal dd { color: var(--muted); }
.legal .btn { margin-top: 28px; color: var(--gold-light); }
.ph { background: rgba(201, 164, 92, .18); color: var(--gold-light); border-radius: 4px; padding: 0 4px; }

/* ---- Größere Bildschirme ---- */
@media (min-width: 560px) {
  .buttons { flex-direction: row; justify-content: center; }
}

@media (min-width: 760px) {
  .brand { font-size: 1.35rem; }
  .nav { margin-inline-end: 14px; }
  .section { padding: 90px 0; }
  .hero { padding: 80px 0 100px; text-align: start; }
  .hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-logo { grid-column: 2; grid-row: 1; justify-self: center; width: 100%; max-width: 292px; margin: 0; }
  .lead { margin-inline-start: 0; }
  .buttons { justify-content: flex-start; }
  .prices { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .about { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .gallery { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .contact { grid-template-columns: 1fr 1fr; gap: 24px; }
  .card { padding: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 359px) {
  .bar { gap: 6px; }
  .brand { font-size: 1rem; gap: 6px; }
  .brand img { width: 36px; height: 36px; }
}
