/* ============================================================
   Strube Liegenschaftsbetreuung — Stylesheet 2026 v2
   Design-Sprache abgeleitet vom Haus-Logo:
   Line-Art mit kräftigem Strich (#353A40), Gelb (#FFDD26) als
   Farbtupfer, viel Weiß, runde Ecken, freundlich & clean.
   Schrift: Nunito (lokal gehostet, DSGVO-konform).
   ============================================================ */

@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marke — exakt aus dem Logo gesampelt */
  --ink:        #353A40;   /* Logo-Strich / Text */
  --ink-2:      #454B54;   /* Fließtext dunkel */
  --grey:       #6B727C;   /* Sekundärtext */
  --cloud:      #D8DBE6;   /* helles Grau-Blau aus dem Logo (Fensterlinien) */
  --line:       #E5E8EF;   /* Rahmen */
  --yellow:     #FFDD26;   /* Logo-Gelb */
  --yellow-d:   #F5CC00;   /* Hover-Stufe */
  --yellow-soft:#FFF8D6;   /* zarte Gelb-Fläche */
  --paper:      #FFFFFF;
  --mist:       #F7F8FA;   /* alternierende Sektionen */
  --emergency:  #C0473E;   /* Notdienst-Rot, funktional */

  /* Alt-Verweise aus früheren Versionen */
  --slate: var(--ink);
  --slate-2: #434955;
  --green: var(--ink);
  --green-d: #23272D;
  --bg: var(--mist);
  --white: #FFFFFF;

  --radius:    10px;
  --radius-sm: 7px;
  --maxw:      1120px;
  --shadow-pop: 4px 4px 0 var(--ink);
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

img, svg, video { max-width: 100%; height: auto; }
img, svg { display: inline-block; vertical-align: middle; }

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

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.015em; font-weight: 900; }

/* Gelber Marker — wie der Textbalken im Logo */
.mark {
  background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 96%, transparent 96%);
  padding: 0 .1em;
}

/* Icon-Grundlagen (eigene Line-Art-Icons im Logo-Stil) */
.icon { width: 1em; height: 1em; flex: 0 0 auto; }

