/* Elbhandwerk Torgau — Farben und Schrift der bisherigen Website. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --dunkelblau: #025380;
  --dunkelblau-tief: #01405f;
  --hellblau: #8ac1df;
  --weiss: #fff;
  --rot: #c3423f;
  --text: #1e1e1e;
  --grau: #7f7f7f;
  --linie: #e6e6e6;
  --flaeche: #fafafa;
  --breite: 1100px;
  --rand: 20px;
}

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

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

/* Fuß klebt unten, auch wenn die Seite kurz ist */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 16px/1.65 "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

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

a { color: var(--dunkelblau); text-underline-offset: 2px; }
a:hover { color: var(--dunkelblau-tief); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.rahmen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.schmal { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--weiss); padding: 8px 12px; z-index: 20; }

/* Knöpfe */
.knopf {
  display: inline-block;
  background: var(--dunkelblau); color: var(--weiss);
  padding: 11px 22px; border-radius: 8px; border: 0;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.knopf:hover { background: var(--dunkelblau-tief); color: var(--weiss); }
.knopf-weiss { background: var(--weiss); color: var(--dunkelblau); }
.knopf-weiss:hover { background: var(--hellblau); color: var(--dunkelblau-tief); }
.knopf-rahmen { background: transparent; color: var(--dunkelblau); box-shadow: inset 0 0 0 2px var(--dunkelblau); }
.knopf-rahmen:hover { background: var(--dunkelblau); color: var(--weiss); }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: var(--dunkelblau);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; min-height: 76px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px;
}
.logo img { width: 124px; }
.nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.nav a { color: var(--weiss); text-decoration: none; font-weight: 600; }
.nav a:not(.knopf):hover, .nav a[aria-current]:not(.knopf) { color: var(--hellblau); }
.nav a.knopf-weiss { color: var(--dunkelblau); margin-left: 8px; padding: 8px 18px; }
.nav a.knopf-weiss:hover, .nav a.knopf-weiss[aria-current] { color: var(--dunkelblau-tief); background: var(--hellblau); }

.menue-knopf, .nav-extra { display: none; }

/* Handy: Burger-Menü. Ohne JavaScript (kein .js an <html>) bleibt die
   Navigation einfach sichtbar. */
@media (max-width: 860px) {
  .kopf-innen { flex-wrap: nowrap; min-height: 68px; }
  .logo img { width: 110px; }
  .js .menue-knopf {
    display: grid; gap: 5px; place-content: center;
    width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .menue-knopf span {
    display: block; width: 26px; height: 2px; background: var(--weiss); border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .kopf-offen .menue-knopf span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .kopf-offen .menue-knopf span:nth-child(2) { opacity: 0; }
  .kopf-offen .menue-knopf span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .js .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--dunkelblau); border-top: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    max-height: calc(100vh - 68px); overflow-y: auto;
    padding: 8px var(--rand) 24px;
  }
  .js .kopf-offen .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav > a:not(.knopf) { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 1.05rem; }
  .js .nav a.knopf-weiss { margin: 18px 0 6px; text-align: center; padding: 12px 18px; }
  .js .nav-extra { display: flex; flex-direction: column; padding-top: 10px; }
  .nav-extra a { padding: 8px 0; font-weight: 500 !important; font-size: .95rem; color: rgba(255, 255, 255, .8) !important; }

  html:not(.js) .kopf-innen { flex-wrap: wrap; justify-content: center; }
  html:not(.js) .nav { justify-content: center; gap: 6px 18px; font-size: 15px; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--dunkelblau) url("/assets/img/seite/hero1.webp") center / cover no-repeat;
  color: var(--weiss);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2, 83, 128, .82) 0%, rgba(2, 83, 128, .55) 55%, rgba(2, 83, 128, .15) 100%);
}
.hero .rahmen { position: relative; padding-top: 120px; padding-bottom: 130px; }
.hero .unterzeile { color: var(--hellblau); font-weight: 500; margin-bottom: .6em; }
.hero h1 { max-width: 820px; margin-bottom: .7em; font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
/* Zeilenumbrüche nur für Rechner bzw. nur für Handy */
.nur-mobil { display: none; }
@media (max-width: 760px) {
  .nur-mobil { display: inline; }
  .nur-desktop { display: none; }
  .hero .rahmen { padding-top: 72px; padding-bottom: 80px; }
  .hero::before { background: rgba(2, 83, 128, .7); }
}

/* Kopfbanner (Referenzen, Anfrage) — Bild: bilder/hero2.jpg */
.seitenkopf {
  position: relative; color: var(--weiss);
  background: var(--dunkelblau) url("/assets/img/seite/hero2.webp") center 60% / cover no-repeat;
}
.seitenkopf::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2, 83, 128, .85) 0%, rgba(2, 83, 128, .6) 60%, rgba(2, 83, 128, .35) 100%);
}
.seitenkopf .rahmen { position: relative; padding-top: 88px; padding-bottom: 88px; }
.seitenkopf .unterzeile { color: var(--hellblau); font-weight: 500; margin-bottom: .5em; }
.seitenkopf h1 { max-width: 760px; }
.seitenkopf p:last-child { max-width: 620px; margin: 0; opacity: .92; }
@media (max-width: 760px) {
  .seitenkopf .rahmen { padding-top: 56px; padding-bottom: 56px; }
}

