/* ==========================================================================
   Pianoservice Joachim Meier — Modern Website
   ========================================================================== */

:root {
  --bg:        #14100c;
  --bg-alt:    #1b1611;
  --surface:   #221c16;
  --surface-2: #2a231b;
  --line:      rgba(214, 178, 122, 0.16);
  --text:      #f2ece2;
  --muted:     #b8ac9a;
  --gold:      #d6b27a;
  --gold-soft: #e7cd9e;
  --gold-deep: #b28a4c;
  --ivory:     #f6f1e8;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --maxw:      1160px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

html { background: var(--bg); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Dezente Foto-Textur (Klavier-Hämmer) hinter dem dunklen Theme.
   Wird sichtbar, sobald images/bg-hammers.jpg vorhanden ist; sonst schlicht schwarz. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(18, 14, 10, 0.945), rgba(14, 10, 7, 0.975)),
    url('images/bg-hammers.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  pointer-events: none;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #241a0d;
  box-shadow: 0 12px 30px -12px rgba(214, 178, 122, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(214, 178, 122, 0.75); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(214, 178, 122, 0.08); transform: translateY(-2px); }
.btn-block { width: 100%; margin-top: 1.3rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(20, 16, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  display: inline-flex;
  gap: 2px;
  padding: 6px 7px;
  background: var(--ivory);
  border-radius: 6px;
}
.brand-mark span { width: 4px; height: 26px; background: #14100c; border-radius: 1px; }
.brand-mark span:nth-child(odd) { background: #14100c; }
.brand-mark.small { padding: 5px 6px; }
.brand-mark.small span { height: 20px; width: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.75rem; line-height: 1.02; letter-spacing: 0.01em; font-family: "Cormorant Garamond", Georgia, serif; }
.brand-text em { font-style: normal; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.06em; }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-menu a { font-size: 0.94rem; color: var(--muted); transition: color 0.25s; position: relative; }
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-menu a:not(.nav-cta):hover { color: var(--text); }
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold); color: #241a0d !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 12vh, 9rem) 1.5rem clamp(4rem, 10vh, 7rem);
}
/* Optional hero photo — drop images/hero.jpg in and it appears; dark bg otherwise */
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 75% -10%, rgba(214, 178, 122, 0.18), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(178, 138, 76, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(20, 16, 12, 0.62), rgba(20, 16, 12, 0.82));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 46px,
    rgba(214, 178, 122, 0.04) 46px 48px
  );
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  opacity: 0.7;
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.hero-eyebrow {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  margin-bottom: 1.3rem;
}
.hero h1 { margin: 0.4rem 0 1.4rem; max-width: 15ch; }
.hero-lead { font-size: 1.18rem; color: var(--muted); max-width: 54ch; margin: 0 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Cormorant Garamond", serif; font-size: 2.4rem; color: var(--gold-soft); line-height: 1; }
.hero-stats span { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 10vh, 7rem) 1.5rem; max-width: var(--maxw); margin: 0 auto; }
.section-alt { max-width: none; background: rgba(27, 22, 17, 0.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { max-width: 60ch; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(214, 178, 122, 0.4); background: var(--surface-2); }
.card:hover .card-media::before { transform: scale(1.06); }
/* Image band: shows the photo from --img if present, elegant gradient fallback otherwise */
.card-media {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), #191309);
  border-bottom: 1px solid var(--line);
}
.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.15), rgba(20,16,12,0.55));
}
.card-icon {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(214, 178, 122, 0.4);
  color: var(--gold-soft);
}
.card-icon svg { width: 26px; height: 26px; display: block; }
.card-body { padding: 1.7rem 1.8rem 2rem; }
.card-body h3 { margin-bottom: 0.6rem; }
.card-body p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.footnote { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 2.5rem 0 0; }