/* ---------- Sektionen & Überschriften ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--mist); }

/* Dunkle Sektion (wie Kontakt) */
.section.dark { background: var(--ink); color: #fff; padding: 80px 0; }
.section.dark .kicker { color: #A9B0BC; }
.section.dark .section-title { color: #fff; }
.section.dark .section-intro { color: #B9C0CB; margin-bottom: 36px; }

/* Kompakte, moderne Karten auf dunklem Grund */
.section.dark .cards { gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .section.dark .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .section.dark .cards { grid-template-columns: 1fr; } }
.section.dark .card {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px;
  grid-template-rows: minmax(38px, auto) auto 1fr;
  border: none; border-radius: var(--radius-sm);
  padding: 20px 20px 18px; height: 100%;
}
.section.dark .card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.section.dark .card .ico { width: 38px; height: 38px; margin: 0; grid-column: 1; grid-row: 1; align-self: center; }
.section.dark .card .ico .icon { font-size: 36px; }
.section.dark .card h3 {
  grid-column: 2; grid-row: 1; align-self: center; margin: 0;
  font-size: .99rem; line-height: 1.22;
  overflow-wrap: break-word; hyphens: auto;
}
.section.dark .card p { grid-column: 1 / -1; grid-row: 2; font-size: .89rem; line-height: 1.55; margin-top: 12px; flex: none; }
.section.dark .card .card-link { grid-column: 1 / -1; grid-row: 3; align-self: end; margin-top: 12px; font-size: .87rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 14px;
}
.kicker::before {
  content: ""; width: 26px; height: 10px; border-radius: 4px;
  background: var(--yellow); border: 2px solid var(--ink);
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-bottom: 14px; }
.section-intro { color: var(--grey); max-width: 640px; margin-bottom: 44px; font-size: 1.06rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-haus { height: 46px; width: auto; transition: transform .25s ease; }
.brand:hover .brand-haus { transform: translateY(-2px); }
.brand-word { line-height: 1.05; }
.brand-word .bw-name { display: block; font-weight: 900; font-size: 1.34rem; letter-spacing: -.02em; color: var(--ink); }
.brand-word .bw-sub {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 3px; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { position: relative; color: var(--ink); font-weight: 800; font-size: .95rem; text-decoration: none; padding: 5px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 5px; border-radius: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { white-space: nowrap; }
.nav .btn-call { display: none; }

/* ---------- Buttons — Sticker-Look wie das Logo ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: 2px solid var(--ink); cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn .icon { font-size: 1.1em; }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-pop); }
.btn-primary:hover { background: var(--yellow-d); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--mist); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #23272D; color: #fff; }
/* Ghost-Buttons auf dunklen Flächen */
.contact .btn-ghost, .cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.contact .btn-ghost:hover, .cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.contact .btn-primary, .cta-band .btn-primary { border-color: var(--ink); box-shadow: 4px 4px 0 rgba(0,0,0,.45); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-top: 72px; padding-bottom: 84px;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 640px; }
.hero p.lead { font-size: clamp(1.02rem, 1.9vw, 1.18rem); color: var(--grey); margin: 20px 0 10px; max-width: 560px; }
.hero .badges { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 30px; margin: 22px 0 30px; }
@media (max-width: 480px) { .hero .badges { grid-template-columns: 1fr; } }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 800; color: var(--ink-2); }
.hero .badge .icon { font-size: 1.25em; color: var(--ink); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-art { position: relative; text-align: center; }
.hero-art img { width: min(100%, 460px); height: auto; }
.hero-art::before {
  content: ""; position: absolute; inset: auto 8% -6% 8%; height: 42%;
  background: radial-gradient(ellipse at center, var(--yellow-soft) 0%, rgba(255,248,214,0) 70%);
  z-index: -1;
}
.hero-art .ground {
  display: block; margin: 4px auto 0; width: 78%;
  border: 0; border-top: 3px dashed var(--cloud); border-radius: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: hausFloat 7s ease-in-out infinite; }
  @keyframes hausFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
}

/* ---------- Leistungs-Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 0 16px 34px rgba(35,42,52,.12); }
.card .ico {
  width: 64px; height: 64px; margin-bottom: 18px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.card .ico .icon { font-size: 58px; transition: transform .25s ease; }
.card:hover .ico .icon { transform: translateY(-3px) rotate(-3deg); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--grey); font-size: .97rem; flex: 1 1 auto; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--ink); font-weight: 800; font-size: .95rem; text-decoration: none; }
.card-link .icon { font-size: .95em; transition: transform .2s ease; }
.card:hover .card-link .icon { transform: translateX(5px); }
.card-link:hover { text-decoration: none; }

/* ---------- Über / Warum ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.feature-list { list-style: none; margin-top: 22px; }
.feature-list li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 2px dashed var(--line); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .chk { flex: 0 0 auto; color: var(--ink); }
.feature-list .chk .icon { font-size: 26px; }
.panel {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px;
}
.panel h3 { font-size: 1.3rem; margin-bottom: 16px; }
.panel-list { list-style: none; }
.panel-list li { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 1rem; }
.panel-list li:last-child { border-bottom: none; }
.panel-list .icon { font-size: 22px; color: var(--yellow); margin-top: 3px; }

/* ---------- Hintergrund-Video (Leistungen) ---------- */
.has-bgvideo { position: relative; overflow: hidden; }
.has-bgvideo .bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.has-bgvideo .bg-tint {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(53,58,64,.88);
}
.has-bgvideo .wrap { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .has-bgvideo .bg-video { display: none; } }

/* ---------- Referenzen — ruhig & editorial ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 22px; margin-top: 48px; }
.ref-card { margin: 0; background: transparent; }
.ref-card .ref-img {
  overflow: hidden; border-radius: 4px;
  box-shadow: 0 1px 3px rgba(35,42,52,.12);
  transition: box-shadow .25s ease;
}
.ref-card:hover .ref-img { box-shadow: 0 14px 32px rgba(35,42,52,.16); }
.ref-card img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.ref-card:hover img { transform: scale(1.035); }
.ref-card figcaption {
  display: flex; align-items: center; gap: 10px;
  margin-top: 13px; font-weight: 800; font-size: .82rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2);
}
.ref-card figcaption::before {
  content: ""; width: 20px; height: 4px; background: var(--yellow); flex: 0 0 auto;
}
@media (max-width: 560px) { .ref-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; } .ref-card img { aspect-ratio: 1 / 1; } .ref-card figcaption { font-size: .72rem; } }

/* ---------- Einsatzgebiet ---------- */
.area-box { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  background: var(--paper); border: 2px solid var(--cloud); border-radius: 999px;
  padding: 6px 15px; font-size: .9rem; color: var(--ink); font-weight: 800;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover { background: var(--yellow); border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: #fff; }
.contact .kicker { color: #A9B0BC; }
.contact .section-title { color: #fff; }
.contact .section-intro { color: #B9C0CB; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.contact-card { background: #3F454E; border: 1.5px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; }
.contact-card .label { display: flex; align-items: center; gap: 9px; color: #A9B0BC; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.contact-card .label .icon { font-size: 20px; color: var(--yellow); }
.contact-card a, .contact-card p { color: #fff; font-weight: 800; font-size: 1.12rem; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.contact-card .hours { margin-top: 14px; font-size: .9rem; font-weight: 400; color: #A9B0BC; line-height: 1.55; }
.contact-card .hours a { color: #C6CCD6; font-weight: 400; font-size: 1em; }
.contact-card--emergency { border: 2px solid var(--yellow); background: #3F454E; }
.contact-card--emergency .label { color: #fff; }
.contact-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Leistungs-Detailseiten ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 2px solid var(--ink); }
.page-hero .wrap { position: relative; z-index: 1; padding: 58px 24px 64px; }
.page-hero-icon {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: clamp(150px, 17vw, 250px); height: auto; line-height: 1;
  color: var(--ink); opacity: .1; pointer-events: none; z-index: 0;
}
.page-hero-icon .icon { width: 100%; height: 100%; font-size: clamp(150px, 17vw, 250px); }
@media (max-width: 820px) { .page-hero-icon { display: none; } }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 780px; }
.page-hero h1::before {
  content: ""; display: block; width: 46px; height: 12px; border-radius: 5px;
  background: var(--yellow); border: 2px solid var(--ink); margin-bottom: 18px;
}
.page-hero p { color: var(--grey); font-size: 1.12rem; margin-top: 14px; max-width: 700px; }
.breadcrumb { font-size: .85rem; color: var(--grey); margin-bottom: 16px; font-weight: 700; }
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.svc-content { max-width: 820px; }
.svc-content h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.svc-content > p:first-of-type { font-size: 1.05rem; }
.svc-content p { color: var(--ink-2); margin-bottom: 14px; }
.svc-check { list-style: none; margin: 6px 0 10px; }
.svc-check li { display: flex; gap: 12px; padding: 8px 0; color: var(--ink-2); align-items: flex-start; }
.svc-check .icon, .svc-check li > svg { font-size: 24px; margin-top: 2px; color: var(--ink); flex: 0 0 auto; }
.steps { counter-reset: step; list-style: none; margin: 10px 0; }
.steps li { position: relative; padding: 4px 0 18px 56px; color: var(--ink-2); }
.steps li strong { color: var(--ink); display: block; margin-bottom: 2px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink); color: var(--ink); font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.faq { margin-top: 10px; }
.faq details { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; margin-bottom: 12px; background: var(--paper); transition: border-color .2s ease; }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; font-weight: 800; padding: 15px 0; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex: 0 0 auto;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  border-radius: 1px; transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details p { color: var(--grey); padding: 0 0 16px; margin: 0; }
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band .wrap { padding: 60px 24px; }
.cta-band h2 { color: #fff; font-size: 1.65rem; margin-bottom: 10px; }
.cta-band h2::after {
  content: ""; display: block; width: 46px; height: 12px; border-radius: 5px;
  background: var(--yellow); margin: 16px auto 0;
}
.cta-band p { color: #B9C0CB; margin-bottom: 24px; }
.cta-band .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9B0BC; padding: 40px 0; font-size: .92rem; border-top: 6px solid var(--yellow); }
.contact + .site-footer { border-top-color: rgba(255,255,255,.12); border-top-width: 1px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 14px; }
.site-footer .foot-brand img { height: 44px; width: auto; }
.site-footer strong { color: #fff; }
.site-footer a { color: #C6CCD6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); }
.site-footer .legal-links { display: flex; gap: 22px; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 60px 0 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; max-width: 760px; }
.legal ul { margin: 0 0 10px 22px; }
.legal .back { display: inline-block; margin-bottom: 26px; font-weight: 800; }
.legal .muted { color: var(--grey); font-size: .92rem; }

/* ---------- PDF-Popup ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(53,58,64,.78); }
.modal-box {
  position: relative; background: var(--paper); border-radius: 8px;
  width: min(920px, 100%); height: min(88vh, 1100px);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal-actions { display: flex; align-items: center; gap: 10px; }
.btn-small { padding: 8px 14px; font-size: .88rem; }
.modal-close {
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--ink); border-radius: 6px;
}
.modal-close:hover { background: var(--mist); }
.modal-pdf { flex: 1 1 auto; width: 100%; border: none; background: var(--mist); }

/* ---------- Scroll-Reveal (dezent) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .reveal:nth-child(2) { transition-delay: .07s; }
  .reveal:nth-child(3) { transition-delay: .14s; }
  .reveal:nth-child(4) { transition-delay: .21s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 60px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(72%, 330px); }
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav .btn-call { display: inline-flex; padding: 9px 16px; font-size: .9rem; }
  .section { padding: 68px 0; }
  .brand-haus { height: 40px; }
  .brand-word .bw-name { font-size: 1.18rem; }
}
