/* Michael Calcada Photografie – Layout nach dem Vorbild der alten Seite */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  font-family: Helvetica, Arial, sans-serif;
  background: transparent;
  -webkit-text-size-adjust: 100%;
}

/* Farbschemata: "hell" = weiße Schrift (dunkle Fotos), "dunkel" = graue Schrift (helle Fotos) */
.theme-hell   { color: #fff; }
.theme-hell a { color: #fff; }
.theme-hell a:visited { color: #ccc; }
.theme-hell .aktiv { color: #ccc; }
.theme-dunkel   { color: #333; }
.theme-dunkel a { color: #333; }
.theme-dunkel a:visited { color: #666; }
.theme-dunkel .aktiv { color: #333; }
a:hover, a:active { color: #f90 !important; }

/* Kopfzeile: Logo links, Titel rechts */
.kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-height: 104px;
}
.kopf .logo img { display: block; width: 80px; height: 80px; }
.kopf h1 {
  flex: 1;
  text-align: right;
  font-size: 2em;
  font-weight: bold;
  white-space: pre-line;
  line-height: 1.15;
}

/* Menüleiste */
.leiste {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 12px 12px;
  font-size: .83em;
  font-weight: bold;
}
.leiste .menu a, .leiste .rechts a { text-decoration: underline; }
.leiste .rechts { text-align: right; font-weight: normal; }
.leiste .rechts small { font-size: .8em; }
.trenner { margin: 0 .15em; }

/* Zweispaltiger Inhalt */
.haupt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  min-height: 450px;
}
.spalte { min-width: 0; }
.galerieseite .spalte.rechts, .textseite .spalte.rechts { align-self: start; }
.inhalt { font-size: 1rem; }
.inhalt p { margin-bottom: 1em; }
.inhalt table { max-width: 100%; }
.inhalt img { max-width: 100%; height: auto; }

/* Zitat auf der Startseite */
.start .spalte.rechts { display: flex; align-items: center; justify-content: center; }
.zitat {
  width: 450px;
  max-width: 100%;
  padding: 12px;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.35;
}
.theme-dunkel .zitat { color: #000; }
.zitat footer {
  margin-top: 1.2em;
  text-align: right;
  font-family: Helvetica, Arial, sans-serif;
  font-size: .55em;
}

/* Vorschaubilder – 150 × 100 wie bisher, 4 pro Zeile */
.raster {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  justify-content: center;
  gap: 4px 6px;
}
.kachel { text-align: center; }
.kachel img, .kachel .leer {
  display: block;
  width: 150px;
  height: 100px;
  object-fit: cover;
  border: 0;
  margin: 0 auto;
}
.kachel .leer {
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); color: #fff; font-size: .7em; font-weight: bold; padding: 4px;
}
.kachel a:hover img { outline: 2px solid #f90; }
.kachel figcaption {
  font-size: .67em;
  font-weight: bold;
  margin: .8em 0 1.4em;
  text-transform: uppercase;
}
.kachel .datum { font-weight: normal; }

.hinweis { font-size: 1.1em; }

/* ---------- Einzelbild ---------- */
.bildseite {
  background: #000;
  color: #fff;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
.vollbild { position: fixed; inset: 0; }
.vollbild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.bildinfo {
  position: fixed;
  top: 14px;
  left: 16px;
  max-width: 60vw;
  font-size: .8em;
  font-weight: bold;
  line-height: 1.4;
  text-shadow: 0 0 4px rgba(0,0,0,.9), 0 0 1px #000;
}
.bildnav {
  position: fixed;
  top: 8px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity .4s;
}
.bildnav a, .umschalten {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: #fff !important;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  background: rgba(0,0,0,.35);
  border-radius: 50%;
}
.bildnav a#uebersicht { font-size: 18px; }
.bildnav a:hover, .umschalten:hover { background: rgba(0,0,0,.7); }
.zaehler { font-size: .75em; text-shadow: 0 0 3px #000; padding: 0 4px; }
.umschalten {
  position: fixed; right: 10px; bottom: 10px;
  border: 0; cursor: pointer; font-size: 20px;
  transition: opacity .4s;
}
.ruhig .bildnav, .ruhig .umschalten { opacity: 0; }
.ruhig { cursor: none; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .haupt { grid-template-columns: 1fr; min-height: 0; }
  .start .haupt { min-height: 60vh; }
  .start .spalte.links:empty, .galerieseite .spalte.links:has(.inhalt:empty) { display: none; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .kachel img, .kachel .leer { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .kopf h1 { font-size: 1.35em; }
  .kopf .logo img { width: 56px; height: 56px; }
  .kopf { min-height: 0; }
  .leiste { flex-direction: column; gap: 6px; }
  .leiste .rechts { text-align: left; }
  .raster { grid-template-columns: repeat(2, 1fr); }
  .bildinfo { max-width: 55vw; font-size: .72em; }
}
