/* Entwurf 1 – Altstadtfassade */

@font-face { font-family: "Marcellus"; src: url("../assets/fonts/Marcellus-normal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../assets/fonts/AlegreyaSans-normal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../assets/fonts/AlegreyaSans-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../assets/fonts/AlegreyaSans-normal-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../assets/fonts/AlegreyaSans-normal-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ocker: #d4973a;          /* Fassadengrund */
  --ocker-hell: #e7b968;
  --ocker-tief: #a8701f;     /* Profilschatten */
  --stuck: #f3ece0;          /* Stuck, Faschen */
  --stuck-schatten: #d9ccb5;
  --laden: #1b5a3d;          /* Fensterläden, Aktion */
  --laden-tief: #123f2a;
  --tinte: #1d2240;          /* Text */
  --tinte-2: #444862;
  --gold: #ecc97c;

  --f-inschrift: "Marcellus", "Trajan Pro", Georgia, serif;
  --f-text: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;

  --raum: clamp(4rem, 9vw, 7.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1.1875rem/1.6 var(--f-text);
  color: var(--tinte);
  background: var(--ocker);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-inschrift); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
::selection { background: var(--laden); color: var(--stuck); }
:focus-visible { outline: 3px solid var(--laden); outline-offset: 3px; border-radius: 2px; }
.nb { white-space: nowrap; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .6rem 1rem; background: var(--laden); color: var(--stuck); }
.skip:focus { top: 1rem; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.3rem;
  font: 500 1.0625rem/1.2 var(--f-text);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.knopf--laden { background: var(--laden); color: var(--stuck); }
.knopf--laden:hover { background: var(--laden-tief); }
.knopf--stuck { background: var(--stuck); color: var(--tinte); border-color: var(--tinte); }
.knopf--stuck:hover { background: var(--tinte); color: var(--stuck); }
.knopf--gross { font-size: 1.1875rem; padding: .9rem 1.5rem; }

/* ---------- Gesims (Kopfzeile) ---------- */
.gesims {
  position: sticky; top: 0; z-index: 20;
  background: var(--stuck);
  /* Profil: Platte, Kehle, Rundstab */
  box-shadow: 0 1px 0 var(--stuck-schatten), 0 3px 0 var(--stuck), 0 5px 0 var(--ocker-tief), 0 10px 18px -10px rgb(60 35 5 / .45);
}
.gesims__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.marke img { width: 26px; height: auto; }
.marke__text { font: 400 .8125rem/1.1 var(--f-inschrift); letter-spacing: .06em; }
.marke__text strong { font-weight: 400; font-size: 1.3rem; letter-spacing: .02em; }
.nav { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; padding: .5rem 0; background: linear-gradient(var(--laden), var(--laden)) left bottom / 0 2px no-repeat; transition: background-size .25s ease; }
.nav a:hover { background-size: 100% 2px; }
.gesims__tel { min-height: 44px; padding: .5rem 1rem; }

/* Zahnschnitt: Reihe kleiner Konsolen unter dem Gesims */
.zahnschnitt {
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--stuck) 0 12px, transparent 12px 20px);
  margin-top: 5px;
}
.zahnschnitt--dunkel { background: repeating-linear-gradient(90deg, var(--ocker-tief) 0 12px, transparent 12px 20px); margin: 0 0 3rem; }

@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 480px) {
  .gesims__tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gesims__tel { width: 48px; padding: 0; }
}

/* ---------- Fassade (Hero) ---------- */
.fassade { padding-top: clamp(2rem, 4vw, 3rem); }
.fries {
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem) 1rem;
  border-block: 3px double var(--ocker-tief);
}
.fries h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: .04em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--tinte);
}
.fries__unter { margin: .9rem 0 0; font-size: clamp(1.0625rem, 1.8vw, 1.3125rem); color: var(--tinte); }