/* ---------- Leistungen: Bild neben Text ---------- */
.services { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5.5rem); }
.service .split-body h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.7rem;
}
.service .split-body > p { color: var(--muted); font-size: 1.05rem; }
.facts {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.facts li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.facts li strong { color: var(--gold-soft); font-weight: 600; }
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
}
.service .checklist { margin-bottom: 0; }
.service .split-media { max-width: 420px; width: 100%; justify-self: center; }
.service-icon { color: var(--gold-soft); opacity: 0.8; }
.service-icon svg { width: 64px; height: 64px; display: block; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-body h2 { margin-bottom: 1.2rem; }
.split-body > p { color: var(--muted); font-size: 1.05rem; }
.split-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* Photo layer: covers the animated fallback when images/*.jpg is present */
.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}
/* Abgedunkelte, kontrastärmere Fotos (z. B. Reparatur, Intonation) */
.split-media.dim::before { filter: brightness(0.93) contrast(0.94); }
.split-media.dim::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(rgba(20, 16, 12, 0.18), rgba(14, 10, 7, 0.32));
  pointer-events: none;
}
.keys-visual { display: flex; gap: 6px; height: 60%; align-items: flex-end; }
.keys-visual span {
  width: 26px;
  background: linear-gradient(180deg, var(--ivory), #cfc4b0);
  border-radius: 0 0 5px 5px;
  animation: keyPulse 3.2s var(--ease) infinite;
}
.keys-visual span:nth-child(1) { height: 70%; animation-delay: 0s; }
.keys-visual span:nth-child(2) { height: 90%; animation-delay: 0.2s; }
.keys-visual span:nth-child(3) { height: 60%; animation-delay: 0.4s; }
.keys-visual span:nth-child(4) { height: 100%; animation-delay: 0.6s; }
.keys-visual span:nth-child(5) { height: 75%; animation-delay: 0.8s; }
.keys-visual span:nth-child(6) { height: 85%; animation-delay: 1s; }
.keys-visual span:nth-child(7) { height: 55%; animation-delay: 1.2s; }
.keys-visual span:nth-child(8) { height: 95%; animation-delay: 1.4s; }
.keys-visual span:nth-child(9) { height: 65%; animation-delay: 1.6s; }
.keys-visual span:nth-child(10) { height: 80%; animation-delay: 1.8s; }
@keyframes keyPulse {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-8px); opacity: 1; }
}
.note-visual { position: relative; width: 100%; height: 100%; }
.note-visual .note {
  position: absolute;
  font-size: 3rem;
  color: var(--gold-soft);
  animation: floatNote 5s ease-in-out infinite;
}
.note-visual .note:nth-child(1) { top: 25%; left: 28%; animation-delay: 0s; font-size: 4rem; }
.note-visual .note:nth-child(2) { top: 50%; left: 55%; animation-delay: 1.2s; }
.note-visual .note:nth-child(3) { top: 32%; left: 68%; animation-delay: 2.4s; font-size: 2.4rem; }
@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(-4deg); opacity: 0.7; }
  50% { transform: translateY(-16px) rotate(4deg); opacity: 1; }
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0.8rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--text); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
}

/* ---------- Prose ---------- */
.prose { max-width: 62ch; margin: 0 auto; text-align: center; }
.prose p { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.3rem; }
.prose strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-card h3 { color: var(--gold-soft); margin-bottom: 0.8rem; }
.contact-card address { font-style: normal; color: var(--muted); line-height: 1.8; }
.contact-card.highlight {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-color: rgba(214, 178, 122, 0.35);
}
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.contact-list a { font-size: 1.05rem; color: var(--text); transition: color 0.25s; }
.contact-list a:hover { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(27, 22, 17, 0.55); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  gap: 1.6rem;
  align-items: center;
  grid-template-columns: 1fr auto;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand strong { display: block; }
.footer-brand p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.85rem; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; transition: color 0.25s; }
.footer-nav a:hover { color: var(--gold-soft); }
.copyright { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.copyright a { color: var(--gold-soft); transition: color 0.25s; }
.copyright a:hover { color: var(--gold); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-hero {
  padding: clamp(3.5rem, 9vh, 6rem) 1.5rem 2.5rem;
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(214, 178, 122, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  border-bottom: 1px solid var(--line);
}
.legal-hero-inner { max-width: 820px; margin: 0 auto; }
.legal-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 0.6rem 0 0.4rem; }
.legal-hero p { color: var(--muted); margin: 0; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--gold); font-size: 0.9rem; margin-bottom: 0.5rem;
}
.back-link:hover { color: var(--gold-soft); }
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) 1.5rem 4rem;
}
.legal-block { margin-bottom: 2.6rem; }
.legal-block:last-child { margin-bottom: 0; }
.legal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--gold-soft);
}
.legal h3 { font-size: 1.15rem; margin: 1.4rem 0 0.5rem; color: var(--text); }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 0.9rem; }
.legal a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal ul { padding-left: 1.2rem; margin: 0 0 0.9rem; }
.legal li { margin-bottom: 0.4rem; }
.legal address { font-style: normal; line-height: 1.9; color: var(--text); }
.legal .card-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* ---------- FAQ (Accordion) ---------- */
.faq { display: grid; gap: 1rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-item[open] { border-color: rgba(214, 178, 122, 0.4); background: var(--surface-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 3rem 1.2rem 1.4rem;
  position: relative;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-soft); }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer { padding: 0 1.4rem 1.4rem; }
.faq-answer p { color: var(--muted); margin: 0 0 0.9rem; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-cta {
  margin-top: 2.6rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq-cta p { color: var(--muted); margin: 0 0 1.2rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(20, 16, 12, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: 0.9rem 0; }
  .nav-menu a:not(.nav-cta)::after { display: none; }
  .nav-cta { display: inline-block; margin-top: 0.8rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 16 / 10; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
