/* ==========================================================================
   Hausverwaltung Schmalenbach – Onepager ohne WordPress
   Look angelehnt an das frühere WordPress-Theme „Shapely“, ohne Bootstrap,
   ohne jQuery, ohne externe Ressourcen (Schrift lokal, DSGVO-freundlich).
   ========================================================================== */

/* ---------- Schrift (lokal) ---------- */
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben & Maße ---------- */
:root {
  --rot: #dd3333;          /* Button-Farbe aus dem alten Theme */
  --rot-dunkel: #b82626;
  --blau: #2f6db5;          /* Blau aus dem Logo */
  --dunkel: #0e1015;        /* Footer */
  --text: #2b2f36;
  --text-hell: #fefefe;
  --container: 1170px;
  --header-hoehe: 91px;
}

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

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

body {
  margin: 0;
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-variant-numeric: lining-nums; /* Raleway hat sonst „Mediävalziffern“ – Telefonnummern lesbarer */
  color: var(--text);
  background: #fff;
  /* Footer bleibt auch auf kurzen Seiten (Impressum) unten */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

main { flex: 1 0 auto; }

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

a { color: var(--blau); }
a:hover, a:focus-visible { color: var(--rot); }

:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  min-height: var(--header-hoehe);
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { width: 172px; height: auto; }

/* ---------- Hero (großes Fassadenfoto) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-hoehe));
  min-height: calc(100svh - var(--header-hoehe));
  padding: 64px 16px;
  background-color: #6d7178;
  background-image: url("../img/hausverwaltung-schmalenbach-rodgau.jpg");
  background-image: image-set(
    url("../img/hausverwaltung-schmalenbach-rodgau.webp") type("image/webp"),
    url("../img/hausverwaltung-schmalenbach-rodgau.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

/* Parallax-Effekt wie früher – nur auf großen Bildschirmen mit Maus */
@media (min-width: 1024px) and (hover: hover) {
  .hero { background-attachment: fixed; }
}

.hero-box {
  width: 100%;
  max-width: 780px;
  padding: 48px 40px 52px;
  text-align: center;
  color: #fff;
  background: rgba(20, 22, 28, 0.55);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.25rem, 1.2rem + 4vw, 3.75rem);
  line-height: 1.1;
  font-weight: 300;
  color: #fff;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 32px;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  min-width: 200px;
  padding: 13px 26px;
  border: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-filled {
  background: var(--rot);
  border-color: var(--rot);
  color: #fff;
}
.btn-filled:hover,
.btn-filled:focus-visible {
  background: var(--rot-dunkel);
  border-color: var(--rot-dunkel);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: #fff;
  color: #222;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dunkel);
  color: var(--text-hell);
  font-size: 14px;
  line-height: 1.75;
}
.site-footer a { color: #fff; }
.site-footer a:hover,
.site-footer a:focus-visible { color: #ff8a8a; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-grid p,
.footer-grid address { margin: 0; font-style: normal; }

.footer-link-ferien {
  font-weight: 700;
  text-decoration: none;
}
.footer-link-ferien:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

@media (min-width: 576px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
}

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page {
  padding: 56px 0 80px;
}
.page .container { max-width: 820px; }

.page h1 {
  margin: 0 0 32px;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.15;
  font-weight: 300;
  color: var(--dunkel);
}
.page h2 {
  margin: 40px 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--dunkel);
}
.page h3 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dunkel);
}
.page p,
.page ul { margin: 0 0 16px; }
.page ul { padding-left: 1.25em; }

.zurueck {
  display: inline-block;
  margin-bottom: 32px;
  font-weight: 600;
  text-decoration: none;
}
.zurueck:hover { text-decoration: underline; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 575px) {
  :root { --header-hoehe: 79px; }
  .logo img { width: 140px; }
  .hero { padding: 40px 16px; }
  .hero-box { padding: 36px 22px 40px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  .hero { min-height: 0; background: none; }
  .hero-box { background: none; color: #000; }
  .hero h1, .hero p { color: #000; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
}
