/* ============================================================
   ITV – Immo Tirol Versicherungsmakler
   Palette: Cream #F7F2E8 · Salbei #DEE6DB · Tanne #12332C · Gold #E8B23F
   Typo:    Bricolage Grotesque (Display) · Hanken Grotesk (Text)
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #f7f2e8;
  --card: #dee6db;
  --card-soft: #e9efe6;
  --ink: #12332c;
  --ink-soft: #4a5f58;
  --accent: #e9b53f;
  --ink-deep: #0c241f;
  --line: #e8dfcd;
  --line-card: #c3d1c0;
  --white: #ffffff;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --shell: 1160px;
  --radius-card: 30px;
  --band: clamp(0.75rem, 1.8vw, 1.5rem);
  --header-h: 86px;
}

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

html { scroll-behavior: smooth; }

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

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

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Typography ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

mark {
  background: var(--accent);
  color: var(--ink);
  padding: 0.04em 0.18em;
  border-radius: 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  margin-bottom: 1.25rem;
  background: color-mix(in srgb, var(--white) 40%, transparent);
}

.section-dark .eyebrow {
  color: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 40%, transparent);
  background: color-mix(in srgb, var(--cream) 8%, transparent);
}

/* ---------- Bänder / Karten-Sections ---------- */

.band {
  margin-inline: var(--band);
  border-radius: var(--radius-card);
}

.band-card { background: var(--card); }
.band-ink { background: var(--ink); color: var(--cream); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* schwebt transparent über der Hero-Card (nur Startseite) */
.site-header--float {
  margin-bottom: calc(-1 * var(--header-h));
  top: clamp(16px, 2.2vw, 30px);
  transition: top 0.35s ease;
}
.site-header--float.is-scrolled { top: 8px; }

/* Unterseiten: normaler Header auf Cream */
.site-header:not(.site-header--float) { background: var(--cream); }

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transition:
    width 0.35s ease,
    min-height 0.35s ease,
    margin 0.35s ease,
    padding 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled .header-shell {
  width: min(960px, calc(100% - 2 * var(--band)));
  min-height: 62px;
  padding-inline: 1.5rem 0.55rem;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
  box-shadow: 0 18px 44px -26px rgba(12, 36, 31, 0.5);
}

/* Legacy-Layout für Unterseiten */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 78px;
}

.brand img {
  width: auto;
  height: 32px;
  transition: height 0.35s ease;
}

.site-header.is-scrolled .brand img { height: 26px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding-block: 0.4rem;
  transition: opacity 0.2s ease;
}

.nav-list a:hover { opacity: 0.65; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.btn-icon svg { width: 18px; height: 18px; }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-deep); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 0.8rem 1.6rem;
}
.btn-ghost:hover { background: color-mix(in srgb, var(--white) 45%, transparent); }

.nav-list a.nav-cta { color: var(--white); }
.nav-cta.btn { font-size: 0.92rem; padding: 0.35rem 0.45rem 0.35rem 1.15rem; }
.nav-cta .btn-icon { width: 32px; height: 32px; }
.nav-cta .btn-icon svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px 4px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: var(--band);
}

.hero-contours {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-contours svg { width: 100%; height: 100%; }
.hero-contours path {
  stroke: var(--ink);
  stroke-width: 1.1;
  opacity: 0.08;
}

.hero-inner {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(1.25rem, 4vw, 3rem)) clamp(4rem, 8vw, 6.5rem);
  max-width: 900px;
}

.hero-lead {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.9rem;
  font-weight: 600;
  font-size: 1.02rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.check-list li::before {
  content: "";
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312332C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.rating-badge strong { color: var(--ink); }

.rating-badge .review-stars {
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  line-height: 1;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-lead {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.section-dark .section-lead { color: #a9bfa9; }

/* ---------- Schwerpunkte ---------- */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.focus-card {
  background: var(--white);
  border-radius: 22px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -30px rgba(22, 36, 61, 0.4);
}

.focus-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: var(--ink);
}
.focus-icon svg { width: 32px; height: 32px; }

.focus-card p { color: var(--ink-soft); }
.focus-card strong { color: var(--ink); }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: auto;
  padding-top: 0.5rem;
}

.chip-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

/* ---------- Ablauf / Steps ---------- */

.process-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.process-intro {
  position: sticky;
  top: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 0;
}

.process-intro .btn-ghost-light { margin-top: 1.9rem; }

.btn-ghost-light {
  color: var(--cream);
  border: 1.5px solid color-mix(in srgb, var(--cream) 65%, transparent);
}
.btn-ghost-light:hover {
  background: color-mix(in srgb, var(--cream) 10%, transparent);
  border-color: var(--cream);
}

.steps {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  --node: 48px;
}

/* Timeline-Schiene + goldener Fortschritt */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 1px);
  width: 2px;
  border-radius: 2px;
}
.steps::before {
  top: var(--rail-top, calc(var(--node) / 2));
  height: var(--rail-len, calc(100% - var(--node)));
  background: rgba(247, 240, 225, 0.16);
}
.steps::after {
  top: var(--rail-top, calc(var(--node) / 2));
  height: min(var(--fill, 0px), var(--rail-len, 100%));
  background: var(--accent);
  transition: height 0.3s ease;
}

.step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  gap: 1.6rem;
  align-items: start;
  padding-block: 1.7rem;
}

