/* =========================================================
   Thomas Gabler — Vertriebs- & Projektberatung
   Farbschema: Anthrazit & Sand
   Statische Website (FTP), modern, dezent, ohne Tracker
   ========================================================= */

:root {
  /* Farben */
  --dark: #26272B;
  --dark-800: #1f2024;
  --dark-700: #33343a;
  --accent: #B08D57;
  --accent-600: #987444;
  --accent-050: #f3ecdf;
  --bg: #FAF8F4;
  --surface: #ffffff;
  --muted: #6E6E6E;
  --muted-light: #8b8b86;
  --line: #eae5db;
  --line-strong: #ddd6c8;

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-btn: 10px;
  --shadow-sm: 0 1px 2px rgba(38, 39, 43, .05);
  --shadow: 0 1px 2px rgba(38, 39, 43, .04), 0 10px 34px rgba(38, 39, 43, .07);

  /* Typografie */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --h1: clamp(2.35rem, 1.5rem + 3.1vw, 3.7rem);
  --h2: clamp(1.7rem, 1.25rem + 1.5vw, 2.35rem);
  --h3: 1.2rem;
  --lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--dark); }
h1 { font-size: var(--h1); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

/* ---------- Hilfsklassen ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--surface { background: var(--surface); }
.lead { font-size: var(--lead); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-600); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.center .eyebrow::before { display: none; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--dark); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--accent-600); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.6rem; border-radius: var(--radius-btn);
  font-weight: 500; font-size: .98rem; line-height: 1; cursor: pointer;
  border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--dark-700); }
.btn-secondary { background: transparent; color: var(--dark); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--dark); background: #fff; }
.btn-ghost { padding-inline: 0; color: var(--accent-600); font-weight: 500; }
.btn-ghost:hover { color: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: .35rem; font-weight: 600; letter-spacing: -.01em; font-size: 1.12rem; color: var(--dark); }
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }

.site-nav ul { display: flex; align-items: center; gap: .35rem; }
.site-nav a {
  display: inline-block; padding: .55rem .9rem; border-radius: 8px;
  font-size: .96rem; color: var(--dark-700); position: relative; transition: color .2s ease, background .2s ease;
}
.site-nav a:hover { color: var(--dark); }
.site-nav a.active { color: var(--dark); }
.site-nav a.active::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .28rem; height: 2px; background: var(--accent);
}
.site-nav a.nav-cta {
  margin-left: .35rem; background: var(--dark); color: #fff; padding: .55rem 1.15rem;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--dark-700); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: transparent; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (typografisch / abstrakt) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.4rem; }
.hero-abstract {
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%);
  width: min(46vw, 560px); color: var(--accent); opacity: .5; z-index: 1; pointer-events: none;
}
.hero-abstract svg { width: 100%; height: auto; }
.hero--home { padding-top: clamp(4rem, 10vw, 8rem); }

/* ---------- Value / Feature-Grid ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.7rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .num {
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--accent-600);
  display: inline-block; margin-bottom: .9rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-050);
  color: var(--accent-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Zwei-Spalten (Text + Medium) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--about { grid-template-columns: .85fr 1.15fr; }
.portrait {
  border-radius: var(--radius); overflow: hidden; background: var(--accent-050);
  border: 1px solid var(--line); aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Leistungen (große Blöcke) ---------- */
.service {
  display: grid; grid-template-columns: .55fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service .service-head .eyebrow { margin-bottom: .6rem; }
.check { display: grid; gap: .7rem; margin-top: .5rem; }
.check li { position: relative; padding-left: 1.9rem; color: var(--muted); }
.check li::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Ablauf / Prozess ---------- */
.steps { counter-reset: step; display: grid; gap: 1.4rem; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--line-strong); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -.1rem; left: 0; font-size: .8rem; font-weight: 600; color: var(--accent-600);
  background: var(--bg); padding-right: .6rem; transform: translateY(-50%);
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Zeitstrahl (Werdegang) ---------- */
.timeline { position: relative; margin-top: 2.6rem; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding-left: 2.6rem; padding-bottom: 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 1px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent);
}
.tl-item.edu::before { background: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .15rem; }
.tl-period { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--accent-600); }
.tl-tag { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; padding: .16rem .55rem; border-radius: 5px; }
.tl-tag.pos { background: var(--accent-050); color: var(--accent-600); }
.tl-tag.edu { background: #ece9e1; color: #6b6b60; }
.tl-item h3 { font-size: 1.12rem; margin: .1rem 0 .1rem; }
.tl-role { font-size: .95rem; color: var(--dark-700); font-weight: 500; margin: 0 0 .5rem; }
.tl-item p.tl-desc { font-size: .93rem; color: var(--muted); margin: 0 0 .4rem; }
.tl-item ul.tl-list { display: grid; gap: .35rem; margin: .3rem 0 0; }
.tl-item ul.tl-list li { position: relative; padding-left: 1.1rem; font-size: .92rem; color: var(--muted); }
.tl-item ul.tl-list li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--dark); color: #fff; border-radius: 20px; padding: clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .72); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-primary { background: var(--accent); color: var(--dark); }
.cta-band .btn-primary:hover { background: #c6a06a; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-band .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ci-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-050);
  color: var(--accent-600); display: inline-flex; align-items: center; justify-content: center;
}
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item .ci-label { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-light); margin: 0; }
.contact-item .ci-value { font-size: 1.05rem; color: var(--dark); margin: .1rem 0 0; }
.contact-item a.ci-value:hover { color: var(--accent-600); }

