/* ==========================================================================
   securetechlead.com — ERP Integration & Authorization, LLC
   Statisches Stylesheet, kein Build-Prozess erforderlich.
   ========================================================================== */

:root {
  /* Dunkle Ebene */
  --abyss:    #071726;
  --deep:     #0B2235;
  --steel:    #16405F;
  --azure:    #2E9BD6;
  --azure-br: #57BDF2;
  --ice:      #C6DEF0;
  --mist:     #8AA5BB;
  --grid:     rgba(120, 180, 225, .085);
  --hair-d:   rgba(140, 190, 230, .2);

  /* Helle Ebene */
  --paper:    #F1F5F8;
  --paper-2:  #E4EBF1;
  --ink:      #0A1A26;
  --slate:    #4E6274;
  --hair-l:   #C7D4DF;

  /* Signal */
  --conflict:      #D9453A;
  --conflict-soft: rgba(217, 69, 58, .22);
  --grant-soft:    rgba(46, 155, 214, .28);

  /* Typografie */
  --display: "Saira", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 76rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.08;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }

p { margin: 0 0 1rem; }
a { color: var(--steel); }

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

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--azure); color: #04121e; padding: .75rem 1rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* --- Baender ------------------------------------------------------------- */

.band { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.band--light { background: var(--paper); }
.band--tint  { background: var(--paper-2); border-block: 1px solid var(--hair-l); }

.band--dark {
  background: var(--abyss);
  color: var(--ice);
  position: relative;
  overflow: hidden;
}
.band--dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.band--dark > * { position: relative; z-index: 1; }
.band--dark h1, .band--dark h2, .band--dark h3 { color: #fff; }

/* --- Eyebrow ------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .8rem;
}
.eyebrow::before {
  content: ""; width: .4rem; height: .4rem; flex: none;
  background: var(--azure); transform: rotate(45deg);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--hair-l); }
.band--dark .eyebrow { color: var(--azure); }
.band--dark .eyebrow::after { background: var(--hair-d); }

/* --- Kopfzeile ----------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 23, 38, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair-d);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand { font-family: var(--mono); font-size: .8rem; color: #fff; text-decoration: none; line-height: 1.35; }
.brand b { display: block; font-weight: 600; letter-spacing: .02em; }
.brand span { color: var(--mist); font-size: .68rem; letter-spacing: .04em; }

.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mist); text-decoration: none;
  padding: .3rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: #fff; border-bottom-color: var(--azure); }
@media (max-width: 52rem) { .nav { display: none; } }

/* --- Hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }

.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--azure-br); }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--mist); max-width: 48ch; }
.band--light .lede, .band--tint .lede { color: var(--slate); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .85rem 1.5rem; border-radius: 2px; text-decoration: none;
  border: 1px solid var(--azure); cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn--primary { background: var(--azure); color: #04121e; }
.btn--primary:hover { background: var(--azure-br); box-shadow: 0 0 0 4px rgba(46,155,214,.2); }
.btn--ghost { background: transparent; color: var(--azure-br); }
.btn--ghost:hover { background: rgba(46,155,214,.14); }
.band--light .btn--ghost, .band--tint .btn--ghost { color: var(--steel); border-color: var(--steel); }
.band--light .btn--ghost:hover, .band--tint .btn--ghost:hover { background: var(--steel); color: #fff; }

.hero__meta {
  font-family: var(--mono); font-size: .72rem; color: var(--mist);
  letter-spacing: .06em; border-top: 1px solid var(--hair-d);
  padding-top: 1.1rem; margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; gap: .4rem 2rem;
}

/* --- Portrait ------------------------------------------------------------ */

.portrait { position: relative; padding: .85rem; }
.portrait::before, .portrait::after {
  content: ""; position: absolute; width: 1.4rem; height: 1.4rem; pointer-events: none;
}
.portrait::before { top: 0; left: 0; border-top: 1px solid var(--azure); border-left: 1px solid var(--azure); }
.portrait::after { bottom: 0; right: 0; border-bottom: 1px solid var(--azure); border-right: 1px solid var(--azure); }

.portrait__frame { position: relative; overflow: hidden; background: var(--deep); }
.portrait__frame img { display: block; width: 100%; height: auto; }
.portrait__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,23,38,0) 55%, rgba(7,23,38,.72) 100%),
              linear-gradient(150deg, rgba(46,155,214,.15), rgba(7,23,38,0) 55%);
  pointer-events: none;
}
.portrait__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: .9rem 1rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ice);
  display: flex; justify-content: space-between; gap: 1rem;
}
.portrait__cap b { font-weight: 600; color: #fff; }

/* --- Signatur: SoD-Matrix ------------------------------------------------ */

.sig { border-top: 1px solid var(--hair-d); padding-top: clamp(2.5rem, 5vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.sig__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 60rem) { .sig__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.sig p { color: var(--mist); font-size: .98rem; max-width: 42ch; }

.matrix-card { border: 1px solid var(--hair-d); background: rgba(11, 34, 53, .75); padding: clamp(1.1rem, 2.4vw, 1.7rem); }
.matrix-card__head {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--azure); margin-bottom: 1.2rem;
}

.matrix { width: 100%; border-collapse: collapse; font-family: var(--mono); }
.matrix caption { position: absolute; left: -9999px; }
.matrix th, .matrix td { border: 1px solid var(--hair-d); padding: 0; text-align: center; font-weight: 400; }

.matrix thead th {
  border: none; vertical-align: bottom; padding-bottom: .55rem; height: 5.6rem;
  font-size: .6rem; letter-spacing: .05em; color: var(--mist); font-weight: 400;
}
.matrix thead th span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); margin-inline: auto; white-space: nowrap; }
.matrix thead td { border: none; }

