/* Fliesenturm Daniels GmbH – statische Website
   Schrift lokal: Archivo (OFL) */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Farben aus dem Logo: Rot, Grau, Anthrazit – plus Fugengrau und Kalkweiß */
  --rot: #e30613;
  --rot-dunkel: #b8050f;
  --grau: #6e6e6e;
  --anthrazit: #373737;
  --fuge: #dcd9d4;
  --kalk: #f6f6f4;
  --weiss: #ffffff;
  --text: #2b2b2b;
  --text-leise: #5c5c5c;

  --fugenbreite: 6px;
  --max: 1240px;
  --rand: clamp(16px, 4vw, 40px);

  --f-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--text);
  background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; color: var(--anthrazit); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-stretch: 115%; }
h3 { font-size: 1.25rem; font-stretch: 105%; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--weiss); padding: 8px 12px; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--anthrazit);
  border-bottom: 4px solid var(--rot);
}
.kopf .wrap { display: flex; align-items: center; gap: 24px; min-height: 88px; }
.logo { display: block; width: 220px; flex: none; text-decoration: none; }
.logo img { display: block; width: 100%; height: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 10px 14px; border-radius: 2px; color: #ececec;
}
.nav a:hover { color: var(--weiss); box-shadow: inset 0 -3px 0 var(--rot); }
.nav a[aria-current="page"] { color: var(--weiss); box-shadow: inset 0 -3px 0 var(--rot); }
.kopf-tel {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 8px; padding: 10px 16px;
  background: var(--rot); color: var(--weiss) !important;
  text-decoration: none; font-weight: 700; font-size: 0.95rem; border-radius: 2px;
  white-space: nowrap;
}
.kopf-tel:hover { background: var(--rot-dunkel); box-shadow: none !important; }
.kopf-tel svg { width: 16px; height: 16px; }

.menue-knopf {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 1px solid #5a5a5a; background: transparent;
  border-radius: 2px; cursor: pointer; padding: 0;
}
.menue-knopf span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--weiss); transition: transform .2s; }
.menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .logo { width: 170px; }
  .menue-knopf { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--anthrazit); border-bottom: 4px solid var(--rot);
    padding: 8px var(--rand) 16px;
  }
  .nav.offen { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid #4a4a4a; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .kopf-tel { margin: 12px 0 0; justify-content: center; }
}

