/* ==========================================================
   Friseur & Kosmetik Kremer – Losheim am See
   Design: Elegant, warm, ruhig – Creme/Gold/Anthrazit
   Passend zur Struktur der index.html (brand, hero-grid,
   cards, split, section-alt, section-dark, reveal)
   ========================================================== */

:root {
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-alt: #f2ece2;
  --color-text: #2b2622;
  --color-muted: #7a7168;
  --color-primary: #a8894f;
  --color-primary-dark: #8a6f3c;
  --color-dark: #2b2622;
  --color-gold-light: #e6cf9d;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(43, 38, 34, 0.1);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.text-balance { text-wrap: balance; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(168, 137, 79, 0.2);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--color-text); text-decoration: none; font-size: 1rem;
}
.brand strong { font-family: var(--font-heading); font-size: 1.15em; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600;
}

.main-nav { display: flex; align-items: center; }

.nav-list {
  display: flex; align-items: center; gap: 1.75rem; list-style: none;
}
.nav-list a {
  color: var(--color-text); text-decoration: none; font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-list a:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-primary); color: #fff !important;
  padding: 0.55rem 1.2rem; border-radius: 999px; font-weight: 500;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 2px;
  background: var(--color-text); transition: transform 0.2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0; }

.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.1rem; }

.hero .lead {
  color: var(--color-muted); font-size: 1.05rem; max-width: 480px;
}

.hero-actions { margin-top: 1.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; border-radius: 999px;
  padding: 0.8rem 1.7rem; font-size: 0.95rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--color-primary); color: var(--color-primary-dark); }
.btn-ghost:hover { background: rgba(168, 137, 79, 0.1); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-alt); }

.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.6rem; }

.section-intro { color: var(--color-muted); margin-bottom: 2.25rem; max-width: 640px; }

/* ---------- Karten (Leistungen) ---------- */
.cards {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-top: 2rem;
}

.card {
  background: var(--color-surface); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow);
  border-top: 3px solid var(--color-primary);
}

.card-icon {
  width: 44px; height: 44px; margin-bottom: 1rem;
  color: var(--color-primary);
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); font-size: 0.95rem; }

/* ---------- Split-Layout (Salon / Kontakt) ---------- */
.split {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start;
}

.split-text p { color: var(--color-muted); margin-bottom: 1rem; }
.split-text h2 { color: var(--color-text); margin-bottom: 1rem; }

.note { font-size: 0.85rem; color: var(--color-muted); }

.checklist { list-style: none; margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.checklist li {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem;
}
.checklist li::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px;
  border-radius: 50%; background: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#fff, #fff);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#fff, #fff);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.highlight-box {
  background: var(--color-dark); color: #f5efe6;
  border-radius: var(--radius); padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}
.highlight-box h3 { color: var(--color-gold-light); font-size: 1.45rem; margin-bottom: 0.6rem; }
.highlight-box p { color: rgba(245, 239, 230, 0.8); margin-bottom: 1.4rem; }

/* ---------- Öffnungszeiten ---------- */
.hours { max-width: 560px; margin-top: 1.5rem; }

.hours-table {
  width: 100%; border-collapse: collapse;
  background: var(--color-surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.hours-table th, .hours-table td {
  padding: 0.85rem 1.25rem; text-align: left; font-size: 0.95rem;
  border-bottom: 1px solid rgba(168, 137, 79, 0.15);
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table th { font-weight: 600; color: var(--color-text); }
.hours-table td { color: var(--color-muted); }

.hours .note { margin-top: 1rem; }

/* ---------- Kontakt (dunkle Sektion) ---------- */
.section-dark { background: var(--color-dark); color: #f5efe6; }
.section-dark .eyebrow { color: var(--color-gold-light); }
.section-dark h2 { color: #fff; }
.section-dark .split-text p { color: rgba(245, 239, 230, 0.8); }
.section-dark .note { color: rgba(245, 239, 230, 0.6); }

.contact-list { font-style: normal; }
.contact-list a { color: var(--color-gold-light); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: var(--color-surface); color: var(--color-text);
  border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.35rem; }

.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.88rem; font-weight: 500; }
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.7rem 0.9rem; border-radius: 8px;
  border: 1px solid rgba(122, 113, 104, 0.4);
  background: var(--color-bg); color: var(--color-text);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
  border-color: transparent;
}

.form-status { margin-top: 0.9rem; font-size: 0.9rem; color: var(--color-primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: #211d19; color: rgba(245, 239, 230, 0.65);
  padding: 1.75rem 0; font-size: 0.88rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.8rem;
}
.site-footer a { color: var(--color-gold-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Scroll-Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Fallback ohne JavaScript: Inhalte immer sichtbar */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
}

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

@media (max-width: 719px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed; left: 0; right: 0; top: 62px;
    flex-direction: column; align-items: stretch;
    background: var(--color-bg); padding: 1.25rem 1.5rem 1.5rem;
    gap: 1rem; border-bottom: 1px solid rgba(168, 137, 79, 0.25);
    transform: translateY(-130%); transition: transform 0.25s ease;
    z-index: 40;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-cta { text-align: center; }

  .hero { padding: 3rem 0; }
  .section { padding: 3.5rem 0; }
}