.matrix tbody th {
  border-left: none; text-align: left; padding: .55rem .8rem .55rem 0;
  font-size: .66rem; color: var(--ice); white-space: nowrap; letter-spacing: .03em;
}

.cell { width: 2.5rem; height: 2.5rem; position: relative; }
.cell i { position: absolute; inset: 20%; font-style: normal; opacity: 0; transform: scale(.35); border-radius: 1px; }
.cell--grant i { background: var(--grant-soft); border: 1px solid var(--azure); }
.cell--conflict i { background: var(--conflict-soft); border: 1px solid var(--conflict); }
.cell--conflict::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--conflict), 0 0 14px rgba(217,69,58,.3); opacity: 0; }

.matrix.is-live .cell i { animation: cell-in .4s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: calc(var(--i) * 55ms); }
.matrix.is-live .cell--conflict::after { animation: ring-in .55s ease forwards; animation-delay: calc(var(--i) * 55ms + 280ms); }
@keyframes cell-in { to { opacity: 1; transform: scale(1); } }
@keyframes ring-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cell i { opacity: 1; transform: none; }
  .cell--conflict::after { opacity: 1; }
}

.legend {
  display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1.2rem;
  padding-top: 1rem; border-top: 1px solid var(--hair-d);
  font-family: var(--mono); font-size: .64rem; color: var(--mist); letter-spacing: .06em;
}
.legend span { display: inline-flex; align-items: center; gap: .5rem; }
.legend b { width: .75rem; height: .75rem; display: inline-block; }
.legend .k-grant { background: var(--grant-soft); border: 1px solid var(--azure); }
.legend .k-conflict { background: var(--conflict-soft); border: 1px solid var(--conflict); }

@media (max-width: 30rem) {
  .cell { width: 2.05rem; height: 2.05rem; }
  .matrix tbody th { font-size: .58rem; }
}

/* --- Karten -------------------------------------------------------------- */

.grid { display: grid; gap: 1px; background: var(--hair-l); border: 1px solid var(--hair-l); margin-top: 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--paper); padding: clamp(1.4rem, 3vw, 2rem); }
.band--tint .card { background: var(--paper-2); }
.card__num { font-family: var(--mono); font-size: .64rem; color: var(--azure); letter-spacing: .16em; display: block; margin-bottom: 1rem; }
.card p { font-size: .94rem; color: var(--slate); margin-bottom: 0; }
.card ul { margin: .9rem 0 0; padding: 0; list-style: none; font-size: .87rem; color: var(--slate); }
.card ul li { padding-left: 1.05rem; position: relative; margin-bottom: .3rem; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: .4rem; height: 1px; background: var(--azure); }

