/* ==========================================================
   Ferien- und Monteurswohnung Fechner – Stylesheet
   Farben siehe Design/Farben_und_Design.md
   ========================================================== */

:root {
  --creme:   #F2EFDC;
  --sand:    #D2C09A;
  --taupe:   #B59B82;
  --mokka:   #6F5B50;
  --weinrot: #7C1621;
  --text:    #4A3B33;           /* etwas dunkler als Mokka für bessere Lesbarkeit */
  --bg-image: url("../images/design/hintergrund_braun.jpg");
  --bg-color: var(--mokka);
  --radius: 6px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Helvetica, Arial, sans-serif;
}


/* Hintergrund-Variante 2 (rot): <html data-bg="rot"> */
html[data-bg="rot"] {
  --bg-image: url("../images/design/hintergrund_rot.jpg");
  --bg-color: var(--weinrot);
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-color) var(--bg-image) center top / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--weinrot); }
a:hover { color: var(--mokka); }

/* ---------- Kopfbereich ---------- */
.site-header {
  text-align: center;
  padding: 28px 16px 0;
}
.site-header .logo {
  display: inline-block;
  width: min(420px, 80vw);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

/* ---------- Navigation ---------- */
.nav {
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  list-style: none;
}
.nav a {
  display: block;
  padding: 8px 18px;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .03em;
  color: var(--creme);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.nav a:hover,
.nav a:focus-visible {
  border-color: var(--sand);
  color: var(--sand);
  outline: none;
}
.nav a[aria-current="page"] {
  background: var(--sand);
  color: var(--weinrot);
}

/* ---------- Inhalt ---------- */
main {
  flex: 1;
  width: min(1000px, calc(100% - 32px));
  margin: 28px auto 32px;
  padding: 40px 48px 48px;
  background: var(--creme);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  color: var(--weinrot);
  line-height: 1.25;
}
h1 {
	font-size: 2rem;
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--sand);
}
h2 { font-size: 1.45rem; margin: 0 0 10px; }
h3 { font-size: 1.15rem; margin: 32px 0 8px; }

p { margin: 0 0 14px; }

.hero-img {
  margin: 0 0 28px;
  border: 2px solid var(--weinrot);
  border-radius: var(--radius);
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--weinrot);
}

.hint { font-size: .9rem; color: var(--mokka); font-style: italic; }

/* ---------- Zimmer-Galerie ---------- */
.room {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--sand);
}
.room:nth-of-type(even) { grid-template-columns: 1.4fr 1fr; }
.room:nth-of-type(even) .room-text { order: 2; }

.room-images {
  display: grid;
  gap: 12px;
}
.room-images a {
  display: block;
  border: 2px solid var(--weinrot);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.room-images img { width: 100%; transition: transform .35s; }
.room-images a:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,10,10,.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  width: auto;
  border: 3px solid var(--sand);
  border-radius: var(--radius);
}
.lightbox button {
  position: absolute;
  background: rgba(124,22,33,.85);
  color: var(--creme);
  border: 1px solid var(--sand);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
}
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center; color: var(--sand); font-size: .9rem;
}

/* ---------- Kontaktformular ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--mokka); }
.form input[type=text],
.form input[type=email],
.form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--weinrot);
  outline-offset: 1px;
}
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.form .check input { margin-top: 5px; }
.form .check label { font-weight: normal; margin: 0; color: var(--text); }
.form .hp { position: absolute; left: -9999px; }   /* Spam-Falle, unsichtbar */
.btn {
  justify-self: start;
  padding: 11px 30px;
  font: inherit;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--creme);
  background: var(--weinrot);
  border: 1px solid var(--weinrot);
  border-radius: 999px;
  cursor: pointer;
}
.btn:hover { background: var(--mokka); border-color: var(--mokka); }

.notice {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: none;
}
.notice.ok  { display: block; background: #E3EAD3; border: 1px solid #9BAF73; }
.notice.err { display: block; background: #F3D9D6; border: 1px solid var(--weinrot); }

/* ---------- Tabellen (Impressum) ---------- */
.contact-table td { padding: 2px 18px 2px 0; vertical-align: top; }

/* ---------- Fußzeile ---------- */
.site-footer {
  text-align: center;
  padding: 0 16px 28px;
  font-size: .88rem;
  color: var(--creme);
}
.site-footer a { color: var(--sand); }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  html { font-size: 16px; }
  main { padding: 26px 20px 30px; margin-top: 20px; }
  h1 { font-size: 1.55rem; }
  .room,
  .room:nth-of-type(even) { grid-template-columns: 1fr; gap: 16px; }
  .room:nth-of-type(even) .room-text { order: 0; }
  .nav a { padding: 6px 13px; font-size: 1rem; }
  body { background-attachment: scroll; background-size: 260% auto; }
}
