/* ============================================================
   CE Immo Group – vonhausausbesser.at
   Farben & Typografie auf Basis des bestehenden Brandings
   ============================================================ */

/* Inter lokal gehostet (DSGVO: kein Abruf von Google-Servern) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1b1c40;
  --navy-dark: #131331;
  --navy-soft: rgba(27, 28, 64, 0.06);
  --accent: #b99552;
  --accent-dark: #93753a;
  --bg: #fafaf9;
  --white: #ffffff;
  --text: #26262e;
  --muted: #63636e;
  --line: #e7e6e2;
  --radius: 8px;
  --shadow: 0 12px 32px rgba(19, 19, 49, 0.08);
  --shadow-sm: 0 2px 10px rgba(19, 19, 49, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { letter-spacing: -0.02em; }

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img, .logo img { height: 54px; width: auto; display: block; }
.footer-brand .logo-img { height: 52px; width: auto; margin-bottom: 16px; }

/* Typografische Wortmarke (Übergangslösung bis zum Rebranding) */
.logo-wordmark { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-text {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.15;
}
.logo-text small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.footer-brand .logo-wordmark { margin-bottom: 16px; }
.footer-brand .logo-mark { background: var(--white); color: var(--navy-dark); }
.footer-brand .logo-text { color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  font-weight: 500;
  font-size: 15.5px;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--accent); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px;
  border-bottom: none !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(118deg, var(--navy-dark) 0%, var(--navy) 58%, #2a2b63 100%);
  padding: 110px 0 120px;
  overflow: hidden;
}
/* Foto-Ebene (optional): <img class="hero-bg"> liegt unter dem Navy-Overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(19, 19, 49, 0.94) 0%, rgba(27, 28, 64, 0.88) 58%, rgba(42, 43, 99, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 20%, rgba(185, 149, 82, 0.14), transparent 65%);
  z-index: 1;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1; min-width: 0; }
.hero-logo { flex: none; height: 230px; width: auto; }
@media (max-width: 991px) { .hero-logo { display: none; } }

.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 620px;
  color: rgba(255, 255, 255, 0.93);
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 30px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary { background: var(--accent); color: var(--navy-dark); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }

.btn-outline { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }

/* ---------- Sections ---------- */

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--white); }
section.dark { background: var(--navy); color: var(--white); }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.dark .eyebrow { color: var(--accent); }

h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; color: var(--navy); }
.dark h2 { color: var(--white); }

.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.dark .section-head p { color: rgba(255, 255, 255, 0.75); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }

.card h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

.card ul { margin: 14px 0 0 0; padding: 0; list-style: none; }
.card ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15.5px;
}
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

/* ---------- Kategorie-Kacheln (Kaufen/Mieten/Gewerbe) ---------- */

.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: linear-gradient(180deg, rgba(25,25,61,0.15) 30%, rgba(25,25,61,0.85) 100%), var(--tile-img, var(--navy)) center / cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.cat-tile:hover { transform: translateY(-4px); }
.cat-tile .tile-body { padding: 26px; }
.cat-tile h3 { font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; }
.cat-tile p { color: rgba(255,255,255,0.85); font-size: 15px; margin-top: 6px; }

