/* ==========================================================================
   temporis B GmbH – statische Website
   Farbwelt aus dem Logo (Navy / Cyan / Teal)
   ========================================================================== */

:root {
  --navy:      #16345c;
  --navy-dark: #0f2742;
  --blue:      #1f6fb2;
  --cyan:      #29abe2;
  --teal:      #00a99d;
  --ink:       #22303f;
  --muted:     #5b6b7b;
  --line:      #e2e8f0;
  --bg:        #ffffff;
  --bg-soft:   #f4f7fb;
  --bg-navy:   #16345c;
  --white:     #ffffff;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(22, 52, 92, .10);
  --shadow-sm: 0 4px 14px rgba(22, 52, 92, .08);
  --wrap:      1160px;
  --ff: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: #175a92; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-navy); color: #dbe6f2; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 40px;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #175a92; color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
/* Nav-CTA-Button behält Button-Farben (nicht von .nav__menu a überschreiben) */
.nav__cta .btn--primary { color: #fff; }
.nav__cta .btn--primary:hover { color: #fff; background: #175a92; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nav__logo img { height: 46px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  display: block; padding: 10px 14px; color: var(--navy); font-weight: 600; font-size: .96rem;
  border-radius: 8px;
}
.nav__menu a:hover, .nav__menu a.active { color: var(--blue); background: var(--bg-soft); }
.nav__cta { margin-left: 8px; }

/* dropdown */
.has-sub { position: relative; }
.has-sub > .sub {
  position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; list-style: none; margin: 6px 0 0; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .18s ease;
}
.has-sub:hover > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.sub .sub__child { padding-left: 34px; color: var(--muted); font-size: .92rem; position: relative; }
.sub .sub__child::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 9px; height: 1px;
  background: var(--muted); opacity: .55; transform: translateY(-.5px);
}

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,39,66,.92) 0%, rgba(22,52,92,.80) 45%, rgba(31,111,178,.55) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 96px 0 104px; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.2rem; color: #e6eef7; margin-bottom: 28px; }
.hero--sm .hero__inner { padding: 70px 0 74px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { position: relative; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .4em; }
.card__body p { color: var(--muted); }
.card__body .btn, .card__body .textlink { margin-top: auto; }
.textlink { font-weight: 600; color: var(--blue); }
.textlink::after { content: " →"; }

/* feature list */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { position: relative; padding-left: 34px; color: var(--ink); }
.features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
.section--navy .features li { color: #dbe6f2; }

/* two-column media block */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.media--rev .media__text { order: 2; }
.media__img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* pillar blocks (Schwerpunkte) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue);
  border-radius: 12px; padding: 24px;
}
.pillar h3 { font-size: 1.1rem; color: var(--navy); }
.pillar ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .96rem; }
.pillar ul li { margin-bottom: 4px; }

/* icon boxes */
.iconbox { text-align: center; padding: 12px; }
.iconbox .ic {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: grid; place-items: center; color: #fff;
}
.iconbox .ic svg { width: 32px; height: 32px; }

/* comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare__col { border-radius: var(--radius); padding: 30px; }
.compare__col--bad { background: #fff; border: 1px solid var(--line); }
.compare__col--good { background: var(--navy); color: #dbe6f2; }
.compare__col--good h3 { color: #fff; }
.tag { display:inline-block; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; padding:4px 12px; border-radius:20px; margin-bottom:14px; }
.tag--bad { background:#fdecec; color:#c0392b; }
.tag--good { background: var(--blue); color:#fff; }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff; border-radius: 20px; padding: 54px; text-align: center; box-shadow: var(--shadow);
}
.cta h2 { color: #fff; }
.cta p { color: #dbe6f2; max-width: 620px; margin: 0 auto 26px; }

/* references */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 56px; }
.logos img { max-height: 62px; width: auto; filter: grayscale(1); opacity: .7; transition: all .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-row .ic { color: var(--blue); flex: 0 0 auto; margin-top: 3px; }
.info-row strong { display: block; color: var(--navy); }
.form label { display: block; font-weight: 600; color: var(--navy); margin: 0 0 6px; font-size: .95rem; }
.form input, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; margin-bottom: 18px; background: var(--bg-soft);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--cyan); background: #fff; }

