/* ============================================================
   AT Consulting — Website (eigene Implementierung)
   Vorlage: holistic-storm-522403.framer.app (nur als Referenz)
   ============================================================ */

:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --ink: #1d1d1b;
  --ink-soft: #4e4943;
  --ink-muted: #6f675d;
  --orange: #f18c00;
  --orange-ink: #b96b00;
  --rule: rgba(29, 29, 27, 0.14);
  --rule-strong: rgba(29, 29, 27, 0.28);
  --rule-faint: rgba(29, 29, 27, 0.06);
  --on-dark: #f7f4ee;
  --on-dark-soft: rgba(247, 244, 238, 0.72);
  --on-dark-muted: rgba(247, 244, 238, 0.5);
  --on-dark-rule: rgba(247, 244, 238, 0.16);

  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --header-h: 68px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 300;
  font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section--dark h2,
.section--dark h3 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-soft); }

/* ---------- Mono label / eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem; /* 11px */
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.section--dark .eyebrow { color: var(--on-dark-muted); }
.eyebrow--orange { color: var(--orange); }
.eyebrow .num { color: var(--orange); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* ---------- Typography helpers ---------- */
.display {
  font-size: clamp(2.5rem, 6.2vw, 4rem); /* up to 64px */
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem); /* up to ~46px */
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
}
.section--dark .lede { color: var(--on-dark-soft); }
.body-text { color: var(--ink-soft); max-width: 62ch; }
.section--dark .body-text { color: var(--on-dark-soft); }
.statement {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
}
.section--dark .statement { color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.4rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(29, 29, 27, 0.04); }

/* on dark */
.section--dark .btn--primary { background: var(--paper); color: var(--ink); }
.section--dark .btn--primary:hover { background: #fff; }
.section--dark .btn--ghost { color: var(--on-dark); border-color: var(--on-dark-rule); }
.section--dark .btn--ghost:hover { border-color: var(--on-dark); background: rgba(247, 244, 238, 0.06); }

.text-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--orange-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.text-link:hover { border-color: var(--orange); }
.section--dark .text-link { color: var(--orange); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.05);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: 26px; width: 26px; }
.brand-text { line-height: 1; }
.brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav a.nav-link:hover { color: var(--ink); }
.nav .btn { padding: 0.6rem 1rem; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.spacer { height: var(--header-h); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-topline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.hero-topline .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.hero h1 { margin-bottom: 1.75rem; }
.hero .lede { margin-bottom: 1.25rem; max-width: 52ch; }
.hero .statement { margin-bottom: 2.25rem; }
.hero .cta-row { margin-bottom: 1.75rem; }
.hero-products {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}
.hero-products b { color: var(--ink); font-weight: 600; }

/* Transition system diagram */
.transition {
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: rgba(29, 29, 27, 0.015);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.transition-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.transition-steps { display: flex; flex-direction: column; gap: 0; }
.tstep {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-faint);
}
.tstep:last-child { border-bottom: none; }
.tstep .idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
  font-weight: 600;
}
.tstep .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.transition-notes {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.9rem;
}
.tnote .k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.tnote .v { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.15rem; }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.sec-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.sec-head .eyebrow { margin-bottom: 1.1rem; }
.sec-head h2 { margin-bottom: 1.5rem; }

.rich > * + * { margin-top: 1.25rem; }
.rich .statement { margin-top: 2rem; }

/* two-column prose for dark epoch section */
.prose-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.prose-2col .rich > * + * { margin-top: 1.15rem; }

/* ============================================================
   SYSTEME (products)
   ============================================================ */
.product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
.product:nth-child(even) .product-media { order: 2; }
.product-body .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 0.9rem;
}
.product-body h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
/* Screenshot-Platzhalter — layoutfest fuer spaeteren echten Screenshot */
.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background:
    repeating-linear-gradient(-45deg, rgba(29,29,27,0.03) 0 10px, rgba(29,29,27,0) 10px 20px),
    var(--paper-2);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  overflow: hidden;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .shot-tag {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(247, 244, 238, 0.85);
  border: 1px solid var(--rule);
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
}
.shot::after {
  content: "";
  position: absolute;
  top: 1rem; right: 1rem;
  width: 26px; height: 26px;
  border-radius: 3px;
  background: var(--orange);
  -webkit-mask: url("../img/mark.svg") center / contain no-repeat;
          mask: url("../img/mark.svg") center / contain no-repeat;
  opacity: 0.5;
}

.systeme-outro { border-top: 1px solid var(--rule); margin-top: 0.5rem; padding-top: 2.5rem; }

/* ============================================================
   MÖGLICHKEITEN (numbered grid)
   ============================================================ */
.num-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.num-item { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); }
.num-item .n {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 1rem;
  display: block;
}
.num-item h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.num-item p { font-size: 0.95rem; color: var(--ink-soft); }
.moeglichkeiten-outro { margin-top: 2.5rem; }

/* ============================================================
   SOFTWARE-POTENZIAL (two lists)
   ============================================================ */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 1rem;
}
.check-col h3 {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 1px;
}
.check-list.results li::before { background: transparent; border: 1.5px solid var(--orange); }
.check-outro { margin-top: 2.5rem; }

/* ============================================================
   ÜBER AT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background:
    repeating-linear-gradient(-45deg, rgba(29,29,27,0.03) 0 10px, rgba(29,29,27,0) 10px 20px),
    var(--paper-2);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.portrait .shot-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(247, 244, 238, 0.85);
  border: 1px solid var(--rule);
  padding: 0.35rem 0.6rem;
  border-radius: 2px;
}

/* ============================================================
   KONTAKT / FINAL CTA
   ============================================================ */
.kontakt .h2 { max-width: 22ch; margin-bottom: 1.5rem; }
.kontakt .body-text { color: var(--on-dark-soft); margin-bottom: 2rem; }
.contact-meta {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--on-dark-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.contact-meta .cm-k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 0.4rem;
}
.contact-meta a, .contact-meta .cm-v { color: var(--on-dark); font-size: 0.95rem; }
.contact-meta a:hover { color: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  border-top: 1px solid var(--on-dark-rule);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img { height: 24px; width: 24px; }
.footer-brand .fb-name { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--on-dark); }
.footer-products { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--on-dark-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--on-dark-soft); }
.footer-nav a:hover { color: var(--orange); }
.footer-legal { font-size: 0.75rem; color: var(--on-dark-muted); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.legal .rich { color: var(--ink-soft); }
.legal .rich > * + * { margin-top: 1.4rem; }
.legal .rich h2 { font-size: 1.05rem; color: var(--ink); font-family: var(--font-mono); font-weight: 600; letter-spacing: 0; margin-top: 2rem; }
.legal .rich strong { color: var(--ink); font-weight: 600; }
.legal .note { font-size: 0.85rem; color: var(--ink-muted); border-left: 2px solid var(--orange); padding-left: 1rem; }
.legal .back { margin-top: 3rem; display: inline-block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .transition { margin-top: 1rem; }
  .prose-2col { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 1.75rem; }
  .product:nth-child(even) .product-media { order: 0; }
  .product-media { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 0.5rem var(--pad) 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s;
  }
  .nav a.nav-link {
    padding: 0.9rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--rule-faint);
  }
  .nav .btn { margin-top: 1rem; justify-content: center; padding: 0.9rem 1.4rem; }
  .nav-toggle { display: flex; }

  .num-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .contact-meta { gap: 1.5rem 2.5rem; }
  .hero-topline { margin-bottom: 2rem; }
}

@media (max-width: 420px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .brand-name { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
