/* Essers KG – Stylesheet
   Keine externen Schriften, keine externen Anfragen: schnell und ohne Drittanbieter-Übermittlung. */

:root {
  --ink: #17213B;
  --ink-2: #222E4F;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --line: #D9DDE5;
  --steel: #4F5A70;
  --brass: #E3B95A;
  --brass-d: #8A6414;
  --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;
  --gut: clamp(20px, 5vw, 48px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.on-dark :focus-visible { outline-color: var(--brass); box-shadow: none; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 32px; padding-block: 14px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: 0.005em; }
.brand span { font-size: 0.85rem; color: var(--steel); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 600;
}
.nav a:hover, .nav a[aria-current], .nav .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--brass-d); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; }
.hero .wrap { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 24px; max-width: 15em;
}
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40em; color: #D9DEEA; margin: 0 0 32px; }
.hero a { color: #fff; }

/* Hero mit Foto: Bild liegt als echtes <img> hinter dem Text (schneller und suchmaschinenfreundlicher als CSS-Hintergrund) */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(23, 33, 59, var(--hero-overlay, 0.65)); }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; font-weight: 700; text-decoration: none; border: 2px solid transparent; border-radius: 2px;
  cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: #EBC972; }
.btn-ghost { border-color: #fff; color: #fff; }
.hero a.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
a.btn-dark { color: #fff; }

/* Strecke Aachen – Pirna */
.route { display: flex; align-items: center; gap: 16px; margin-top: clamp(44px, 7vw, 80px); }
.route-pt { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 700; }
.route-pt::before, .route-end::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--brass); }
.route-pt:last-child::before { content: none; }
.route-line { flex: 1; height: 0; border-top: 2px dashed var(--brass); }
.route-note { margin: 12px 0 0; color: #C3CADB; font-size: 0.95rem; }
.hero-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: 1.05rem; }
.hero-facts strong { font-family: var(--serif); font-size: 1.25rem; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--white { background: var(--white); }
.section h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 0; font-weight: 700;
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose--serif { font-family: var(--serif); font-size: 1.2rem; line-height: 1.75; }

.portfolio { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 0; max-width: 62ch; }
.portfolio li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.portfolio li:last-child { border-bottom: 1px solid var(--line); }
.portfolio strong { font-family: var(--serif); font-size: 1.2rem; }

/* ---------- Mietangebote ---------- */
.offers { list-style: none; margin: 40px 0 0; padding: 0; }
.offer {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px); padding-block: 32px; border-top: 1px solid var(--line);
}
.offer:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .offer { grid-template-columns: minmax(0, 1fr); } }
.offer-media { display: block; aspect-ratio: 3 / 2; background: #E6E9EF; overflow: hidden; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }
.offer h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin: 0 0 4px; }
.offer h3 a { text-decoration: none; }
.offer h3 a:hover { text-decoration: underline; }
.offer .meta { color: var(--steel); margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px 24px; margin: 0 0 20px; }
.facts dt { font-size: 0.85rem; color: var(--steel); }
.facts dd { margin: 0; font-weight: 700; }
.facts .rent dd { font-size: 1.25rem; }
.badge { display: inline-block; padding: 2px 10px; font-size: 0.85rem; font-weight: 700; background: #FFF4D6; border: 1px solid var(--brass); margin-bottom: 8px; }

.empty { max-width: 62ch; margin: 32px 0 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.empty p { margin: 0 0 12px; }
.empty p:last-child { margin: 0; }

.filter { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); text-decoration: none; font-weight: 600; }
.filter a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- Kontakt ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person { border-top: 3px solid var(--ink); padding: 16px 0 28px; }
.person h3 { font-family: var(--serif); margin: 0 0 2px; font-size: 1.35rem; line-height: 1.2; }
.person .role { color: var(--steel); margin: 0 0 12px; }
.person p { margin: 0; }
.person a { display: inline-block; padding-block: 4px; }
.person .fax { color: var(--steel); font-size: 0.95rem; }

.office { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .office { grid-template-columns: minmax(0, 1fr); } }
.office h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 8px; }
.office address { font-style: normal; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }

/* ---------- Detailseite ---------- */
.crumbs { font-size: 0.95rem; color: var(--steel); margin: 0 0 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--steel); }

.page-head { background: var(--white); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(32px, 5vw, 56px); }
.page-head h1 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; margin: 0 0 8px; }
.page-head .meta { margin: 0; color: var(--steel); font-size: 1.1rem; }

.detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); } }

.gallery-stage { position: relative; aspect-ratio: 3 / 2; background: #E6E9EF; overflow: hidden; }
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.gallery-bar button {
  min-height: 44px; min-width: 44px; padding: 0 16px; background: var(--ink); color: #fff; border: 0;
  font: inherit; font-weight: 700; cursor: pointer;
}
.gallery-bar button:hover { background: var(--ink-2); }
.gallery-count { color: var(--steel); }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.thumbs button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 3 / 2; overflow: hidden; opacity: 0.75; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid var(--brass-d); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--steel); }
.spec dd { margin: 0; font-weight: 700; }
.spec .rent dd { font-size: 1.25rem; }

.aside-box { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 24px; margin-top: 32px; }
.aside-box h2 { font-size: 1.35rem; margin-bottom: 8px; }
.aside-box p { margin: 0 0 12px; }

.detail h2.sub { font-size: 1.5rem; margin: 40px 0 12px; }
.checklist { margin: 0; padding-left: 1.2em; }
.checklist li { margin-bottom: 4px; }
.energy { margin-top: 40px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); }
.energy h2 { font-size: 1.25rem; margin-bottom: 12px; }

/* ---------- Rechtstexte / Seiten ---------- */
.legal { max-width: 70ch; }
.legal h2 { font-family: var(--serif); font-size: 1.5rem; margin: 40px 0 8px; }
.legal h3 { font-size: 1.15rem; margin: 24px 0 4px; }
.legal p, .legal ul { margin: 0 0 1em; }
.notice { background: #FFF4D6; border: 1px solid var(--brass); padding: 16px 20px; margin-bottom: 32px; }

.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: #D9DEEA; padding-block: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }

/* WordPress-Kernklassen */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: 0.9rem; color: var(--steel); }

.admin-hint { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.admin-hint span { color: var(--steel); font-size: 0.95rem; }
