/* ==========================================================================
   Treuhand Nordschweiz GmbH — Redesign
   ========================================================================== */

:root {
  --navy-900: #0a2438;
  --navy-800: #0f3350;
  --navy-700: #14456b;
  --blue-700: #17547f;   /* Primärfarbe, nah am bisherigen Markenblau #004f86 */
  --blue-600: #1f6693;
  --blue-500: #2d7dad;
  --blue-100: #e3edf4;
  --blue-050: #f4f8fb;
  --bronze:      #a9813f;   /* Akzent für CTAs, Icons, Trennlinien */
  --bronze-dark: #8c6a30;
  --cream:  #faf8f4;
  --white:  #ffffff;
  --text:      #1e2b36;
  --text-soft: #55677a;
  --line:      #dde4ea;
  --shadow: 0 2px 28px rgba(10, 36, 56, .08);
  --shadow-lg: 0 12px 40px rgba(10, 36, 56, .14);
  --radius: 14px;
  --header-h: 78px;
  --font-head: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

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

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-700); }
a:hover { color: var(--navy-900); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy-900);
  font-weight: 700;
}

p { color: var(--text); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(155deg, var(--blue-700), var(--navy-900));
  color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-text .b1 { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy-900); }
.brand-text .b2 { font-size: .78rem; color: var(--text-soft); letter-spacing: .03em; }

.main-nav ul { display: flex; gap: 2px; list-style: none; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 9px 13px; text-decoration: none;
  color: var(--navy-800); font-weight: 500; font-size: .96rem;
  border-radius: 999px; transition: background .18s, color .18s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--blue-100); color: var(--navy-900); }
.main-nav a.active { background: var(--blue-700); color: var(--white); }

/* Dropdown-Menüpunkt (z.B. "Unternehmen") */
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 13px; cursor: pointer;
  color: var(--navy-800); font-weight: 500; font-size: .96rem;
  border-radius: 999px; transition: background .18s, color .18s;
  white-space: nowrap; list-style: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover { background: var(--blue-100); color: var(--navy-900); }
.nav-dropdown.parent-active summary { background: var(--blue-700); color: var(--white); }
.nav-dropdown .chev { width: 13px; height: 13px; stroke-width: 2.3; transition: transform .18s; flex-shrink: 0; }
.nav-dropdown[open] .chev { transform: rotate(180deg); }

.nav-submenu {
  list-style: none; display: grid; gap: 2px;
}
.nav-submenu a {
  display: block; padding: 9px 13px; border-radius: 10px;
  color: var(--navy-800); text-decoration: none; font-weight: 500; font-size: .94rem;
  white-space: nowrap; transition: background .18s, color .18s;
}
.nav-submenu a:hover { background: var(--blue-100); color: var(--navy-900); }
.nav-submenu a.active { background: var(--blue-700); color: var(--white); }