/* --- Projekte ------------------------------------------------------------ */

.projects { margin-top: 2.6rem; border-top: 1px solid var(--hair-l); }
.project { display: grid; gap: .4rem 2rem; padding-block: 1.8rem; border-bottom: 1px solid var(--hair-l); grid-template-columns: 1fr; }
@media (min-width: 52rem) { .project { grid-template-columns: 8.5rem minmax(0, 1fr) 12rem; align-items: start; } }
.project__when { font-family: var(--mono); font-size: .7rem; color: var(--azure); letter-spacing: .1em; text-transform: uppercase; padding-top: .3rem; }
.project__what h3 { margin-bottom: .35rem; }
.project__what p { font-size: .94rem; color: var(--slate); margin: 0; }
.project__tags { display: flex; flex-wrap: wrap; gap: .35rem; align-content: start; padding-top: .3rem; }
.tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; color: var(--slate); border: 1px solid var(--hair-l); padding: .22rem .5rem; white-space: nowrap; }
.tag--own { border-color: var(--azure); color: var(--steel); }

/* --- Werkzeuge (dunkel) -------------------------------------------------- */

.stack { display: grid; gap: 2.2rem; margin-top: 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .stack { grid-template-columns: repeat(3, 1fr); } }
.stack h3 {
  font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--azure);
  padding-bottom: .65rem; border-bottom: 1px solid var(--hair-d); margin-bottom: 1rem;
}
.stack ul { list-style: none; margin: 0; padding: 0; }
.stack li { font-family: var(--mono); font-size: .78rem; padding: .34rem 0; color: var(--ice); }
.stack li small { font-family: var(--body); color: var(--mist); font-size: .74rem; margin-left: .45rem; }

/* --- Profil -------------------------------------------------------------- */

.profile { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 58rem) { .profile { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-l); }
.facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--hair-l); font-size: .92rem; }
.facts b { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azure); font-weight: 400; padding-top: .3rem; }
@media (max-width: 34rem) { .facts li { grid-template-columns: 1fr; gap: .15rem; } }

/* --- Kontakt ------------------------------------------------------------- */

.contact { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 58rem) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--hair-l); border-radius: 2px; padding: .72rem .9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(46,155,214,.18); }

.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .82rem; color: var(--slate); margin-bottom: 1.3rem; }
.consent input { margin-top: .28rem; flex: none; }
.consent label { font-family: var(--body); font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; margin: 0; display: inline; }

.hp { position: absolute; left: -9999px; }

.form-status { font-size: .9rem; margin-top: 1rem; }
.form-status[data-state="ok"]  { color: var(--steel); }
.form-status[data-state="err"] { color: var(--conflict); }

.direct { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.direct li { padding: .6rem 0; border-bottom: 1px solid var(--hair-l); font-size: .92rem; }
.direct span { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azure); display: block; }

/* --- Fusszeile ----------------------------------------------------------- */

.site-foot { background: var(--abyss); color: var(--mist); border-top: 1px solid var(--hair-d); padding-block: 2.6rem; font-size: .82rem; }
.site-foot__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-foot a { color: var(--mist); text-decoration: none; border-bottom: 1px solid var(--hair-d); }
.site-foot a:hover { color: #fff; border-bottom-color: var(--azure); }
.site-foot nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }

/* --- Rechtstexte --------------------------------------------------------- */

.legal { max-width: 48rem; padding-block: clamp(3rem, 7vw, 5rem); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1rem; margin-top: 1.8rem; }
.legal p, .legal li { font-size: .94rem; color: var(--slate); }
.legal address { font-style: normal; font-family: var(--mono); font-size: .86rem; color: var(--ink); line-height: 1.95; }
.legal .todo { background: rgba(217,69,58,.09); border-left: 3px solid var(--conflict); padding: .95rem 1.15rem; font-size: .87rem; color: var(--ink); margin: 1.3rem 0; }
.legal .todo b { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: .35rem; color: var(--conflict); }
