/* =========================================================
   Trinh Consulting – Van Khiem Trinh
   Reines CSS, keine externen Ressourcen, kein JavaScript.
   Farbwelt abgeleitet aus dem Trinely-Logo (Navy + Türkis).
   ========================================================= */

:root {
  /* Marke */
  --navy-900: #061530;
  --navy-800: #0b2149;
  --navy-700: #14315f;
  --teal-400: #35d2be;
  --teal-500: #1cbfa9;
  --teal-700: #0b8474;

  /* Text & Flächen */
  --ink: #0f2340;
  --body: #46586f;
  --muted: #6d7f96;
  --line: #e2e9f1;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;

  /* Maße */
  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(11, 33, 73, .05), 0 6px 20px rgba(11, 33, 73, .06);
  --shadow-md: 0 18px 50px rgba(11, 33, 73, .14);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 1.05rem + .38vw, 1.3rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout-Bausteine ---------- */

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

.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__head p { color: var(--muted); font-size: 1.075em; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .975rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--teal-400); color: var(--navy-900); }
.btn--primary:hover { background: #4ce0cd; color: var(--navy-900); }

.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: var(--teal-400); color: var(--teal-400); background: rgba(53, 210, 190, .08); }

.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--teal-500); color: var(--teal-700); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; }

.brand__name {
  display: block;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.15;
}

.brand__role {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.75rem);
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--teal-700); border-bottom-color: var(--teal-400); }

.site-header .btn { padding: .6rem 1.25rem; font-size: .9rem; }

@media (max-width: 860px) {
  .site-header__inner { min-height: 66px; padding-block: .6rem; gap: .75rem; }
  .site-header .btn--header { display: none; }
  .nav { width: 100%; }
  .nav ul { flex-wrap: wrap; gap: .45rem 1.1rem; }
  .nav a { white-space: nowrap; font-size: .9rem; }

  /* Kopfzeile bricht hier auf zwei Zeilen um – Ankersprünge brauchen mehr Abstand. */
  html { scroll-padding-top: 150px; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: #c9d6e6;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -300px;
  right: -160px;
  background: radial-gradient(circle, rgba(53, 210, 190, .22), transparent 65%);
}

.hero::after {
  width: 520px;
  height: 520px;
  bottom: -320px;
  left: -180px;
  background: radial-gradient(circle, rgba(20, 49, 95, .85), transparent 68%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: .5rem; }

.hero__lead {
  font-size: clamp(1.125rem, 1rem + .6vw, 1.4rem);
  color: var(--teal-400);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero__text { max-width: 34rem; color: #b6c6da; }

.hero .eyebrow { color: var(--teal-400); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

/* Portrait */

.portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
}

.portrait__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, .14);
}

.portrait__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 62%;
  height: 62%;
  border: 2px solid var(--teal-400);
  border-radius: var(--radius-lg);
  opacity: .55;
}

/* Kennzahlen */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.stats dt {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.stats dd {
  margin: .35rem 0 0;
  font-size: .9rem;
  color: #93a7c0;
}

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

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(53, 210, 190, .55);
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(53, 210, 190, .14);
  margin-bottom: 1.1rem;
}

.card__icon svg { width: 22px; height: 22px; stroke: var(--teal-700); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; margin-bottom: 0; }

/* ---------- Tag-Listen ---------- */

.stack { display: grid; gap: 1.75rem; }

.stack__group h3 {
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: .9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
}

.tags li {
  font-size: .875rem;
  line-height: 1.35;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.section--soft .tags li { background: #fff; }

/* ---------- Kundenliste ---------- */

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
}

.clients li {
  padding: .7rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Über mich ---------- */

.about {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.facts { display: grid; gap: 1.25rem; }

.facts__item {
  border-left: 3px solid var(--teal-400);
  padding-left: 1.15rem;
}

.facts__item h3 {
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}

.facts__item p { color: var(--ink); font-weight: 500; margin-bottom: 0; }
.facts__item p span { display: block; color: var(--body); font-weight: 400; font-size: .9375rem; }

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

.contact {
  background: var(--navy-800);
  color: #b6c6da;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--teal-400); }

.contact__cta { margin-top: 1.75rem; }

.contact__list { list-style: none; display: grid; gap: 1.15rem; }

.contact__list dt,
.contact__label {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8ba0bb;
  margin-bottom: .15rem;
}

.contact__list a,
.contact__value {
  color: #fff;
  font-size: 1.075rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.contact__list a:hover { color: var(--teal-400); }

/* ---------- Fußzeile ---------- */

.site-footer {
  background: var(--navy-900);
  color: #8ba0bb;
  padding-block: 3rem 2.5rem;
  font-size: .9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer a { color: #cddaea; text-decoration: none; }
.site-footer a:hover { color: var(--teal-400); }

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.site-footer .brand__name { color: #fff; }
.site-footer .brand__role { color: #7c92ae; }

/* ---------- Rechtsseiten ---------- */

.page-hero {
  background: var(--navy-800);
  color: #b6c6da;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero p { margin-bottom: 0; }
.page-hero .eyebrow { color: var(--teal-400); }

.legal { max-width: 48rem; }
.legal h2 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.6rem); margin-top: 2.75rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: 1.75rem; font-size: 1.0625rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1.1rem; }
.legal li { margin-bottom: .4rem; }

.legal address {
  font-style: normal;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-400);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.legal__note {
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.25rem;
}

/* ---------- Responsiv ---------- */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .portrait { order: -1; width: min(52%, 230px); justify-self: start; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .eyebrow { font-size: .72rem; letter-spacing: .09em; }
  .eyebrow::before { width: 1.1rem; }
  .portrait { width: min(56%, 195px); }
  .portrait::after { inset: auto -12px -12px auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { gap: 1.25rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* ---------- Druck ---------- */

@media print {
  .site-header, .hero__actions, .site-footer nav { display: none; }
  body { color: #000; font-size: 11pt; }
  .hero, .contact, .page-hero { background: #fff !important; color: #000 !important; }
  .hero h1, .contact h2, .page-hero h1, .contact__list a { color: #000 !important; }
  .card, .clients li { box-shadow: none; break-inside: avoid; }
}
