/* Helmut Bauhuber – neue Homepage */

:root {
  --papier: #f5f2ec;
  --weiss: #fffdf9;
  --tinte: #1e1b19;
  --grau: #6a625a;
  --linie: #ddd5ca;
  --rot: #9c2215;
  --rot-dunkel: #6c0f07;

  /* Schriften liegen lokal (css/fonts.css) – keine Verbindung zu Google */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --breite: 1200px;
  --rand: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(38px, 4.6vw, 52px); margin-bottom: 28px; }
h3 { font-size: 26px; }

/* Kopfzeile */

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--rand);
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.marke img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  border: 1px solid var(--linie);
}

.navigation { display: flex; gap: 28px; }
.navigation a {
  text-decoration: none;
  font-size: 15px;
  color: var(--grau);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.navigation a:hover, .navigation a.aktiv { color: var(--tinte); border-bottom-color: var(--rot); }

.menue-knopf {
  display: none;
  font: inherit;
  font-size: 15px;
  background: none;
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}

/* Start */

.start {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--rand);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.vorzeile {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--rot);
  margin: 0 0 20px;
}

.start h1 { font-size: clamp(64px, 10vw, 124px); letter-spacing: -0.01em; }

.start-ort { font-family: var(--serif); font-size: 25px; color: var(--grau); margin: 20px 0 0; }

.start-satz { max-width: 34em; margin: 28px 0 36px; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

.knopf {
  display: inline-block;
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid var(--tinte);
  border-radius: 999px;
  background: transparent;
  color: var(--tinte);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.knopf:hover { background: var(--tinte); color: var(--papier); }
.knopf-voll { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf-voll:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }

.start-bild { margin: 0; justify-self: center; max-width: 460px; }
.start-bild img { box-shadow: 0 30px 60px -20px rgba(40, 20, 10, .35); }
.start-bild figcaption { font-size: 14px; color: var(--grau); margin-top: 14px; }

/* Abschnitte */

.abschnitt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--rand);
  border-top: 1px solid var(--linie);
}

.anzahl { color: var(--grau); font-size: 15px; margin: -16px 0 28px; }

/* Werke */

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; align-items: center; }
.raster [hidden] { display: none; }
.filter-titel { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--grau); margin: 0 6px 0 10px; }
.filter-titel:first-child { margin-left: 0; }
.filter button {
  font: inherit;
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--weiss);
  color: var(--tinte);
  cursor: pointer;
}
.filter button:hover { border-color: var(--tinte); }
.filter button[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px 20px;
}

.raster-titel {
  grid-column: 1 / -1;
  font-size: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--linie);
}
/* Trennlinie nur zwischen Gruppen: bei einem einzelnen Filter steht die
   Überschrift ganz oben und darf nicht anders aussehen als die erste Gruppe */
.raster-titel:first-child,
.raster[data-filter]:not([data-filter="alle"]) .raster-titel { padding-top: 0; border-top: 0; }

.werk {
  display: block;
  text-decoration: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
}

/* Jedes Bild sitzt ungeschnitten in einem gleich großen, hellen Passepartout */
.passepartout {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 14px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  transition: box-shadow .3s, transform .3s;
}
.passepartout img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.werk:hover .passepartout { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(40, 20, 10, .35); }
.werk-text { display: block; font-size: 13px; color: var(--grau); margin-top: 8px; }

/* Über mich */

.ueber { display: grid; grid-template-columns: 156px 1fr; gap: clamp(32px, 6vw, 80px); }
.ueber-bild img { width: 156px; filter: grayscale(.15); }
.einleitung { font-family: var(--serif); font-size: 26px; line-height: 1.45; margin: 0 0 32px; max-width: 30em; }

.vita { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.vita li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--linie);
}
.vita .jahr { color: var(--rot); font-variant-numeric: tabular-nums; font-size: 15px; padding-top: 2px; }

/* Atelier & Kontakt */

