/* ============================================================
   Jakob Fliesenleger – Stylesheet (mobile-first)
   Bodenständig & warm in den Logo-Farben (Braun / Terrakotta)
   ============================================================ */

/* ---------- Selbstgehostete Schrift (DSGVO-sauber, offline) ---------- */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/bitter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/bitter-700.woff2') format('woff2');
}

/* ---------- Design-Variablen ---------- */
:root {
  --braun:        #5C4A3A;
  --braun-tief:   #43362A;
  --terra:        #B5734A;
  --terra-hell:   #C98A5E;
  --creme:        #F5EFE8;
  --sand:         #EAE0D5;
  --text:         #2E2620;
  --text-hell:    #6B5D4F;
  --weiss:        #FFFFFF;

  --serif: 'Bitter', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 6px 20px rgba(67, 54, 42, 0.12);
  --shadow-lg: 0 14px 40px rgba(67, 54, 42, 0.22);
  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);
}

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

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

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--creme);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

section { padding-block: clamp(3rem, 8vw, 5.5rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--terra);
  margin-bottom: 0.6rem;
}
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); color: var(--braun-tief); }
.section-head p { margin-top: 0.9rem; color: var(--text-hell); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary { background: var(--terra); color: var(--weiss); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--terra-hell); box-shadow: var(--shadow-lg); }

.btn-ghost { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-outline { background: var(--weiss); color: var(--braun); border-color: var(--sand); }
.btn-outline:hover { border-color: var(--terra); color: var(--terra); }

/* ============================================================
   Header / Navigation (sticky)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo span {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--braun-tief);
  font-size: 1.1rem;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  color: var(--braun-tief);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--terra); text-decoration: none; }
.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--braun-tief);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--creme);
    border-bottom: 1px solid var(--sand);
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { max-height: 460px; }
  .nav-links li { border-top: 1px solid var(--sand); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: 0.9rem clamp(1rem, 5vw, 2.5rem); }
  .nav-cta { margin: 0.7rem clamp(1rem, 5vw, 2.5rem); justify-content: center; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    linear-gradient(150deg, rgba(67,54,42,0.94) 0%, rgba(92,74,58,0.90) 55%, rgba(181,115,74,0.85) 130%),
    var(--braun-tief);
  color: var(--weiss);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-logo { height: 120px; width: auto; margin-bottom: 1.4rem; }
.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  color: var(--weiss);
  margin-bottom: 1rem;
}
.hero .subline { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: rgba(255,255,255,0.9); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin-top: 2rem;
  list-style: none;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
}
.hero-trust svg { width: 1.2rem; height: 1.2rem; color: var(--terra-hell); flex: none; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.12);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-media img { aspect-ratio: 3 / 4; max-height: 560px; }
}

/* ============================================================
   Leistungen
   ============================================================ */
#leistungen { background: var(--creme); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--weiss);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--terra-hell); }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--sand);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.card-icon svg { width: 28px; height: 28px; color: var(--braun); }
.card h3 { font-size: 1.18rem; color: var(--braun-tief); margin-bottom: 0.4rem; }
.card p { color: var(--text-hell); font-size: 0.96rem; }

/* Hervorgehobene Spezial-Leistung */
.card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--braun) 0%, var(--terra) 130%);
  color: var(--weiss);
  border: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
}
.card.featured .card-icon { background: rgba(255,255,255,0.18); }
.card.featured .card-icon svg { color: var(--weiss); }
.card.featured h3 { color: var(--weiss); font-size: 1.5rem; }
.card.featured p { color: rgba(255,255,255,0.9); font-size: 1.02rem; max-width: 60ch; }
.card.featured .featured-text { flex: 1 1 340px; }
.card.featured .badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: var(--weiss);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

/* ============================================================
   Mobiles Bad (USP) – kräftig gefärbt
   ============================================================ */
#mobiles-bad {
  background: linear-gradient(160deg, var(--braun-tief) 0%, var(--braun) 60%, var(--terra) 150%);
  color: var(--weiss);
}
#mobiles-bad .eyebrow { color: var(--terra-hell); }
#mobiles-bad .section-head h2 { color: var(--weiss); }
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
.usp-text p { color: rgba(255,255,255,0.9); font-size: 1.06rem; margin-bottom: 1rem; }
.usp-list { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.7rem; }
.usp-list li { display: flex; align-items: flex-start; gap: 0.6rem; color: rgba(255,255,255,0.95); }
.usp-list svg { width: 1.3rem; height: 1.3rem; color: var(--terra-hell); flex: none; margin-top: 0.15rem; }

