/* ============================================================
   CB Steuerberatung – crypto-tax.tirol
   Statischer Nachbau (ohne WordPress)
   ============================================================ */

/* ---------- Fonts (lokal, DSGVO-konform) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/inter-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-latin-800-normal.woff2') format('woff2'); }

/* ---------- Reset / Basis ---------- */
:root {
  --navy: #1a2a41;
  --text: #555555;
  --muted: #77797c;
  --light: #f4f4f4;
  --line: #d9d9d9;
  --red: #e02b20;
  --content: 1140px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .25s; }
p + p { margin-top: 1em; }
.container { max-width: var(--content); margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

section[id] { scroll-margin-top: 90px; }

/* ---------- Topbar ---------- */
.topbar { position: relative; background: #fff; font-size: 15px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: stretch; }
.topbar-left { display: flex; align-items: center; gap: 8px; padding: 12px 0 12px 120px; color: var(--text); }
.topbar-left a { display: inline-flex; align-items: center; color: var(--navy); }
.topbar-left svg { width: 17px; height: 17px; fill: var(--navy); }
.topbar-right {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 42px;
  flex: 0 0 50.5%;
  padding: 12px 120px 12px 30px;
}
.topbar-right a { color: #fff; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.topbar-right svg { width: 15px; height: 15px; fill: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,.05);
}
.header-inner {
  max-width: 100%;
  padding: 26px 120px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { width: 301px; max-width: 70vw; }
.main-nav ul { list-style: none; display: flex; gap: 44px; }
.main-nav a {
  font-size: 15px; text-transform: uppercase; color: var(--muted);
  letter-spacing: .3px; display: inline-flex; align-items: center; gap: 6px;
}
.main-nav a:hover, .main-nav li.current a { color: var(--navy); }
.main-nav .caret { width: 10px; height: 10px; fill: currentColor; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; fill: var(--navy); }

/* ---------- Dekorative Elemente (Dreiecke / Diagonalen) ---------- */
.deco { position: absolute; pointer-events: none; z-index: 1; }
.deco-hero { right: 0; bottom: -68px; }
.deco-kollegen { left: 0; top: -68px; }
.deco-footer { right: 0; top: -68px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #fff url('../img/Pattern-Background.png') 50% 50% / cover no-repeat;
  padding: 150px 0 260px;
  min-height: 640px;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 175px;
  background: linear-gradient(to bottom right, rgba(255,255,255,0) 49.8%, #fff 50.2%);
  pointer-events: none;
}
.hero .container { max-width: var(--content); }
.hero h1 {
  font-weight: 300; font-size: 62px; line-height: 1.05; color: var(--navy);
  margin-left: 76px;
}
.hero h1 strong { display: block; font-weight: 800; font-size: 66px; letter-spacing: .5px; }
.hero .sub {
  margin: 34px 0 0 314px; max-width: 500px; font-size: 17px; color: var(--text);
}
.hero .cta-row { margin-top: 46px; display: flex; justify-content: flex-end; padding-right: 92px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: .5px;
  text-transform: uppercase; color: var(--navy);
}
.arrow-link svg { width: 18px; height: 18px; fill: var(--navy); transition: transform .25s; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Sektions-Überschrift ---------- */
.section-title {
  display: flex; align-items: center; gap: 26px;
  font-size: 52px; font-weight: 700; line-height: 1; color: var(--navy);
  text-transform: uppercase; letter-spacing: 1px;
}
.section-title img { width: 51px; height: 58px; }
.section-title.center { justify-content: center; }

/* ---------- Leistungen ---------- */
.leistungen { position: relative; padding: 120px 0 90px; background: #fff; }
.halbwissen {
  margin-top: 56px;
  display: flex; align-items: center; gap: 16px;
  font-size: 19px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--navy);
}
.halbwissen svg { width: 26px; height: 26px; fill: var(--red); flex: 0 0 auto; }

/* Carousel */
.quote-carousel { position: relative; text-align: center; padding: 40px 90px 0; }
.quote-carousel .quote-icon { width: 56px; margin: 0 auto 18px; opacity: .5; }
.qc-track { position: relative; min-height: 84px; }
.qc-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none;
  font-size: 21px; color: var(--navy); line-height: 1.5;
  display: flex; align-items: flex-start; justify-content: center;
}
.qc-slide.active { opacity: 1; position: relative; pointer-events: auto; }
.qc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: #b5b8bd; padding: 10px;
}
.qc-arrow:hover { color: var(--navy); }
.qc-arrow svg { width: 26px; height: 26px; fill: currentColor; }
.qc-arrow.prev { left: 20px; }
.qc-arrow.next { right: 20px; }
.qc-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.qc-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #e1e1e1; cursor: pointer; padding: 0; }
.qc-dot.active { background: var(--navy); }

.leistungen .intro { margin-top: 56px; max-width: 900px; }

.check-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 60px;
}
.check-item { display: flex; gap: 18px; }
.check-item svg { width: 25px; height: 25px; flex: 0 0 auto; fill: none; stroke: var(--navy); stroke-width: 30; margin-top: 3px; }
.leistungen .outro { margin-top: 52px; max-width: 900px; }

/* ---------- Kollegendienst ---------- */
.kollegendienst {
  position: relative;
  background: #fff url('../img/Triangles-Pattern-Background2.png') 0 100% / cover no-repeat;
  padding: 230px 0 150px;
}
.kollegendienst::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 175px;
  background: linear-gradient(to bottom right, #fff 49.8%, rgba(255,255,255,0) 50.2%);
  pointer-events: none;
}
.kollegendienst .text { max-width: 780px; margin-top: 48px; }
.kollegendienst .text p + p { margin-top: 1.8em; }
.kollegendienst .cta-row { margin-top: 40px; display: flex; justify-content: center; max-width: 780px; }

/* ---------- Über Mich ---------- */
.ubermich { position: relative; padding: 140px 0 120px; background: #fff; }
.um-grid { display: grid; grid-template-columns: 1fr 400px; gap: 80px; align-items: start; }
.tabs-nav { display: flex; gap: 34px; margin: 42px 0 30px; flex-wrap: wrap; }
.tabs-nav button {
  background: none; border: 0; cursor: pointer; padding: 0 0 4px;
  font-family: inherit; font-size: 16px; letter-spacing: .5px;
  text-transform: uppercase; color: #a3a5a8; font-weight: 500;
}
.tabs-nav button.active { color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel .name { font-weight: 700; color: var(--navy); }
.tab-panel ul { list-style: none; }
.tab-panel ul li + li { margin-top: .9em; }
.tab-panel ul strong { color: var(--navy); font-weight: 600; }

.portrait { position: relative; }
.portrait img { width: 100%; }
.portrait-caption {
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 28px 20px;
}
.portrait-caption .pname { font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.portrait-caption a {
  width: 40px; height: 40px; border-radius: 50%; background: #a9adb4;
  display: inline-flex; align-items: center; justify-content: center;
}
.portrait-caption a:hover { background: #fff; }
.portrait-caption svg { width: 18px; height: 18px; fill: var(--navy); }

/* ---------- Kontakt ---------- */
.kontakt { position: relative; padding: 60px 0 120px; background: #fff; }
.kontakt-info {
  margin: 60px auto 70px; display: flex; justify-content: center; gap: 120px; flex-wrap: wrap;
}
.ki-item { display: flex; align-items: center; gap: 24px; font-size: 16px; color: var(--text); }
.ki-item .ico {
  width: 72px; height: 72px; border-radius: 50%; background: var(--light);
  display: inline-flex; align-items: center; justify-content: center;
}
.ki-item svg { width: 24px; height: 24px; fill: var(--navy); }
.ki-item a { color: var(--text); }
.ki-item a:hover { color: var(--navy); }

/* Formular */
.contact-form { max-width: 940px; margin: 0 auto; }
.form-row { display: grid; gap: 20px; margin-bottom: 22px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field label { display: block; margin-bottom: 8px; font-size: 16px; color: var(--text); }
.field label .req { color: #9d9d9d; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 16px; color: var(--navy);
  padding: 16px 14px; border-radius: 0; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { min-height: 170px; resize: vertical; }
.pflicht { font-size: 14px; color: #8a8a8a; margin: 4px 0 18px; }
.dsgvo { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--text); }
.dsgvo input { width: 16px; height: 16px; margin-top: 5px; accent-color: var(--navy); }
.dsgvo a { text-decoration: underline; }
.form-submit { text-align: center; margin-top: 40px; }
.btn-primary {
  display: inline-block; background: var(--navy); color: #fff; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; padding: 22px 28px; border-radius: 0;
  transition: opacity .25s;
}
.btn-primary:hover { opacity: .9; }
.form-msg { max-width: 940px; margin: 0 auto 30px; padding: 16px 20px; font-size: 16px; display: none; }
.form-msg.ok { display: block; background: #eef7ee; color: #2e6b30; border: 1px solid #bfe0c0; }
.form-msg.err { display: block; background: #fdeeee; color: #a33; border: 1px solid #eec7c7; }
.dsgvo + .dsgvo { margin-top: 14px; }
/* Honeypot unsichtbar */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Datenschutz-Popup ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20, 27, 38, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.popup-overlay[hidden] { display: none; }
.popup-box {
  position: relative; background: #fff; border-radius: 6px;
  max-width: 1180px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 44px 48px; box-shadow: 0 25px 70px rgba(0,0,0,.35);
}
.popup-box h2 { font-size: 28px; color: #1a1a1a; font-weight: 700; margin-bottom: 10px; }
.popup-box h3 { font-size: 22px; color: #333; font-weight: 400; margin: 18px 0 14px; }
.popup-box p { font-size: 15px; color: var(--text); line-height: 1.7; margin-top: 12px; }
.popup-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: #444; padding: 6px;
}
.popup-close:hover { color: #000; }
@media (max-width: 680px) {
  .popup-box { padding: 28px 20px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; color: #fff; margin-top: 120px;
  background: var(--navy) url('../img/Triangles-Pattern.png') 0 50% no-repeat;
}
.site-footer::before {
  /* weiße Diagonale oben */
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 177px;
  background: linear-gradient(to bottom right, #fff 49.7%, transparent 50.2%);
  pointer-events: none;
}
.footer-inner {
  position: relative; z-index: 2;
  max-width: var(--content); margin: 0 auto; padding: 260px 20px 90px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px;
}
.footer-brand img { width: 290px; }
.footer-brand p { margin-top: 26px; max-width: 300px; color: #d8dce2; }
.footer-brand .copy { margin-top: 46px; font-size: 14px; color: #cfd4da; }
.footer-brand .copy a { color: #fff; text-decoration: underline; }
.site-footer h4 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li + li { margin-top: 10px; }
.site-footer a { color: #d8dce2; }
.site-footer a:hover { color: #fff; }
.footer-col .block + .block { margin-top: 54px; }

/* ---------- Impressum / Datenschutz Seite ---------- */
.legal-page { padding: 90px 0 140px; }
.legal-page .logo-top { width: 301px; margin-bottom: 40px; }
.legal-page h1 { font-size: 34px; color: var(--navy); font-weight: 700; margin-bottom: 30px; }
.legal-page p + p { margin-top: 1.2em; }
.legal-page strong { color: var(--navy); }
.legal-page table td { padding-right: 30px; vertical-align: top; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .header-inner { padding: 22px 30px; }
  .topbar-left { padding-left: 30px; }
  .topbar-right { padding-right: 30px; }
}
@media (max-width: 992px) {
  .hero h1 { font-size: 48px; margin-left: 0; }
  .hero h1 strong { font-size: 50px; }
  .hero .sub { margin-left: 0; }
  .hero .cta-row { justify-content: flex-start; padding-right: 0; }
  .section-title { font-size: 40px; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .um-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 400px; }
  .footer-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 220px; }
  .kontakt-info { gap: 50px; }
}
@media (max-width: 768px) {
  .topbar-left { display: none; }
  .topbar-right { flex: 1 1 100%; justify-content: center; padding: 12px 16px; gap: 24px; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #eef0f3; padding: 14px 20px 18px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 12px; }
  .nav-toggle { display: block; }
  .hero { padding: 90px 0 160px; }
  .hero h1 { font-size: 34px; }
  .hero h1 strong { font-size: 36px; }
  .section-title { font-size: 30px; gap: 16px; }
  .section-title img { width: 36px; height: 41px; }
  .quote-carousel { padding: 30px 40px 0; }
  .qc-slide { font-size: 18px; }
  .qc-arrow.prev { left: -6px; }
  .qc-arrow.next { right: -6px; }
  .check-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row.two, .form-row.three { grid-template-columns: 1fr; }
  .leistungen, .ubermich { padding: 80px 0 60px; }
  .kollegendienst { padding: 140px 0 100px; }
  .footer-inner { padding: 180px 20px 70px; }
}