.fenster {
  list-style: none; margin: clamp(1.75rem, 3.5vw, 2.5rem) auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.9rem, 4vw, 3.5rem);
  max-width: 760px;
  align-items: end;
}
.fenster__bogen {
  position: relative;
  aspect-ratio: 3 / 4.6;
  padding: clamp(6px, 1.1vw, 14px);
  background: var(--stuck);
  border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 0 2px var(--stuck-schatten), 0 18px 30px -18px rgb(70 40 5 / .55);
}
.fenster__bogen--mitte { aspect-ratio: 3 / 5.2; }
.fenster__bogen img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 999px 999px 0 0;
}
/* Sohlbank */
.fenster__bogen::after {
  content: ""; position: absolute; left: -8%; right: -8%; bottom: calc(-1 * clamp(10px, 1.4vw, 16px));
  height: clamp(10px, 1.4vw, 16px);
  background: var(--stuck);
  box-shadow: inset 0 -3px 0 var(--stuck-schatten), 0 8px 10px -6px rgb(70 40 5 / .5);
}
/* Die Gerüstplane fällt: einmalige Enthüllung beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .fenster__bogen img { animation: plane 1.4s cubic-bezier(.16, 1, .3, 1) both; }
  .fenster__bogen:nth-child(2) img { animation-delay: .18s; }
  .fenster__bogen:nth-child(3) img { animation-delay: .36s; }
  @keyframes plane {
    from { clip-path: inset(0 0 100% 0); filter: saturate(.2) brightness(1.15); }
    60% { filter: saturate(.6) brightness(1.05); }
    to { clip-path: inset(0 0 0 0); filter: none; }
  }
}

.sockel {
  margin-top: clamp(2.25rem, 4vw, 2.75rem);
  /* Rustika: Quaderfugen im Sockelgeschoß */
  background:
    repeating-linear-gradient(180deg, transparent 0 46px, rgb(90 55 10 / .13) 46px 48px),
    var(--ocker-hell);
  border-top: 6px solid var(--ocker-tief);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}
.sockel__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 3.5rem; align-items: center; }
.sockel__text { margin: 0; font-size: clamp(1.1875rem, 2vw, 1.375rem); line-height: 1.5; max-width: 40ch; }
.sockel__aktion { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }
@media (max-width: 760px) {
  .sockel__inner { grid-template-columns: 1fr; }
}

/* ---------- Leistungen ---------- */
.leistungen { background: var(--stuck); padding: var(--raum) 0; border-top: 5px solid var(--ocker-tief); }
.kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kopf h2 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
.kopf p { margin: 0; color: var(--tinte-2); max-width: 58ch; }
@media (max-width: 760px) { .kopf { grid-template-columns: 1fr; } }

.achsen {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--stuck-schatten);
  border-left: 1px solid var(--stuck-schatten);
}
.achse {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-right: 1px solid var(--stuck-schatten);
  border-bottom: 1px solid var(--stuck-schatten);
}
.achse h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.achse p { margin: 0; color: var(--tinte-2); font-size: 1.0625rem; }
.achse--haupt {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  padding: 0;
  background: var(--tinte); color: var(--stuck);
}
.achse__bild { margin: 0; min-height: 280px; }
.achse__bild img { width: 100%; height: 100%; object-fit: cover; }
.achse__text { padding: clamp(1.75rem, 4vw, 3.25rem); align-self: center; }
.achse--haupt h3 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.achse--haupt p { color: #dcd6e6; font-size: 1.125rem; }
@media (max-width: 900px) {
  .achsen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .achsen { grid-template-columns: 1fr; }
  .achse--haupt { grid-template-columns: 1fr; }
}

/* ---------- Kartusche ---------- */
.kartusche { padding: var(--raum) 0; text-align: center; }
.kartusche blockquote {
  margin: 0 auto; max-width: 860px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--stuck);
  border-radius: 2.5rem;
  box-shadow: inset 0 0 0 6px var(--stuck), inset 0 0 0 8px var(--ocker-tief), 0 20px 34px -22px rgb(70 40 5 / .6);
}
.kartusche p { margin: 0; font: 400 clamp(1.6rem, 3.6vw, 2.6rem)/1.32 var(--f-inschrift); }