/* Abschnitte */
.abschnitt { padding: 88px 0; }
.abschnitt-grau { background: var(--flaeche); }
.dachzeile { color: var(--grau); font-weight: 500; margin-bottom: .4em; }
.einleitung { color: var(--grau); font-size: 1.05rem; max-width: 640px; }
.mit-haus { position: relative; overflow: hidden; }
.mit-haus::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 640px; height: 190px;
  transform: translateX(-45%);
  background: url("/assets/img/seite/haus.png") center top / contain no-repeat;
  opacity: .9; filter: brightness(.96); pointer-events: none;
}
.mit-haus > * { position: relative; }

/* Über uns */
.personen {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 40px 120px;
  text-align: center; padding-top: 16px;
}
.person-bild {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 20px;
  background: #dcdcdc; overflow: hidden;
  display: grid; place-items: center;
}
.person-bild img { width: 100%; height: 100%; object-fit: cover; }
.person-bild.platzhalter img { width: 62%; height: auto; object-fit: contain; }
.person h3 { color: var(--dunkelblau); margin-bottom: .15em; font-size: 1.15rem; }
.person .rolle { color: var(--grau); font-size: .9rem; margin: 0 0 .3em; }
.person a { color: var(--hellblau); text-decoration: none; font-size: .9rem; }
.person a:hover { color: var(--dunkelblau); }
.bewerten { text-align: center; margin-top: 48px; }
.bewerten p { color: var(--grau); margin-bottom: .8em; }

/* Angebot: Text links, Fotos rechts */
.angebot-kopf { margin-bottom: 48px; }
.kategorie {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px 48px; align-items: center;
  padding: 36px 0; border-top: 1px solid var(--linie);
}
.kategorie:first-of-type { border-top: 0; }
.kategorie h3 { font-size: 1.15rem; margin-bottom: .4em; }
.kategorie p { margin-bottom: .8em; }
.kategorie .mehr { font-weight: 600; text-decoration: none; }
.kategorie .mehr:hover { text-decoration: underline; }
.folgt { color: var(--grau); font-size: .9rem; font-style: italic; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kacheln img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.kacheln.eins { grid-template-columns: 1fr; }
.kacheln.eins img { aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .kategorie { grid-template-columns: 1fr; }
  .kacheln img { aspect-ratio: 1; }
}

/* Karte */
.karte-bereich { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 56px; align-items: center; }
@media (max-width: 760px) { .karte-bereich { grid-template-columns: 1fr; } }
.karte {
  position: relative; aspect-ratio: 4 / 3; background: #e8efe8 center / cover no-repeat;
  display: grid; place-items: center; text-decoration: none;
}
.karte-link {
  background: rgba(30, 30, 30, .78); color: var(--weiss);
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.karte:hover .karte-link { background: var(--dunkelblau); }
.anschrift h2 { font-weight: 500; font-size: 1.6rem; }

/* Band über dem Footer (auf allen Seiten) — Bild: bilder/hero3.jpg */
.band {
  position: relative; color: var(--weiss); text-align: center; flex-shrink: 0;
  background: var(--text) url("/assets/img/seite/hero3.webp") center / cover no-repeat;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 30, .62); }
.band .rahmen { position: relative; padding-top: 100px; padding-bottom: 100px; }
.band h2 { font-size: clamp(2rem, 4.4vw, 2.8rem); text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.band p { text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
@media (max-width: 760px) { .band .rahmen { padding-top: 72px; padding-bottom: 72px; } }

/* Referenzen */
.ref-kategorie { padding: 56px 0; border-top: 1px solid var(--linie); }
.ref-kategorie:first-of-type { border-top: 0; padding-top: 16px; }
.ref-kategorie > p { color: var(--grau); max-width: 680px; }
.bv-liste {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 32px; margin-top: 24px;
}
.bv-karte { display: block; text-decoration: none; color: inherit; }
.bv-karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; transition: opacity .15s; }
.bv-karte:hover img { opacity: .88; }
.bv-karte h3 { color: var(--dunkelblau); margin-bottom: .2em; }
.bv-karte p { color: var(--grau); margin: 0; font-size: .9rem; }

.pfad { font-size: .9rem; color: var(--grau); margin-bottom: 1.2em; }
.pfad a { text-decoration: none; }
.pfad a:hover { text-decoration: underline; }
.eckdaten { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--grau); margin: 0 0 1.5em; padding: 0; list-style: none; }
.eckdaten strong { color: var(--text); font-weight: 600; }

.galerie {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 12px; margin: 32px 0 0;
}
.galerie a { position: relative; display: block; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .15s; }
.galerie a:hover img { opacity: .88; }
.etikett {
  position: absolute; left: 10px; top: 10px;
  background: var(--dunkelblau); color: var(--weiss);
  font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 4px;
}
.etikett-vorher { background: var(--rot); }

.weiter { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--linie); }
.weiter a { text-decoration: none; font-weight: 600; }