.usp-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.usp-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.12);
}
.usp-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.usp-gallery .wide { grid-column: 1 / -1; }
.usp-gallery .wide img { aspect-ratio: 16 / 10; }

@media (min-width: 900px) {
  .usp-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Galerie + Lightbox
   ============================================================ */
#galerie { background: var(--sand); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
}
.gallery-grid button {
  padding: 0; border: none; cursor: pointer; background: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid button:hover img { transform: scale(1.06); }

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

.gallery-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-hell);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.gallery-note svg { width: 1.1rem; height: 1.1rem; color: var(--terra); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(46, 38, 32, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,0.14);
  border: none;
  color: var(--weiss);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s ease;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.28); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev { left: 0.6rem; } .lb-next { right: 0.6rem; }
  .lightbox-btn { width: 42px; height: 42px; }
}

/* ============================================================
   Über Reimund
   ============================================================ */
#ueber { background: var(--creme); }
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.ueber-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-height: 560px;
}
.ueber-text h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); color: var(--braun-tief); margin-bottom: 1rem; }
.ueber-text p { color: var(--text-hell); font-size: 1.06rem; margin-bottom: 1rem; }
.ueber-text .signature {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--braun);
  font-size: 1.15rem;
  margin-top: 0.5rem;
}
@media (min-width: 900px) {
  .ueber-grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* ============================================================
   Bewertungen (Platzhalter)
   ============================================================ */
#bewertungen { background: var(--sand); }
.reviews-placeholder {
  border: 2px dashed var(--terra);
  border-radius: var(--radius-lg);
  background: var(--weiss);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.reviews-placeholder .stars { color: var(--terra); font-size: 1.6rem; letter-spacing: 0.2em; margin-bottom: 0.8rem; }
.reviews-placeholder h3 { color: var(--braun-tief); font-size: 1.4rem; margin-bottom: 0.7rem; }
.reviews-placeholder p { color: var(--text-hell); }
.reviews-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  background: var(--creme);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* ============================================================
   Kontakt
   ============================================================ */
#kontakt {
  background: linear-gradient(160deg, var(--braun) 0%, var(--braun-tief) 100%);
  color: var(--weiss);
}
#kontakt .eyebrow { color: var(--terra-hell); }
#kontakt .section-head h2 { color: var(--weiss); }
#kontakt .section-head p { color: rgba(255,255,255,0.85); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.kontakt-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.kontakt-card h3 { color: var(--weiss); font-size: 1.25rem; margin-bottom: 1.2rem; }
.kontakt-actions { display: flex; flex-direction: column; gap: 0.9rem; }
.kontakt-actions .btn { justify-content: center; font-size: 1.05rem; padding: 1rem 1.4rem; }

.kontakt-info { display: grid; gap: 1.1rem; }
.kontakt-info .row { display: flex; align-items: flex-start; gap: 0.8rem; }
.kontakt-info svg { width: 1.4rem; height: 1.4rem; color: var(--terra-hell); flex: none; margin-top: 0.15rem; }
.kontakt-info .row strong { display: block; color: var(--weiss); }
.kontakt-info .row span, .kontakt-info .row a { color: rgba(255,255,255,0.88); }
.kontakt-info .btn-outline { margin-top: 0.3rem; }

@media (min-width: 820px) {
  .kontakt-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--braun-tief);
  color: rgba(255,255,255,0.8);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-brand img { height: 60px; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { color: var(--weiss); font-family: var(--serif); margin-bottom: 0.8rem; font-size: 1.05rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: var(--terra-hell); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* ============================================================
   Rechtsseiten (Impressum / Datenschutz)
   ============================================================ */
.legal-page { background: var(--creme); min-height: 70vh; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--braun-tief); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.3rem; color: var(--braun); margin: 2rem 0 0.7rem; }
.legal-page p, .legal-page li { color: var(--text); margin-bottom: 0.7rem; }
.legal-page ul { margin-left: 1.2rem; margin-bottom: 1rem; }
.legal-page a { word-break: break-word; }
.todo {
  background: #FFF3E0;
  border: 1px solid var(--terra);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  font-weight: 700;
  color: #9A4E1E;
}
.legal-note {
  background: var(--sand);
  border-left: 4px solid var(--terra);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-hell);
  font-size: 0.95rem;
}
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2.5rem; font-weight: 600; }

/* ---------- Zugänglichkeit / Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 4px; }
