/* Mattar Montage — Farben angelehnt am Logo (Gold auf Schwarz) + Hell/Dunkel */
html {
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-elev: #070707;
  --bg-card: #101010;
  --text: #f8f8f8;
  --text-muted: #a8a095;
  /* Logo-Gold — warmes Gelb wie Markenzeichen */
  --accent: #e8bd2e;
  --accent-hover: #f4d54a;
  --accent-soft: rgba(232, 189, 46, 0.14);
  --border: #2d2718;
  --header-bg: rgba(0, 0, 0, 0.9);
  --nav-mobile-bg: rgba(0, 0, 0, 0.97);
  --cta-grad-end: #1a1708;
}

html[data-theme="light"] {
  --bg: #fcfbf7;
  --bg-elev: #f6f4ed;
  --bg-card: #ffffff;
  --text: #0c0c0c;
  --text-muted: #4a463c;
  --accent: #b8941a;
  --accent-hover: #9a7a12;
  --accent-soft: rgba(184, 148, 26, 0.12);
  --border: #e5dcc8;
  --header-bg: rgba(252, 251, 247, 0.92);
  --nav-mobile-bg: rgba(252, 251, 247, 0.98);
  --cta-grad-end: #f0ead8;
}

:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max-w: 72rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.theme-toggle {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand__logo {
  height: 2.65rem;
  width: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand__text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand__text small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #111;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #111;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

main {
  display: block;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Hero mit Bildbereich --- */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 30% 0%, var(--accent-soft), transparent 55%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  object-fit: cover;
}

.hero-visual img:first-child {
  grid-column: 1 / -1;
  max-height: 220px;
  object-fit: cover;
}

.hero-visual img:nth-child(2),
.hero-visual img:nth-child(3) {
  aspect-ratio: 1;
  max-height: 160px;
}

/* --- Showcase-Sektion (Startseite) --- */
.showcase {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.showcase__visual img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  object-fit: cover;
}

/* --- Unterseiten-Banner --- */
.page-banner {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.38) 0%,
    var(--bg) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .page-banner {
    background-attachment: scroll;
  }
}

.page-banner .wrap {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.page-banner h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .page-banner h1 {
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5);
}

.page-banner .page-banner__intro {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 52ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .page-banner .page-banner__intro {
  color: var(--text);
  text-shadow: none;
}

html[data-theme="light"] .page-banner__overlay {
  background: linear-gradient(
    to bottom,
    rgba(255, 252, 240, 0.75) 0%,
    var(--bg) 100%
  );
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding-top: 2rem;
}

.section__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section__intro {
  color: var(--text-muted);
  max-width: 55ch;
  margin: 0 0 2rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card__inner {
  padding: 1.35rem 1.35rem 1.5rem;
  flex-grow: 1;
}

.card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.12rem;
  margin: 0 0 0.65rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.card--flat {
  overflow: visible;
}

.card--flat .card__inner {
  padding: 1.5rem 1.35rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pill {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

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

.quote {
  border-left: 4px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 2rem 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
}

.cta-band {
  margin: 2rem 0 0;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-elev), var(--cta-grad-end));
  border: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figcaption {
  display: none;
}

.hours {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hours {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.hours__day {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.hours__day strong {
  display: block;
  font-family: var(--font-sans);
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.hours__day span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  text-decoration: none;
}

.footer-website {
  margin-top: 0.65rem;
  font-size: 0.98rem;
}

.legal-strip {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.legal-strip a {
  margin: 0 0.35rem;
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.checkbox input {
  width: auto;
  margin-top: 0.3rem;
}

.map-wrap {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.map-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.95rem;
}

.prose {
  max-width: 52rem;
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-sans);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h1 {
  font-size: 2rem;
  margin-top: 0;
}

.prose h2 {
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Übernommene Rechtstexte (Haendlerbund-Export): viele Inline-Styles; Rahmen lesbar halten */
.recht-import {
  font-family: var(--font-body);
  max-width: 52rem;
  line-height: 1.65;
  color: var(--text);
}

.recht-import h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

.recht-import__meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.recht-import a:not([href^="#"]) {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  word-break: break-word;
}

.recht-import a:not([href^="#"]):hover {
  color: var(--accent-hover);
}

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

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex: none;
    justify-content: stretch;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 100%;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-nav a {
    padding: 0.85rem;
  }

  .site-header .inner {
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
    margin-right: auto;
    padding-right: 0.5rem;
  }
}