/* ---------- Bühne ---------- */
.buehne { position: relative; background: var(--anthrazit); }
.buehne-bild { position: relative; height: clamp(440px, 78vh, 760px); overflow: hidden; }
.buehne-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.buehne-tafel {
  position: absolute; left: var(--rand); bottom: calc(-1 * clamp(40px, 6vw, 72px));
  width: min(640px, calc(100% - 2 * var(--rand)));
  background: var(--weiss);
  padding: clamp(24px, 4vw, 48px);
  border-top: 8px solid var(--rot);
}
.buehne h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  font-stretch: 122%;
  font-weight: 850;
  line-height: 0.98;
  margin-bottom: 0.4em;
}
.buehne-text { font-size: 1.125rem; color: var(--text-leise); max-width: 34em; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.knopf {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 2px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  border: 2px solid var(--anthrazit); color: var(--anthrazit); background: transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf:hover { background: var(--anthrazit); color: var(--weiss); }
.knopf-rot { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.knopf-rot:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 0.95rem; font-weight: 600; color: var(--text-leise);
}
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grau); }
.status.offen::before { background: #2f9e44; box-shadow: 0 0 0 4px rgba(47, 158, 68, .18); }
.status.zu::before { background: var(--rot); }
.status:empty { display: none; }

@media (max-width: 640px) {
  .buehne-bild { height: 300px; }
  .buehne-tafel { position: relative; left: 0; bottom: 0; width: 100%; border-top-width: 6px; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(72px, 10vw, 128px) 0; }
.buehne + .abschnitt { padding-top: clamp(112px, 14vw, 190px); }
@media (max-width: 640px) { .buehne + .abschnitt { padding-top: 64px; } }
.abschnitt-kalk { background: var(--kalk); }

.kopfzeile { display: flex; align-items: flex-start; gap: 18px; margin-bottom: clamp(28px, 4vw, 48px); }
.kopfzeile .stein { flex: none; width: 22px; height: 22px; margin-top: 0.35em; }
.kopfzeile p { margin: 12px 0 0; color: var(--text-leise); max-width: 40em; }
.stein-rot { background: var(--rot); }
.stein-grau { background: var(--grau); }
.stein-dunkel { background: var(--anthrazit); }

/* Über uns */
.ueber { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.ueber-text { font-size: 1.15rem; max-width: 36em; }
.ueber-text .gruss { margin-top: 1.6em; color: var(--text-leise); }
.fakten { margin: 2em 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--fuge); }
.fakten div { padding: 18px 16px 0 0; }
.fakten dt { font-size: 1.6rem; font-weight: 800; font-stretch: 115%; color: var(--anthrazit); line-height: 1.1; }
.fakten dd { margin: 6px 0 0; color: var(--text-leise); font-size: 0.98rem; line-height: 1.45; }
.ueber-bild { position: relative; }
.ueber-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ueber-bild::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 72px; height: 72px;
  background: var(--rot); z-index: -1;
}
@media (max-width: 860px) {
  .ueber { grid-template-columns: 1fr; }
  .ueber-bild { max-width: 460px; }
  .fakten { grid-template-columns: 1fr; }
  .fakten div { padding: 14px 0; border-bottom: 1px solid var(--fuge); }
}

/* ---------- Fliesenwand (Galerie) ---------- */
/* Quadratisches Raster wie eine geflieste Wand: Zeilenhöhe = Spaltenbreite */
.wand-rahmen { container-type: inline-size; background: var(--fuge); padding: var(--fugenbreite); }
.wand {
  --spalten: 6;
  display: grid;
  grid-template-columns: repeat(var(--spalten), 1fr);
  grid-auto-rows: calc((100cqi - (var(--spalten) - 1) * var(--fugenbreite)) / var(--spalten));
  grid-auto-flow: dense;
  gap: var(--fugenbreite);
}
.kachel {
  position: relative; display: block; overflow: hidden; background: var(--kalk);
  border: 0; padding: 0; margin: 0; cursor: zoom-in; width: 100%; height: 100%;
}
.kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kachel:hover img { transform: scale(1.04); }
.kachel.hoch { grid-row: span 2; }
.kachel.quer { grid-column: span 2; }
.kachel.gross { grid-row: span 2; grid-column: span 2; }
@media (prefers-reduced-motion: reduce) { .kachel img { transition: none; } .kachel:hover img { transform: none; } }
@media (max-width: 1000px) { .wand { --spalten: 4; } }
@media (max-width: 600px) { .wand-rahmen, .wand { --fugenbreite: 4px; } .wand { --spalten: 2; } }
.wand-hinweis { margin-top: 18px; color: var(--text-leise); font-size: 0.95rem; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; height: 100dvh;
  background: rgba(30, 30, 30, 0.96); color: var(--weiss);
}
.lightbox::backdrop { background: rgba(30, 30, 30, 0.96); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox figure { margin: 0; display: grid; place-items: center; padding: 56px 72px 8px; min-height: 0; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-leiste { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 12px 16px 20px; font-size: 0.95rem; }
.lb-knopf {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--weiss); border: 0; border-radius: 2px; cursor: pointer;
}
.lb-knopf:hover { background: var(--rot); }
.lb-knopf svg { width: 22px; height: 22px; }
.lb-zu { top: 12px; right: 12px; }
.lb-zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-vor { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox figure { padding: 64px 8px 8px; }
  .lb-zurueck, .lb-vor { top: auto; bottom: 10px; transform: none; }
}

/* ---------- Partner ---------- */
.partner { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fugenbreite); background: var(--fuge); padding: var(--fugenbreite); }
.partner article { background: var(--weiss); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; min-height: 220px; }
.partner .fach { color: var(--text-leise); font-size: 0.95rem; margin: 6px 0 auto; padding-bottom: 24px; }
.partner address { font-style: normal; line-height: 1.55; }
.partner .tel { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; color: var(--anthrazit); }
.partner .tel:hover { color: var(--rot); }
@media (max-width: 860px) { .partner { grid-template-columns: 1fr; } .partner article { min-height: 0; } }

/* ---------- Besuch / Kontakt ---------- */
.besuch { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.karte {
  position: relative; margin: 0; background: var(--fuge);
  aspect-ratio: 7 / 5; overflow: hidden;
  background-image:
    linear-gradient(var(--kalk) 0 0),
    repeating-linear-gradient(0deg, transparent 0 46px, var(--fuge) 46px 52px),
    repeating-linear-gradient(90deg, transparent 0 46px, var(--fuge) 46px 52px);
  background-blend-mode: multiply;
}
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-hinweis {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px 24px 72px; text-align: center;
}
.karte-hinweis p { margin: 0; max-width: 30em; font-size: 0.9rem; color: var(--text); background: rgba(255,255,255,.88); padding: 8px 12px; }
.karte.geladen .karte-hinweis { display: none; }
.karte-link {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--weiss); padding: 12px 16px; font-weight: 700; text-decoration: none; color: var(--anthrazit);
  border-left: 6px solid var(--rot);
}
.karte-link:hover { color: var(--rot); }
.karte-link svg { width: 18px; height: 18px; }
.karte figcaption { position: absolute; right: 8px; bottom: 6px; font-size: 0.75rem; color: var(--text-leise); }

.besuch-daten h3 { margin-top: 28px; margin-bottom: 8px; }
.besuch-daten h3:first-child { margin-top: 0; }
.besuch-daten address { font-style: normal; font-size: 1.15rem; line-height: 1.55; }
.zeiten { border-collapse: collapse; width: 100%; max-width: 380px; font-size: 1.05rem; }
.zeiten th { text-align: left; font-weight: 600; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--fuge); }
.zeiten td { padding: 8px 0; border-bottom: 1px solid var(--fuge); font-variant-numeric: tabular-nums; }
.zeiten tr.heute th, .zeiten tr.heute td { color: var(--rot); font-weight: 700; }
.kontaktwege { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.kontaktwege .knopf { justify-content: flex-start; }
@media (max-width: 860px) { .besuch { grid-template-columns: 1fr; } }

/* ---------- Textseiten ---------- */
.seitenkopf { background: var(--kalk); border-bottom: 1px solid var(--fuge); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.seitenkopf h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-stretch: 120%; }
.recht { max-width: 46em; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 112px); }
.recht h2 { font-size: 1.5rem; font-stretch: 105%; margin: 2em 0 0.6em; }
.recht h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }
.recht h2:first-child { margin-top: 0; }
.recht address { font-style: normal; margin-bottom: 1em; }
.recht ul { padding-left: 1.2em; }
.recht li { margin-bottom: 0.4em; }
.offen-feld { background: #fff3bf; padding: 0 4px; border-radius: 2px; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--anthrazit); color: #d8d8d8; padding: clamp(48px, 7vw, 80px) 0 28px; font-size: 0.98rem; }
.fuss a { color: var(--weiss); text-decoration: none; }
.fuss a:hover { color: #ff6b73; text-decoration: underline; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.fuss h2 { font-size: 1rem; font-stretch: 100%; color: var(--weiss); margin-bottom: 12px; font-weight: 700; }
.fuss address { font-style: normal; }
.fuss .logo { width: 220px; margin-bottom: 16px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 6px; }
.fuss-unten { margin-top: 48px; padding-top: 20px; border-top: 1px solid #4a4a4a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: #b5b5b5; }
@media (max-width: 860px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss-raster { grid-template-columns: 1fr; } }