.step-node {
  width: var(--node);
  height: var(--node);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid rgba(247, 240, 225, 0.3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--cream);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.step-ongoing .step-node { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 65%, transparent); }

.step.is-active .step-node {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
}

.step-body {
  max-width: 27rem;
  border-radius: 14px;
  padding: 0.35rem 1rem 0.45rem;
  margin: -0.35rem -1rem -0.45rem -0.5rem;
  transition: background 0.3s ease;
}

.step.is-active .step-body { background: rgba(247, 240, 225, 0.07); }

.step h3 {
  color: var(--white);
  font-size: 1.08rem;
  transition: color 0.3s ease;
}
.step p { font-size: 0.95rem; line-height: 1.55; color: #a9bfa9; margin-top: 0.2rem; }

.step:not(.is-active) h3 { color: color-mix(in srgb, var(--white) 82%, transparent); }

/* Phasen-Label vor den laufenden Leistungen */
.steps-phase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.3rem 0.9rem;
}

.steps-phase-node {
  justify-self: center;
  width: 12px;
  height: 12px;
  rotate: 45deg;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 0 5px var(--ink);
}

.steps-phase-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Referenzen ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.review-card {
  background: var(--white);
  border-radius: 22px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.review-stars {
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

.review-card blockquote {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.review-card footer {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.review-card footer strong { font-size: 0.98rem; }
.review-card footer span { font-size: 0.88rem; color: var(--ink-soft); }

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 45%), 1fr));
  gap: 1rem;
  list-style: none;
}

.logo-wall li {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  aspect-ratio: 5 / 3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-wall li:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -26px rgba(22, 36, 61, 0.45);
}

.logo-wall img {
  position: absolute;
  inset: 1.3rem;
  width: calc(100% - 2.6rem);
  height: calc(100% - 2.6rem);
  object-fit: contain;
  filter: grayscale(1) contrast(0.95);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-wall li:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Kontakt ---------- */

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-card {
  background: var(--white);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-block: 1rem;
  text-decoration: none;
  color: inherit;
}
.contact-line + .contact-line { border-top: 1px solid var(--card); }

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-value em { font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; }

a.contact-line:hover .contact-value { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-deep);
  color: #94a99a;
  margin: var(--band);
  border-radius: var(--radius-card);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.footer-logo { width: auto; height: 36px; opacity: 0.95; }

.footer-note { max-width: 36rem; font-size: 0.95rem; }

.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-nav a:hover { text-decoration: underline; }

.footer-copy {
  font-size: 0.85rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247, 240, 225, 0.12);
  width: 100%;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .process-layout { grid-template-columns: 1fr; }
  .process-intro {
    position: static;
    margin-bottom: clamp(2rem, 5vw, 3rem);
  }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--line-card);
    border-radius: 18px;
    box-shadow: 0 24px 40px -28px rgba(18, 51, 44, 0.4);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.is-open .nav-list { display: flex; }
  .site-nav.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .site-nav.is-open .nav-toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  .nav-list li { border-top: 1px solid var(--line-card); }
  .nav-list li:has(.nav-cta) { border-top: none; padding-top: 0.9rem; }
  .nav-list a { display: block; padding-block: 0.9rem; }
  .nav-list a.nav-cta { display: inline-flex; justify-content: center; width: 100%; }

  .brand img { height: 26px; }
}

@media (max-width: 560px) {
  .steps { --node: 40px; }
  .step, .steps-phase { gap: 1rem; }
  .step-node { font-size: 0.85rem; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-actions .btn-ghost { justify-content: center; }
}