@media (min-width: 961px) {
  .nav-dropdown .nav-submenu {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
    min-width: 240px; padding: 8px;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg);
  }
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
}
.nav-toggle:hover { background: var(--blue-100); }
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--navy-800); border-radius: 2px; transition: transform .25s, opacity .25s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .22s, opacity .22s, visibility .22s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  body.nav-open .main-nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; padding: 12px; }
  .main-nav a { padding: 13px 16px; border-radius: 10px; }
  .nav-dropdown summary { padding: 13px 16px; }
  .nav-dropdown .nav-submenu { padding: 2px 0 6px 14px; }
  .nav-submenu a { padding: 11px 16px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--blue-700) 62%, var(--blue-600) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(10,36,56,.93) 0%, rgba(23,84,127,.88) 55%, rgba(45,125,173,.76) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(25deg, rgba(255,255,255,.04) 0 1px, transparent 1px 84px);
  opacity: .8;
}
.hero-inner {
  position: relative; z-index: 2; padding: 84px 24px 88px;
  max-width: 780px; margin: 0 auto; text-align: center;
}
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 14px;
}
.hero .eyebrow { color: #e3c896; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); color: var(--white); margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 620px; margin: 0 auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--bronze); color: var(--navy-900); }
.btn-primary:hover { background: #bd934e; color: var(--navy-900); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-100); }

/* Page-Intro (Unterseiten statt grossem Hero) */
.page-intro {
  background: linear-gradient(155deg, var(--navy-900), var(--blue-700));
  color: var(--white); padding: 56px 24px 62px;
}
.page-intro .wrap { max-width: 820px; }
.page-intro .icon-badge {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255,255,255,.14); display: grid; place-items: center; margin-bottom: 18px;
}
.page-intro .icon-badge .icon { width: 26px; height: 26px; stroke: #e3c896; }
.page-intro h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.page-intro p { color: rgba(255,255,255,.86); font-size: 1.08rem; max-width: 640px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.68); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.82); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 76px 0; }
.section.alt { background: var(--blue-050); }
.section.tight { padding: 56px 0; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.section-lead { color: var(--text-soft); max-width: 680px; margin-bottom: 40px; font-size: 1.05rem; }
.eyebrow.on-light { color: var(--bronze-dark); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-100);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon-wrap .icon { stroke: var(--blue-700); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: .97rem; flex: 1; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .93rem; text-decoration: none; }
.card .more::after { content: " →"; }

/* Service-Liste mit Häkchen-Icon */
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .icon { width: 20px; height: 20px; stroke: var(--bronze-dark); flex-shrink: 0; margin-top: 3px; }

/* Split-Layout (Text + Icon-Illustration) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-figure {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(155deg, var(--navy-900), var(--blue-600));
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.split-figure .icon { width: 34%; height: 34%; stroke: rgba(255,255,255,.9); stroke-width: 1.1; }

/* Pillars / USP */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { text-align: center; }
.pillar .icon-wrap {
  width: 60px; height: 60px; border-radius: 50%; background: var(--blue-100);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.pillar .icon-wrap .icon { width: 28px; height: 28px; stroke: var(--blue-700); }
.pillar h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pillar p { color: var(--text-soft); font-size: .95rem; }

/* Team */
.member-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); display: flex; gap: 20px; align-items: flex-start;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(155deg, var(--blue-700), var(--navy-900));
  color: var(--white); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
}
.member-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.member-card .role { color: var(--text-soft); font-size: .93rem; margin-bottom: 14px; }
.member-card .contact-line { display: flex; align-items: center; gap: 8px; font-size: .93rem; margin-top: 6px; }
.member-card .contact-line .icon { width: 17px; height: 17px; stroke: var(--bronze-dark); }
.member-card .contact-line a { text-decoration: none; }
.member-card .contact-line a:hover { text-decoration: underline; }

/* CTA band */
.cta-band {
  background: linear-gradient(155deg, var(--navy-900), var(--blue-700));
  color: var(--white); text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 28px; }

/* Links & Formulare */
.link-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; text-decoration: none; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.link-card .icon-wrap { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-100); display: grid; place-items: center; flex-shrink: 0; }
.link-card .icon-wrap .icon { stroke: var(--blue-700); width: 20px; height: 20px; }
.link-card .label { font-weight: 600; color: var(--navy-900); font-size: 1rem; }
.link-card .url { font-size: .85rem; color: var(--text-soft); }
.link-card .icon.go { stroke: var(--text-soft); width: 18px; height: 18px; margin-left: auto; flex-shrink: 0; }
.note-box {
  background: var(--blue-050); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 20px 24px; color: var(--text-soft); font-size: .95rem; margin-top: 28px;
}

/* Article (Fliesstext-Seiten) */
.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding-top: 56px; }
.footer-inner {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-mark { background: rgba(255,255,255,.12); }
.footer-brand .b1 { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.site-footer address { font-style: normal; line-height: 1.7; font-size: .93rem; }
.site-footer h4 { color: var(--white); font-family: var(--font); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

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