/* dalmatia-service.com – Stylesheet
   Keine externen Schriften oder Dienste: alles lokal, DSGVO-freundlich. */

:root {
  --deep: #0c3547;      /* tiefes Adria-Blau: Navigation, Überschriften, Footer */
  --sea: #0f6b7c;       /* Links */
  --mist: #e4eeee;      /* Faktenkasten */
  --page: #f4f6f5;      /* Seitenhintergrund, kühles Kalkgrau */
  --olive: #55621f;     /* Preis, Zahlenwerte */
  --ink: #17252d;       /* Fließtext */
  --muted: #4a5c65;
  --line: #cbd8d8;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--sea); text-underline-offset: 0.18em; }
a:hover { color: var(--deep); }

:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Kopf: Titelbild mit Menü ---------- */

.hero {
  position: relative;
  margin-top: 1.25rem;
  height: clamp(250px, 36vw, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(12, 53, 71, 0.55), transparent);
  pointer-events: none;
}

.nav {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 53, 71, 0.86);
}

.menue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.menue li + li { border-left: 1px solid rgba(255, 255, 255, 0.2); }

/* Sprachwahl: kleine Flaggen oberhalb des Menüs */
.sprachen {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.9rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sprachen a {
  display: block;
  line-height: 0;
  padding: 3px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.sprachen a:hover,
.sprachen a[aria-current] { opacity: 1; }

.sprachen a[aria-current] { outline: 2px solid #fff; outline-offset: 0; }

.sprachen img {
  width: 30px;
  height: 20px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.menue a {
  display: block;
  padding: 1rem 0.75rem;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.97rem;
  line-height: 1.3;
  transition: background-color 0.15s;
}

.menue a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.menue a[aria-current="page"] {
  background: #fff;
  color: var(--deep);
  font-weight: 600;
}

/* ---------- Inhalt ---------- */

main { flex: 1; padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--deep);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Einleitung: Bild links, Text rechts */
.intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.intro figure { margin: 0; }
.intro figure img { border-radius: var(--radius); }

.intro__text { max-width: 44rem; }
.intro__text > div + div {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.intro__text p { margin: 0 0 0.9rem; }
.intro__text p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  color: var(--deep);
}

/* Kontaktpersonen */
.personen { margin-top: 2.25rem; display: grid; gap: 1.5rem; }

.person {
  padding-left: 1.25rem;
  border-left: 4px solid var(--sea);
}
.person h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.person dl { margin: 0; display: grid; gap: 0.15rem; }
.person dl div { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.person dt { min-width: 10rem; color: var(--muted); }
.person dd { margin: 0; }
.name-bild { display: block; height: 1.25em; width: auto; user-select: none; -webkit-user-drag: none; }
.kontakt-bild { display: inline-block; height: 1.35em; width: auto; vertical-align: -0.32em; user-select: none; -webkit-user-drag: none; }

/* ---------- Angebote ---------- */

.angebot { margin-top: clamp(3rem, 7vw, 5.5rem); }

.angebot:first-of-type { margin-top: 0; }

.angebot + .angebot {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.angebot__kopf {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.nr {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.angebot__kopf h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

.sub {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.angebot__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: 1.75rem;
  align-items: start;
}

.haupt { margin: 0; grid-column: 1; }
.haupt img { width: 100%; border-radius: var(--radius); }

.text { grid-column: 1; max-width: 44rem; }

/* Faktenkasten: bleibt beim Lesen des langen Textes sichtbar */
.fakten {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 1.25rem;
  background: var(--mist);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
}

.fakten__kern {
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.fakten__kern p { margin: 0; }

.gross {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--deep);
}
.gross small {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.preis {
  margin-top: 0.6rem !important;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--olive);
  line-height: 1.2;
}

.fakten ul { margin: 0; padding-left: 1.15rem; }
.fakten li { padding: 0.12rem 0; }
.fakten li::marker { color: var(--sea); }

/* Fließtext der Exposés */
.text p { margin: 0 0 1.05rem; }

.text h3 {
  font-size: 1.3rem;
  margin: 2.1rem 0 0.7rem;
}

.text h3.lede {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  margin: 0 0 1.1rem;
}

.text ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.text li { margin-bottom: 0.45rem; }
.text li::marker { color: var(--sea); }

/* Fotogalerie */
.galerie {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
}

.galerie a {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}

.galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.galerie a:hover img { transform: scale(1.04); }

/* Lagepläne und Katasterkarten ungeschnitten zeigen */
.galerie .plan img { object-fit: contain; background: #fff; }
.galerie .plan:hover img { transform: none; }

/* Ausschnitt nach rechts verschieben, damit Beschriftungen im Bild sichtbar bleiben */
.galerie .rechts img { object-position: 88% 50%; }

.galerie--solo { margin-top: 0; }

/* Karte mit Klick zum Laden */
.karte {
  margin-top: 1.5rem;
  background: var(--mist);
  border-radius: var(--radius);
  min-height: 18rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
}

.karte p { margin: 0 0 1rem; max-width: 34rem; color: var(--muted); font-size: 0.95rem; }

.karte button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  padding: 0.8rem 1.5rem;
}
.karte button:hover { background: var(--sea); }

.karte iframe {
  width: 100%;
  height: 500px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}
.karte--offen { padding: 0; background: none; display: block; }

/* ---------- Fuß ---------- */

.fuss {
  background: var(--deep);
  color: #dbe7ea;
  text-align: center;
  padding: 1.6rem 1rem;
  font-size: 0.95rem;
}

/* ---------- Bildbetrachter ---------- */

dialog.lb {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: rgba(8, 24, 32, 0.96);
  color: #fff;
}
dialog.lb[open] { display: grid; place-items: center; }
dialog.lb::backdrop { background: rgba(8, 24, 32, 0.96); }

.lb img {
  max-width: min(94vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  background: #fff;
}

.lb button {
  position: absolute;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}
.lb button:hover { background: rgba(255, 255, 255, 0.28); }
.lb__x { top: 1rem; right: 1rem; }
.lb__p { left: 1rem; top: 50%; translate: 0 -50%; }
.lb__n { right: 1rem; top: 50%; translate: 0 -50%; }

/* ---------- Anpassung an kleinere Bildschirme ---------- */

@media (max-width: 920px) {
  .angebot__body { grid-template-columns: minmax(0, 1fr); }
  .haupt, .text, .fakten { grid-column: 1; grid-row: auto; }
  .fakten { position: static; }
  .text { max-width: none; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }

  .hero { height: auto; background: none; overflow: visible; border-radius: 0; }
  .hero__img { height: 220px; border-radius: var(--radius) var(--radius) 0 0; }
  .hero::after { display: none; }

  .nav {
    position: static;
    background: var(--deep);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
  }
  .menue { grid-template-columns: 1fr 1fr; }
  .menue li:nth-child(odd) { border-left: 0; }
  .menue li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.2); }

  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro figure img { max-height: 340px; width: auto; max-width: 100%; }

  .angebot__kopf { align-items: flex-start; }
  .nr { width: 2.75rem; height: 2.75rem; font-size: 1.35rem; }
  .karte iframe { height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .galerie img, .menue a, .sprachen a { transition: none; }
  .galerie a:hover img { transform: none; }
}

@media print {
  .nav, .karte, dialog.lb { display: none; }
  .hero { height: 200px; }
  .fakten { position: static; }
}