form.kontaktform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--dark); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .75rem .9rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-050); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.form-hint { font-size: .8rem; color: var(--muted-light); margin-top: 1rem; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 78ch; }
.legal h2 { margin-top: 2.4rem; font-size: 1.4rem; }
.legal h3 { margin-top: 1.6rem; }
.legal p, .legal li { color: var(--dark-700); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal ul li { margin-bottom: .35rem; }
.legal .dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin: 1rem 0; }
.legal .dl dt { color: var(--muted); }
.legal .dl dd { margin: 0; }
.legal .placeholder { background: var(--accent-050); border-radius: 5px; padding: 0 .3rem; color: var(--accent-600); font-weight: 500; }
.callout {
  background: #fff; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 1rem 1.2rem; margin: 1.5rem 0; font-size: .92rem; color: var(--muted);
}

/* ---------- FAQ (natives details/summary) ---------- */
.faq { max-width: 820px; margin-top: 2.2rem; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.2rem 2.6rem 1.2rem 0; font-size: 1.08rem; font-weight: 500; color: var(--dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 1rem; font-size: 1.5rem; line-height: 1;
  color: var(--accent-600); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 3px; border-radius: 4px; }
.faq details p { margin: 0 0 1.35rem; color: var(--muted); max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { color: #fff; font-weight: 600; font-size: 1.15rem; margin: 0 0 .3rem; }
.footer-tag { margin: 0; font-size: .95rem; }
.footer-col-title { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1rem; opacity: .8; }
.footer-nav, .footer-legal { display: grid; gap: .6rem; }
.footer-nav a, .footer-legal a { color: rgba(255, 255, 255, .72); width: max-content; transition: color .2s ease; }
.footer-nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-linkedin { display: inline-flex; align-items: center; gap: .5rem; }
.footer-linkedin svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal (nur mit JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .site-nav a { padding: .8rem .4rem; font-size: 1.05rem; }
  .site-nav a.active::after { left: .4rem; right: auto; width: 22px; bottom: .55rem; }
  .site-nav a.nav-cta { margin-left: 0; margin-top: .5rem; justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split, .split--about, .contact-grid { grid-template-columns: 1fr; }
  .split--about .portrait { max-width: 360px; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-abstract { opacity: .25; right: -18%; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
}

/* ---------- Consent-Banner / Cookie-Einstellungen ---------- */
.tg-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: none; padding: 1rem var(--gutter); background: var(--dark); color: rgba(255,255,255,.86); box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.tg-consent.is-open { display: block; }
.tg-consent-inner { max-width: var(--maxw); margin-inline: auto; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tg-consent-text { flex: 1 1 380px; font-size: .92rem; line-height: 1.55; }
.tg-consent-text p { margin: 0; }
.tg-consent-title { color: #fff; font-weight: 500; margin: 0 0 .25rem; }
.tg-consent a { color: var(--accent); text-decoration: underline; }
.tg-consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.tg-consent .btn { padding: .6rem 1.1rem; font-size: .92rem; }
.tg-consent .btn-secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.tg-consent .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.tg-consent .btn-primary { background: var(--accent); color: var(--dark); }
.tg-consent .btn-primary:hover { background: #c6a06a; }

.tg-consent-modal { position: fixed; inset: 0; z-index: 1001; display: none; align-items: center; justify-content: center; padding: 1.2rem; background: rgba(20,20,22,.55); }
.tg-consent-modal.is-open { display: flex; }
.tg-consent-panel { background: var(--surface); color: var(--dark); border-radius: 16px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 1.6rem 1.7rem; }
.tg-consent-panel .tg-consent-title { color: var(--dark); font-size: 1.2rem; }
.tg-consent-sub { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; }
.tg-cat { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.tg-cat input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--accent-600); flex: 0 0 auto; }
.tg-cat-title { display: block; font-weight: 500; font-size: .98rem; }
.tg-cat-desc { display: block; color: var(--muted); font-size: .88rem; }
.tg-consent-panel .tg-consent-actions { margin-top: 1.3rem; justify-content: flex-end; }

/* Bookings-Embed */
.booking-wrap { max-width: 860px; margin: 2rem auto 0; }
#tg-booking { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tg-booking-gate { padding: 2.4rem 1.8rem; text-align: center; }
.tg-booking-gate p { color: var(--muted); max-width: 52ch; margin: 0 auto .4rem; }
.tg-booking-gate p strong { color: var(--dark); font-size: 1.05rem; }
.tg-booking-gate .btn { margin-top: 1rem; }

@media (max-width: 640px) {
  .tg-consent-actions { width: 100%; }
  .tg-consent .btn { flex: 1 1 auto; justify-content: center; }
}