/* ---------- Betrieb ---------- */
.betrieb { background: var(--ocker-hell); padding: var(--raum) 0; border-top: 5px solid var(--ocker-tief); }
.betrieb__raster { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem 5rem; align-items: start; }
.betrieb h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); margin-bottom: 1.5rem; }
.betrieb h3 { font-size: 1.5rem; margin: 2.25rem 0 1rem; }
.betrieb__text p { max-width: 62ch; }
.vorteile { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.vorteile li { position: relative; padding-left: 1.9rem; }
.vorteile li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .7rem;
  background: var(--laden); border-radius: 1rem 1rem 0 0;  /* kleiner Rundbogen */
}
.betrieb__bild { margin: 0; padding: 12px; background: var(--stuck); box-shadow: inset 0 0 0 2px var(--stuck-schatten), 0 18px 30px -18px rgb(70 40 5 / .55); }
.betrieb__bild img { width: 100%; }
.betrieb__bild figcaption { padding: .9rem .25rem .2rem; font-size: 1rem; color: var(--tinte-2); }
@media (max-width: 820px) { .betrieb__raster { grid-template-columns: 1fr; } .betrieb__bild { max-width: 420px; } }

/* ---------- Referenzen ---------- */
.referenzen { padding: var(--raum) 0; }
.tafel {
  background: var(--laden); color: var(--gold);
  padding: clamp(2rem, 5vw, 3.75rem);
  text-align: center;
  box-shadow: inset 0 0 0 10px var(--laden), inset 0 0 0 11px rgb(236 201 124 / .55), 0 22px 36px -22px rgb(40 30 5 / .7);
}
.tafel h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); color: var(--stuck); margin-bottom: 1.75rem; }
.tafel__liste {
  list-style: none; margin: 0 auto; padding: 0; max-width: 900px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.25rem;
  font: 400 clamp(1.15rem, 2.2vw, 1.5rem)/1.35 var(--f-inschrift);
  letter-spacing: .03em;
}
.innen-titel { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: clamp(3.5rem, 7vw, 5.5rem) 0 1.5rem; }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.5vw, 1.1rem); }
.galerie li { padding: 8px; background: var(--stuck); box-shadow: inset 0 0 0 2px var(--stuck-schatten); }
.galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 700px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--stuck); padding: var(--raum) 0; border-top: 5px solid var(--ocker-tief); }
.kontakt__raster { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 3rem; }
.kontakt h2 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: 1rem; }
.kontakt h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.kontakt__lead { color: var(--tinte-2); max-width: 36ch; }
.wege { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.wege span { display: block; font-size: .9375rem; color: var(--tinte-2); }
.wege a { font: 400 1.5rem/1.2 var(--f-inschrift); text-decoration: none; border-bottom: 2px solid var(--ocker); }
.wege a:hover { border-color: var(--laden); }
address { font-style: normal; margin-bottom: 1rem; }
.anfahrt { font-size: 1rem; color: var(--tinte-2); }
.zeiten { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--stuck-schatten); font-weight: 400; }
.zeiten td { text-align: right; }
.hinweis { margin-top: 1rem; font-size: .9375rem; color: var(--tinte-2); }
@media (max-width: 900px) { .kontakt__raster { grid-template-columns: 1fr 1fr; } .kontakt__raster > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .kontakt__raster { grid-template-columns: 1fr; } }

/* ---------- Impressum ---------- */
.impressum { background: var(--tinte); color: #d9d6e3; font-size: 1rem; padding-bottom: 2rem; }
.impressum .zahnschnitt--dunkel { background: repeating-linear-gradient(90deg, var(--ocker) 0 12px, transparent 12px 20px); height: 9px; }
.impressum__raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.impressum h2 { font-size: 1.5rem; color: var(--stuck); margin-bottom: .4rem; }
.impressum .klein { font-size: .9375rem; color: #b9b5c8; }
.impressum a { color: var(--gold); }
.impressum :focus-visible { outline-color: var(--gold); }
.demo { border-top: 1px solid rgb(255 255 255 / .15); margin-top: 1.5rem; padding-top: 1.25rem; }
.demo p { margin: 0; font-size: .9375rem; color: #b9b5c8; }
@media (max-width: 760px) { .impressum__raster { grid-template-columns: 1fr; gap: .5rem; } }