.atelier-bilder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.atelier-bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Beide Kästen stehen nebeneinander und sind immer gleich hoch */
.kontakt { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: stretch; }
.kasten { background: var(--weiss); border: 1px solid var(--linie); padding: 32px; }
.kontakt-info { display: flex; flex-direction: column; align-items: flex-start; }
.kontakt-info .knopf { margin-top: auto; }
.kontakt-hinweis { font-family: var(--serif); font-size: 26px; line-height: 1.4; margin: 0 0 24px; }
.kontakt address { font-style: normal; margin-bottom: 20px; }
.kontakt-liste { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 28px; }
.kontakt-liste dt { color: var(--grau); }
.kontakt-liste dd { margin: 0; overflow-wrap: anywhere; }
.kontakt-liste a { text-decoration-color: var(--linie); text-underline-offset: 3px; }
.kontakt-liste a:hover { text-decoration-color: var(--rot); }

.formular h3 { margin-bottom: 20px; }
.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feld label { font-size: 14px; color: var(--grau); }
.feld label span { opacity: .75; }
.feld input, .feld textarea {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--linie);
  border-radius: 4px;
  background: var(--papier);
  color: var(--tinte);
  width: 100%;
}
.feld textarea { resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--rot); outline-offset: -1px; border-color: transparent; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-hinweis { font-size: 13px; color: var(--grau); margin: 0 0 20px; }
.feld .ungueltig { border-color: var(--rot); background: #fbf0ee; }
.formular-meldung { margin: 0 0 16px; padding: 12px 14px; background: #e8f0e4; color: #2c4a22; border-radius: 4px; }
.formular-meldung.fehler { background: #f6e2de; color: var(--rot-dunkel); }

/* Fußzeile */

.fuss {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px var(--rand);
  background: var(--tinte);
  color: #b9b0a6;
  font-size: 14px;
}
.fuss nav { display: flex; gap: 24px; }
.fuss a { color: #e8e1d8; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }

/* Großansicht */

.leuchtkasten {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 17, 15, .96);
  color: #eee6dc;
}
.leuchtkasten[open] { display: flex; align-items: center; justify-content: center; }
.leuchtkasten::backdrop { background: transparent; }
.leuchtkasten figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.leuchtkasten img { max-width: min(90vw, 900px); max-height: 82vh; width: auto; height: auto; }
.leuchtkasten figcaption { font-size: 15px; color: #b9b0a6; }
.leuchtkasten button {
  position: absolute;
  background: none;
  border: 0;
  color: #eee6dc;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  padding: 16px;
  opacity: .7;
}
.leuchtkasten button:hover { opacity: 1; }
.lk-zu { top: 8px; right: 12px; }
.lk-zurueck { left: 8px; top: 50%; transform: translateY(-50%); }
.lk-weiter { right: 8px; top: 50%; transform: translateY(-50%); }

/* Unterseiten (Impressum, Datenschutz) */

.text-seite { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--rand); }
.text-seite h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 32px; }
.text-seite h2 { font-size: 28px; margin: 40px 0 12px; }
.text-seite .knopf { margin-top: 16px; }

/* Schmale Bildschirme */

@media (max-width: 860px) {
  .marke { font-size: 22px; gap: 10px; }
  .marke img { width: 36px; height: 36px; }
  .menue-knopf { display: block; }
  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
    padding: 8px var(--rand) 16px;
  }
  .navigation.offen { display: flex; }
  /* Unterseiten haben nur einen Link und brauchen kein aufklappbares Menü */
  .navigation.navigation-fest { display: flex; position: static; padding: 0; border: 0; background: none; }
  .navigation.navigation-fest a { border: 0; padding: 4px 0; font-size: 15px; }
  .navigation a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--linie); }

  .start { grid-template-columns: 1fr; }
  .start-bild { max-width: 380px; }
  .ueber { grid-template-columns: 1fr; }
  .atelier-bilder { grid-template-columns: 1fr 1fr; }
  .kontakt { grid-template-columns: 1fr; }
  .kasten { padding: 24px; }
  .feld-reihe { grid-template-columns: 1fr; gap: 0; }
  .vita li { grid-template-columns: 1fr; gap: 2px; }
  .raster { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .passepartout { padding: 8px; }
  .lk-pfeil { display: none; }
}
