/* Florian Pawlik – Facility Management — pawlik.services */

:root {
  --bg: #faf7f2;
  --ink: #2a2620;           /* Anthrazit-warm */
  --soft: #6a7570;
  --line: #e4ddd2;
  --green: #4a7a6c;        /* Patina (Kupferdach des Hochzeitsturms) — Akzent, Flo 22.08. */
  --green-dark: #3b6457;
  --wrap: 1000px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

a { color: var(--green); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

/* Startseite: Vollbild-Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  color: #f6f1e7;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Modernes Format zuerst (AVIF ≈ 1/3 der JPG-Größe), WebP/JPG als Fallback;
     Handy bekommt die 960er-Varianten (Media Query unten). */
  background:
    image-set(url("hero-1920.avif") type("image/avif"), url("hero-1920.webp") type("image/webp"), url("hero.jpg") type("image/jpeg")) center / cover no-repeat,
    url("hero.svg") center / cover no-repeat,
    #2a2620;
}

@media (max-width: 720px) {
  .hero-bg {
    background:
      image-set(url("hero-960.avif") type("image/avif"), url("hero-960.webp") type("image/webp"), url("hero.jpg") type("image/jpeg")) 58% center / cover no-repeat,
      url("hero.svg") 58% center / cover no-repeat,
      #2a2620;
  }
}

/* Kein Overlay/Verlauf über dem Foto (Flo 22.08.) — das Bild steht pur. */

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}

/* Marke im Hero: Anthrazit auf dem hellen Himmel, Logo in Patina (K1) (Flo 22.08.: Header hervorheben,
   aber keine Abdunkelung des Bildes) */
.hero .brand { color: #2a2620; }
.hero .brand-text small { color: rgba(42,38,32,0.78); }

/* Glas-Box hinter dem Textblock (Flo 22.08.): leicht getöntes, mattiertes Glas —
   Bild und Kopfzeile bleiben pur, nur der Text bekommt seinen Grund. */
.hero-copy {
  align-self: flex-start;      /* Box so breit wie die Headline, nicht volle Breite */
  max-width: 100%;
  padding: 1.8rem 2.8rem 2rem 2rem;   /* rechts mehr Luft — Text liegt ganz in der Box */
  margin-left: -2rem;
  background: rgba(20,16,10,0.30);          /* dunkles Glas (Flo 22.08.), Text creme */
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
  backdrop-filter: blur(9px) saturate(1.1);
  border: 1px solid rgba(246,241,231,0.22);
  border-radius: 14px;
}
/* helle Variante (verworfen): Box rgba(246,241,231,.28), Rand .45, Text anthrazit #2a2620 */
.hero .hero-copy .eyebrow { color: rgba(246,241,231,0.78); }
.hero .hero-copy h1 { color: #f6f1e7; }
.hero .hero-copy .lead { color: rgba(246,241,231,0.9); }

.hero .eyebrow { color: rgba(246,241,231,0.75); margin-bottom: 1.2rem; }

.hero h1 {
  font-size: clamp(2rem, 7.6vw, 3.6rem);
  overflow-wrap: anywhere;   /* Box bleibt links vom Turm */
  hyphens: auto;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: rgba(246,241,231,0.85);
  max-width: 30rem;
}

.contact { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 3rem; }

.contact a {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #f6f1e7;
  text-decoration: none;
  border-bottom: 1px solid rgba(246,241,231,0.4);
  padding-bottom: 0.15rem;
}

.contact a:hover { border-color: #f6f1e7; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  font-size: 0.85rem;
  color: var(--soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

.footer-inner nav { display: flex; gap: 1.5rem; }

.footer-inner a { color: var(--soft); text-decoration: none; }
.footer-inner a:hover { color: var(--green); }

/* Impressum / Datenschutz */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo { display: block; width: auto; height: 2.5rem; }

.brand-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; }

.brand-text small {
  display: block;
  font-family: var(--sans);
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.legal { padding: 4rem 1.5rem 5rem; max-width: 44rem; flex: 1; }

.legal h1 { font-size: 2.2rem; margin-bottom: 1.8rem; }

.legal h2 { font-size: 1.2rem; margin: 2.2rem 0 0.6rem; }

.legal p, .legal ul { color: var(--soft); margin-bottom: 0.9rem; }

.legal ul { padding-left: 1.25rem; }

.legal .back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Hochformat: Turm (im Bild rechts der Mitte) vollständig ins Bild holen */
@media (orientation: portrait) {
  .hero-bg { background-position: 58% center, 58% center; }
}

@media (max-width: 720px) {
  .hero-inner { padding-bottom: 2.2rem; }
  /* Handy: Box über die volle Breite, Text darin — keine Schrumpf-Breite (sonst ragt die Headline heraus) */
  .hero-copy { align-self: stretch; max-width: none; margin-left: -1rem; margin-right: -1rem; padding: 1.5rem 1.2rem 1.6rem; }
  .contact { flex-direction: column; }
}