/* ---------- Ablauf / Steps ---------- */

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-num::before { content: counter(step); }
.step h3 { color: var(--navy); font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Team ---------- */

.team-card { text-align: center; }
.team-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 34px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .role { color: var(--accent-dark); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.team-card .contact { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
.stat .num { font-size: clamp(34px, 4vw, 48px); font-weight: 700; color: var(--accent); }
.stat .label { color: rgba(255,255,255,0.8); font-size: 15.5px; margin-top: 4px; }

/* ---------- CTA-Band ---------- */

.cta-band {
  /* Hintergrundfoto (Standard: Beratungsszene); überschreibbar via style="--cta-img:url('…')" */
  --cta-img: url('/images/deko/beratung.webp');
  background:
    linear-gradient(115deg, rgba(19, 19, 49, 0.93), rgba(27, 28, 64, 0.86)),
    var(--cta-img, linear-gradient(115deg, var(--navy-dark), var(--navy)));
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  color: var(--white);
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); }
.cta-band p { color: rgba(255,255,255,0.8); margin-top: 8px; }

/* ---------- Formulare ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-weight: 600; font-size: 14.5px; color: var(--navy); margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

/* ---------- Kontakt ---------- */

.contact-info { display: grid; gap: 18px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .row .ico { color: var(--navy); line-height: 1.4; }
.contact-info .row .ico svg { width: 22px; height: 22px; margin-top: 3px; }
.bw-tile .ico svg { width: 34px; height: 34px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4, .site-footer .footer-heading { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.87); display: block; margin-bottom: 9px; font-size: 15px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.footer-brand img { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 15px; }

/* ---------- Sonstiges ---------- */

.note {
  background: var(--navy-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--navy);
}

.breadcrumb-hero {
  /* Hintergrundfoto (Standard: Welser Dächer); pro Seite überschreibbar via style="--bh-img:url('…')" */
  --bh-img: url('/images/deko/wels-daecher.webp');
  background:
    linear-gradient(115deg, rgba(19, 19, 49, 0.93), rgba(27, 28, 64, 0.88)),
    var(--bh-img, linear-gradient(115deg, var(--navy-dark), var(--navy)));
  background-size: cover;
  background-position: center 35%;
  color: var(--white);
  padding: 72px 0 62px;
}
.breadcrumb-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.breadcrumb-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin-top: 12px; font-size: 17px; }

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--accent-dark);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Kundenstimmen ---------- */

.quote-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.quote-card::before {
  content: "\201E";
  position: absolute;
  top: -6px;
  right: 20px;
  font-size: 84px;
  line-height: 1;
  color: rgba(185, 149, 82, 0.22);
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ---------- Team-Vorstellung mit Foto ---------- */
.team-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.team-intro-foto img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.team-intro-foto figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .team-intro { grid-template-columns: 1fr; } }
.quote-card .stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
.quote-card blockquote { font-size: 16px; color: var(--text); font-style: italic; }
.quote-card .who { margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--navy); }

/* ---------- Ratgeber ---------- */

.article-card { display: flex; flex-direction: column; }
.article-card .meta { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card .more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--accent-dark); font-size: 15px; }

.prose { max-width: 800px; }
.prose h2 { margin: 40px 0 14px; font-size: 26px; }
.prose h3 { margin: 28px 0 10px; color: var(--navy); font-size: 20px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Objektkarten (Justimmo) ---------- */

.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.prop-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.prop-img {
  height: 210px;
  background-color: var(--navy-soft);
  background-size: cover;
  background-position: center;
}
.prop-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 40px;
  font-weight: 700;
  opacity: 0.35;
}

.prop-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.prop-badge {
  align-self: flex-start;
  background: var(--navy);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.prop-body h3 { color: var(--navy); font-size: 18px; line-height: 1.35; }
.prop-meta { color: var(--muted); font-size: 14.5px; }
.prop-price { color: var(--accent-dark); font-weight: 700; font-size: 20px; margin-top: 4px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.filter-bar button {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-bar button.active, .filter-bar button:hover { background: var(--navy); color: var(--white); }

/* ---------- Objekt-Detailseite ---------- */

.gallery-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--navy-soft);
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}
.gallery-thumbs img:hover { border-color: var(--accent); }

.facts-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.facts-table th, .facts-table td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts-table th { color: var(--muted); font-weight: 500; width: 45%; }
.facts-table td { color: var(--navy); font-weight: 600; }

/* ---------- Projekt-Einheiten ---------- */

.units-table td, .units-table th { white-space: nowrap; }
.unit-status {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 12px;
  border-radius: 999px;
}
.unit-frei { background: #e5f4e8; color: #1e7a34; }
.unit-reserviert { background: rgba(200, 162, 75, 0.16); color: var(--accent-dark); }
.unit-verkauft, .unit-vermietet { background: var(--line); color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 10px; border-radius: 12px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .prop-grid { grid-template-columns: 1fr; }
  .gallery-main { height: 260px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 80px 0 90px; }
  section { padding: 60px 0; }
  .cta-band { padding: 40px 28px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
}

/* Bewertungs-Kacheln im Stats-Band (Google/Facebook verlinkt) */
a.stat { text-decoration: none; color: inherit; display: block; }
a.stat:hover .label, a.stat:focus-visible .label { text-decoration: underline; }
.stat-star { color: var(--accent); }
.stat-von { font-size: 0.5em; font-weight: 600; opacity: 0.75; }