/* Großansicht */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(10, 10, 10, .94); color: var(--weiss);
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(10, 10, 10, .94); }
.lightbox figure { margin: 0; height: 100vh; display: grid; place-items: center; padding: 56px 8px; }
.lightbox img { max-height: calc(100vh - 112px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: .9rem; color: #ccc; }
.lightbox button {
  background: none; border: 0; color: var(--weiss); font-size: 2.2rem; line-height: 1;
  padding: 16px; cursor: pointer; font-family: inherit;
}
.lightbox button:hover { color: var(--hellblau); }
.lightbox .zu { position: absolute; top: 4px; right: 8px; font-size: 2rem; }

/* Formular */
.formular { display: grid; gap: 18px; margin-top: 32px; }
.formular label { display: block; font-weight: 600; margin-bottom: 6px; }
.formular .optional { color: var(--grau); font-weight: 400; }
.formular input, .formular select, .formular textarea {
  width: 100%; font: inherit; color: inherit;
  padding: 11px 12px; border: 1px solid #cfcfcf; border-radius: 8px; background: var(--weiss);
}
.formular textarea { min-height: 160px; resize: vertical; }
.formular input:focus, .formular select:focus, .formular textarea:focus {
  outline: 2px solid var(--hellblau); outline-offset: 1px; border-color: var(--dunkelblau);
}
.formular .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .formular .zeile { grid-template-columns: 1fr; } }
.formular .hinweis { color: var(--grau); font-size: .85rem; }
.honig { position: absolute; left: -9999px; }
.zweispaltig { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .zweispaltig { grid-template-columns: 1fr; } }
.kasten { background: var(--flaeche); border-radius: 8px; padding: 28px; border: 1px solid var(--linie); }
.kasten h3 { color: var(--dunkelblau); }

/* Textseiten (Impressum, Datenschutz) */
.text { padding: 64px 0 80px; }
.text h2 { font-size: 1.4rem; margin-top: 2em; }
.text h3 { margin-top: 1.5em; }

/* Fuß */
.fuss { background: var(--text); color: #bdbdbd; padding: 56px 0 48px; font-size: .95rem; flex-shrink: 0; }
.fuss-innen { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .fuss-innen { grid-template-columns: 1fr 1fr; } }
.fuss h2 { color: var(--weiss); font-size: 1.15rem; margin-bottom: .8em; }
.fuss a { display: block; color: #bdbdbd; text-decoration: none; margin-bottom: .35em; }
.fuss a:hover { color: var(--hellblau); }
.fuss-marke img { width: 150px; margin-bottom: 14px; }
.fuss-marke p { font-size: .75rem; color: #9a9a9a; }