/* video */
.video-frame {
  max-width: 880px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #000; line-height: 0;
}
.video-frame video { width: 100%; height: auto; display: block; aspect-ratio: 16/9; }

/* prose (legal pages) */
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.2em; font-size: 1.12rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #aebfd2; padding: 60px 0 26px; }
.site-footer a { color: #cdd9e8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer__logo { height: 44px; margin-bottom: 18px; background:#fff; padding:8px 12px; border-radius:10px; display:inline-block; }
.footer__logo img { height: 100%; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.9rem; }
.social { display:flex; gap:12px; }
.social a { width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.1); display:grid; place-items:center; }
.social a:hover { background: var(--blue); }
.social svg { width:18px; height:18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .pillars { grid-template-columns: repeat(2, 1fr); }
  .media, .compare, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .media--rev .media__text { order: 0; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow); display: none;
  }
  .nav__menu.open { display: flex; }
  .has-sub > .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; margin: 0; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .grid-3, .pillars, .grid-2 { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; }
  .section { padding: 56px 0; }
}

/* ---------- Hero-Kicker (hochgestufte Markenzeile) ---------- */
.hero .hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 16px; font-size: .95rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #7fd4f5;
}
.hero__kicker-mark {
  width: 34px; height: 3px; border-radius: 3px; flex: 0 0 auto;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

/* ---------- Vorgehen / End-to-End-Prozess ---------- */
.process {
  list-style: none; margin: 46px 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center;
}
.process::before {
  content: ""; position: absolute; top: 25px; left: 12.5%; right: 12.5%;
  height: 3px; border-radius: 3px; z-index: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.process__step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.process__node {
  width: 50px; height: 50px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 6px var(--bg-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.process__node svg { width: 22px; height: 22px; }
.process__step h3 { font-size: 1.06rem; color: var(--navy); margin: 0 0 .35em; }
.process__step p { font-size: .95rem; color: var(--muted); margin: 0; max-width: 22ch; }

@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .process::before { display: none; }
  .process__step { flex-direction: row; align-items: flex-start; gap: 20px; padding-bottom: 30px; }
  .process__step:last-child { padding-bottom: 0; }
  .process__node { margin-bottom: 0; flex: 0 0 auto; }
  .process__step p { max-width: none; }
  .process__step:not(:last-child)::after {
    content: ""; position: absolute; left: 24px; top: 50px; width: 3px;
    height: calc(100% - 50px); border-radius: 3px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
  }
}

/* ---------- Barrierefreiheit ---------- */
/* Skip-Link: unsichtbar bis fokussiert */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; outline: 2px solid var(--cyan); outline-offset: 2px; }

/* "Leistungen"-Dropdown auch per Tastatur bedienbar */
.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }

/* Card-Titel als <h2>, aber h3-Größe beibehalten */
.card-h2 { font-size: 1.3rem; }

/* Video-Fallback-Text lesbar auf dunklem Rahmen */
.video-frame { color: #fff; }

/* Bewegungsreduktion respektieren: Bewegung raus, Zustands-Feedback (Farbe) bleibt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .has-sub > .sub { transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
  .card:hover, .btn--primary:hover, .btn--outline:hover, .btn--ghost:hover { transform: none; }
}

/* ---------- KI-Beratung: Kategorie-Kopf + 2-spaltige Liste ---------- */
.cat__head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.cat-icon {
  width: 56px; height: 56px; border-radius: 16px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: grid; place-items: center; color: #fff;
}
.cat-icon svg { width: 28px; height: 28px; }
.cat__head .eyebrow { margin-bottom: 6px; }
.cat__head h2, .cat__head h3 { margin: 0; }
.features--2col { grid-template-columns: 1fr 1fr; gap: 14px 32px; }
@media (max-width: 640px) {
  .features--2col { grid-template-columns: 1fr; }
  .cat__head { gap: 16px; }
}

/* Tabs (KI-Anwendungsbereiche) */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.tabs__tab {
  font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer;
  padding: 12px 22px; border-radius: 40px; border: 1px solid var(--line);
  background: #fff; color: var(--navy);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tabs__tab:hover { border-color: var(--blue); color: var(--blue); }
.tabs__tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabs__tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tabs__panel { max-width: 900px; margin: 0 auto; }
.tabs__panel:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 8px; }
@media (max-width: 560px) {
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; }
  .tabs__tab { flex: 0 0 auto; }
}
