/* Buchbinderei Schreyer – Entwurf V2
   Nah an der bisherigen WordPress-Seite: blaue Seitenleiste links,
   weisse Inhaltsspalte, blauer Fuss. Schriften wie bisher (Frank Ruhl Libre, Montserrat),
   jetzt lokal eingebunden. */

@font-face { font-family: "Frank Ruhl Libre"; font-weight: 400; font-display: swap; src: url(../fonts/frank-ruhl-libre-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 500; font-display: swap; src: url(../fonts/frank-ruhl-libre-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 700; font-display: swap; src: url(../fonts/frank-ruhl-libre-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); }

:root {
  --blau: #1f317c;        /* Hausfarbe wie bisher */
  --blau-tief: #18275f;
  --blaugrau: #8089bc;    /* bisherige Menüfarbe */
  --grund: #f4f4f4;       /* bisheriger Seitenhintergrund */
  --text: #333;
  --linie: #dcdcdc;
  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: var(--serif); font-size: 17px; line-height: 1.65;
}
a { color: var(--blau); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; }

/* ── Rahmen: wie bisher 1100 px, mittig ─────────────────── */
.rahmen {
  max-width: 1100px; margin: 0 auto; min-height: 100vh;
  display: grid; grid-template-columns: 270px 1fr;
  background: var(--blau);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 10px 40px rgba(31,49,124,.12);
}

/* ── Seitenleiste ───────────────────────────────────────── */
.leiste {
  color: #fff; padding: 34px 26px 30px;
  position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.marke { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; text-decoration: none; }
.siegel { width: 112px; height: 112px; display: block; }
.marke-text { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.marke-name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; line-height: 1.25; }
.marke-ort { font-family: var(--sans); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blaugrau); }

.menue { margin-top: 26px; }
.menue summary { display: none; }
.menue ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.menue li { border-bottom: 1px solid rgba(255,255,255,.18); }
.menue a {
  display: block; padding: 7px 4px 7px 14px; position: relative;
  font-family: var(--sans); font-size: .84rem; line-height: 1.35; letter-spacing: .01em;
  color: #e6e8f3; text-decoration: none;
  transition: color .15s, background-color .15s;
}
.menue a::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: transparent; transition: background-color .15s;
}
.menue a:hover { color: #fff; background: rgba(255,255,255,.05); }
.menue a:hover::before { background: var(--blaugrau); }
.menue a[aria-current] { color: #fff; font-weight: 500; }
.menue a[aria-current]::before { background: #fff; }

.leiste-kontakt {
  margin: 28px 0 0; padding-left: 14px;
  font-family: var(--sans); font-size: .74rem; line-height: 1.6; color: var(--blaugrau);
}
.leiste-kontakt a { color: #e6e8f3; text-decoration: none; }

/* ── Inhaltsspalte ──────────────────────────────────────── */
.spalte { display: flex; flex-direction: column; min-width: 0; }
.seite { background: #fff; flex: 1; padding: 64px 80px 96px; }
.inhalt { max-width: 640px; }

.seitentitel {
  font-family: var(--serif); font-weight: 700; font-size: 2.35rem; line-height: 1.2;
  color: #000; margin: 0 0 1.6rem; max-width: 640px;
}
.seitentitel::after { content: ""; display: block; width: 56px; height: 3px; background: var(--blau); margin-top: 18px; }

/* Startseite: blaues Titelband wie bisher */
.titelband {
  background: var(--blau); color: #fff;
  margin: -64px -80px 52px; padding: 70px 80px 54px;
}
.titelband h1 { font-family: var(--serif); font-weight: 700; font-size: 2.9rem; line-height: 1.15; margin: 0; }
.titelband p { margin: .9rem 0 0; font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blaugrau); }

p { margin: 0 0 1.05em; }
h3 { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: #000; margin: 2.2em 0 .6em; line-height: 1.3; }
ul { padding-left: 1.2em; margin: 0 0 1.2em; }
li { margin-bottom: .55em; }
li::marker { color: var(--blau); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 2.2em 0; max-width: 640px; }
.hinweis, .klein { font-size: .88rem; color: #777; font-style: normal; }
.telefon { font-weight: 500; }

.mitteilung {
  border-left: 3px solid var(--blau); background: #f3f4f9;
  padding: 14px 20px; margin: 1.8em 0;
}
.mitteilung p { margin: 0; font-weight: 500; color: var(--blau-tief); }

/* Einzelbilder */
.einzelbild { margin: 2em 0; }
.einzelbild img { display: block; }
.einzelbild.mitte.hoch { max-width: 400px; margin-left: auto; margin-right: auto; }
.einzelbild.breit { max-width: 100%; }
.einzelbild a { display: block; cursor: zoom-in; }

/* ── Galerien (Vorschaubilder wie bisher, mit Bildansicht) ── */
.galerie {
  display: grid; grid-template-columns: repeat(var(--spalten, 5), 1fr);
  gap: 10px; margin: 1em 0 2.4em; max-width: 760px;
}
.galerie figure { margin: 0; }
.galerie a { display: block; cursor: zoom-in; overflow: hidden; background: #eee; border: 1px solid #d5d5d5; }
.galerie img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform .35s ease, filter .2s;
}
.galerie a:hover img { transform: scale(1.04); filter: brightness(1.04); }
.galerie figcaption { font-size: .78rem; line-height: 1.35; color: #666; margin-top: 5px; }

/* Preise */
.preise { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 4px 0 10px; margin: 2em 0; }
.preise h3 { margin-top: 1em; }
.preise table { border-collapse: collapse; width: 100%; margin: .4em 0 1em; }
.preise td { padding: 6px 0; border-bottom: 1px dotted #ccc; }
.preise td:last-child { text-align: right; white-space: nowrap; font-weight: 500; }

/* Kontakt */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 760px; }
.zweispaltig h3:first-child { margin-top: 0; }
.formular { display: grid; gap: 14px; }
.formular label { display: grid; gap: 4px; font-family: var(--sans); font-size: .8rem; font-weight: 500; color: #555; }
.formular input, .formular textarea {
  font: inherit; font-family: var(--serif); font-size: 1rem; color: var(--text);
  border: 1px solid #cfcfcf; padding: 8px 10px; background: #fafafa; border-radius: 0;
}
.formular input:focus, .formular textarea:focus { outline: 2px solid var(--blaugrau); outline-offset: 0; background: #fff; }
.formular button {
  justify-self: start; font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  background: var(--blau); color: #fff; border: 0; padding: 10px 20px; cursor: pointer;
}
.formular button:hover { background: var(--blau-tief); }
.formhinweis { font-size: .85rem; color: var(--blau); }
.karte svg { display: block; width: 100%; height: auto; border: 1px solid #d5d5d5; }
.kartenlink { display: inline-block; margin-top: 6px; font-family: var(--sans); font-size: .78rem; }

/* ── Fuss: blau wie bisher ──────────────────────────────── */
.fuss {
  background: var(--blau); color: #ccc; padding: 26px 80px 30px;
  font-family: var(--sans); font-size: .76rem; line-height: 1.7;
}
.fuss p { margin: 0; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-links { margin-top: 4px !important; color: var(--blaugrau); }

/* ── Bildansicht (Lightbox) ─────────────────────────────── */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,16,44,.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 86vw; max-height: 82vh; display: block; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lightbox figcaption { color: #dfe2f0; font-size: .9rem; margin-top: 12px; min-height: 1.4em; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2.6rem; line-height: 1; padding: 10px 18px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lb-zu { top: 12px; right: 12px; }
.lb-zurueck { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-weiter { right: 8px; top: 50%; transform: translateY(-50%); }

/* ── Bearbeitungsmodus (nur Entwurf) ───────────────────── */
.bearbeiten-leiste {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  font-family: var(--sans); font-size: .76rem;
}
.bearbeiten-leiste button {
  font: inherit; cursor: pointer; border: 1px solid var(--blau); background: #fff; color: var(--blau);
  padding: 7px 12px;
}
.be-start { box-shadow: 0 4px 16px rgba(0,0,0,.15); background: var(--blau) !important; color: #fff !important; }
.be-aktiv { display: none; }
.bearbeiten .be-start { display: none; }
.bearbeiten .be-aktiv {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 520px;
  background: #fff; border: 1px solid #ccd; box-shadow: 0 6px 24px rgba(0,0,0,.16); padding: 10px 12px;
}
.be-hinweis { flex-basis: 100%; font-weight: 500; color: var(--blau); }
.be-status { flex: 1; color: #666; }
.be-fertig { background: var(--blau) !important; color: #fff !important; }
.be-verwerfen { border-color: #bbb !important; color: #666 !important; }
.be-mic.hoert { background: #b3261e !important; border-color: #b3261e !important; color: #fff !important; }
.bearbeiten [contenteditable] { outline: 1px dashed rgba(31,49,124,.35); outline-offset: 3px; cursor: text; }
.bearbeiten [contenteditable]:hover { outline-color: rgba(31,49,124,.7); }
.bearbeiten [contenteditable]:focus { outline: 2px solid var(--blau); background: #fffef0; }
.bearbeiten .geaendert { background: #fff8d6; box-shadow: -6px 0 0 #f0c419; }
.bearbeiten .titelband [contenteditable]:focus, .bearbeiten .titelband .geaendert { background: rgba(255,255,255,.12); }

/* ── Schmale Bildschirme ────────────────────────────────── */
@media (max-width: 860px) {
  .rahmen { grid-template-columns: 1fr; }
  .leiste {
    position: relative; max-height: none; overflow: visible;
    flex-direction: row; flex-wrap: wrap; align-items: center;
    padding: 14px 20px; gap: 12px;
  }
  .marke { flex-direction: row; text-align: left; gap: 12px; }
  .siegel { width: 52px; height: 52px; }
  .marke-text { margin-top: 0; }
  .menue { margin: 0 0 0 auto; }
  .menue summary {
    display: block; list-style: none; cursor: pointer;
    font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.4); padding: 6px 12px;
  }
  .menue summary::-webkit-details-marker { display: none; }
  .menue nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--blau); padding: 6px 20px 16px; z-index: 30; }
  .menue:not([open]) nav { display: none; }
  .leiste-kontakt { display: none; }
  .seite { padding: 36px 22px 64px; }
  .titelband { margin: -36px -22px 36px; padding: 44px 22px 36px; }
  .titelband h1 { font-size: 2.1rem; }
  .seitentitel { font-size: 1.85rem; }
  .galerie { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .zweispaltig { grid-template-columns: 1fr; gap: 10px; }
  .fuss { padding: 22px; }
}

.honig { position: absolute; left: -9999px; }
.formular-meldung { border-left: 3px solid var(--blau); background: #f3f4f9; padding: 12px 18px; }
