/* ============================================================
   m+m Treuhand GmbH — modernised static rebuild
   Design system: refined Swiss business aesthetic
   Brand: orange #FF6C00 (logo accent), blue #1E73BE (links)
   Type:  Playfair Display (display) + Montserrat (text)
   ============================================================ */

:root {
  /* Brand palette */
  --orange: #ff6c00;          /* Marke - nur Dekoratives (Verlauf, Icons, Punkte) */
  --orange-dark: #e05f00;
  --orange-text: #bd5000;     /* Text auf hellem Grund - 4.87:1 */
  --orange-btn: #c25200;      /* Button-Flaeche, weisser Text - 4.67:1 */
  --orange-btn-hover: #a84700;/* Hover, noch dunkler - 5.89:1 */
  --blue: #1e73be;
  --blue-dark: #175a95;

  /* Neutrals */
  --ink: #1a1d21;
  --ink-soft: #3d4249;
  --muted: #6b7280;
  --line: #e7e9ec;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-warm: #faf7f3;

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(20, 24, 31, .06), 0 1px 2px rgba(20, 24, 31, .04);
  --shadow-md: 0 10px 30px rgba(20, 24, 31, .08);
  --shadow-lg: 0 24px 60px rgba(20, 24, 31, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--orange-text); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); display: inline-block; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--orange-btn); color: #fff; box-shadow: 0 8px 22px rgba(194, 82, 0, .28); }
.btn--primary:hover { background: var(--orange-btn-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(168, 71, 0, .34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--orange), #ffa64d); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 14px 24px; max-width: var(--maxw); margin-inline: auto; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-weight: 500; color: var(--ink); font-size: .98rem; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); transition: width .28s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; }
.nav-phone:hover { color: var(--orange-text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20, 24, 31, .82) 0%, rgba(20, 24, 31, .55) 45%, rgba(20, 24, 31, .2) 100%);
}
.hero__inner { padding: clamp(90px, 16vw, 190px) 0 clamp(70px, 12vw, 140px); position: relative; z-index: 1; }
.hero__content { max-width: 720px; }
.hero .eyebrow { color: #ffb56b; }
.hero .eyebrow::before { background: #ffb56b; }
.hero h1 { color: #fff; }
.hero__sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: #ffd9b3; margin-bottom: 1.4rem; }
.hero__text { color: rgba(255, 255, 255, .9); font-size: 1.1rem; max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page banner (subpages) */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255, 108, 0, .35), transparent 70%);
}
.page-hero__inner { padding: clamp(70px, 11vw, 130px) 0 clamp(50px, 8vw, 90px); position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .82); font-size: 1.12rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 1.4rem; letter-spacing: .04em; }
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Intro block ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.intro-grid .media { border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; }
.intro-grid .media img { aspect-ratio: 3/2; object-fit: cover; object-position: 50% 38%;
  width: 100%; height: auto; border-radius: var(--radius); }
.intro-badge {
  position: absolute; bottom: -22px; left: 22px; background: var(--orange-btn); color: #fff;
  border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-md); max-width: 240px;
}
.intro-badge strong { font-family: var(--font-display); font-size: 1.6rem; display: block; line-height: 1; }
.intro-badge span { font-size: .85rem; opacity: .92; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--orange), #ffa64d); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 58px; height: 58px; margin-bottom: 1.4rem; }
.card__icon img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { margin-bottom: .8rem; }
.card ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.card ul li { padding: .3rem 0 .3rem 1.4rem; position: relative; color: var(--ink-soft); font-size: .96rem; overflow-wrap: anywhere; hyphens: auto; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.card__link { font-weight: 600; color: var(--orange-text); display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; margin-top: auto; }
.card__link:hover { color: var(--orange-btn-hover); }
.card__link .arrow { transition: transform .25s var(--ease); }
.card__link:hover .arrow { transform: translateX(4px); }

/* ---------- Detailed service sections ---------- */
.service-block { display: grid; grid-template-columns: 90px 1fr; gap: 2rem; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.service-block:first-of-type { border-top: 0; }
.service-block .icon-wrap { width: 78px; height: 78px; border-radius: 18px; background: var(--bg-warm); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.service-block .icon-wrap img { width: 42px; height: 42px; }
.service-block ul { columns: 2; column-gap: 2.5rem; padding-left: 0; list-style: none; margin-top: 1.2rem; }
.service-block ul li { padding: .35rem 0 .35rem 1.5rem; position: relative; break-inside: avoid; }
.service-block ul li::before { content: "✓"; position: absolute; left: 0; color: var(--orange-text); font-weight: 700; }
.service-block .tag { display: inline-block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: .6rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, #2a2f37 100%); color: #fff; border-radius: 24px; padding: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,108,0,.4), transparent 70%); }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 44ch; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-card .photo { width: 84px; height: 84px; border-radius: 50%; margin: 1.6rem 0 0 1.6rem;
  background: linear-gradient(135deg, #e9edf1, #d7dde3); display: grid; place-items: center; color: var(--muted); }
.team-card .photo svg { width: 38px; height: 38px; opacity: .45; }
.team-card .info { padding: 1rem 1.6rem 1.6rem; }
.team-card h3 { margin-bottom: .2rem; }
.team-card .role { color: var(--orange-text); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.team-card .info ul { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .92rem; }
.team-card .info ul li { padding: .2rem 0 .2rem 1.2rem; position: relative; color: var(--ink-soft); }
.team-card .info ul li::before { content: "–"; position: absolute; left: 0; color: var(--orange-text); }

/* ---------- Notice ---------- */
.notice { background: var(--bg-warm); border-left: 4px solid var(--orange); border-radius: 10px; padding: 1.2rem 1.5rem; font-size: .95rem; color: var(--ink-soft); }
.notice strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info .info-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-item .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-warm); display: grid; place-items: center; color: var(--orange-text); }
.contact-info .info-item .ic svg { width: 20px; height: 20px; }
.contact-info .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact-info .value { font-weight: 500; color: var(--ink); }
.contact-info .value a { color: var(--ink); }
.contact-info .value a:hover { color: var(--orange-text); }

form.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field label .req { color: var(--orange-text); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--orange-text); box-shadow: 0 0 0 3px rgba(189, 80, 0, .30); }
.field textarea { resize: vertical; min-height: 130px; }
.checkbox { display: flex; align-items: flex-start; gap: .7rem; font-size: .88rem; color: var(--ink-soft); }
.checkbox input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: .15rem; accent-color: var(--orange-btn); }
.form-status { margin-top: 1rem; font-size: .9rem; font-weight: 600; }
.form-status.ok { color: #1a7f37; }
.form-status.error { color: #c0392b; }
/* Honeypot — hidden from users, visible to naive bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map-wrap { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7ccd3; padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin: 0 0 1.2rem; }
.footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.2rem; }
.footer-brand p { color: #9aa1ab; font-size: .95rem; max-width: 34ch; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .25rem; }
.footer-list a { color: #c7ccd3; font-size: .95rem; display: inline-block; padding: 4px 0; }
.footer-list a:hover { color: var(--orange-text); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #8a919b; }
.footer-bottom a { color: #8a919b; display: inline-block; padding: 4px 0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-badge { position: static; margin-top: 1.5rem; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .service-block { grid-template-columns: 1fr; gap: 1rem; }
  .service-block ul { columns: 1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 1.2rem 24px 1.6rem; gap: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: .4rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ---------- Accessibility ---------- */
/* Skip-Link: nur sichtbar bei Tastaturfokus */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 10px 10px; font-weight: 600; font-size: .95rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* Sichtbarer Fokus fuer alle Bedienelemente (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #bd5000; outline-offset: 2px; border-radius: 3px;
}
/* auf dunklem Grund heller, damit der Ring sichtbar bleibt */
.site-footer a:focus-visible, .hero a:focus-visible,
.page-hero a:focus-visible, .cta-band a:focus-visible {
  outline-color: #ffb56b;
}
