/* ja.solutions */

@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #00002d;          /* Markenfarbe */
  --navy-2: #0b0b44;        /* Flächen auf Navy */
  --paper: #f4f5f9;         /* heller Grund, leicht blaustichig */
  --white: #ffffff;
  --ink: #00002d;           /* Text auf hell */
  --muted: #55587a;         /* Nebentext auf hell */
  --muted-dark: #a9acd0;    /* Nebentext auf Navy */
  --line-dark: rgba(255, 255, 255, .22);
  --line-light: rgba(0, 0, 45, .14);
  --it: #7cc8ff;            /* Bereich IT */
  --event: #5fe3c8;         /* Bereich Veranstaltungstechnik */
  --focus: #7cc8ff;

  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --fs-xs: .8125rem;
  --fs-s: .9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.375rem;
  --fs-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --fs-xxl: clamp(2.2rem, 1.3rem + 3.2vw, 3.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-m);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); color: var(--navy); padding: 8px 12px; }

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

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand .brand-full { display: block; }
.brand .brand-mark { display: none; height: 40px; }
.nav { display: flex; gap: clamp(14px, 3vw, 36px); align-items: center; }
.nav a {
  text-decoration: none; font-size: var(--fs-s); font-weight: 400; letter-spacing: .02em;
  padding-block: 6px; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav .nav-cta { border: 1px solid var(--line-dark); padding: 6px 14px; }
.nav .nav-cta:hover { border-color: var(--white); }
@media (max-width: 720px) {
  .brand .brand-full { display: none; }
  .brand .brand-mark { display: block; }
  .nav a:not(.nav-cta) .long { display: none; }
}
@media (min-width: 721px) { .nav .short { display: none; } }

/* ---------- Split-Landing ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
  color: var(--white);
  min-height: clamp(520px, 80vh, 780px);
}
.panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: clamp(32px, 6vw, 72px) var(--gutter);
  text-decoration: none; color: inherit;
  isolation: isolate;
  transition: background-color .4s;
}
.panel + .panel { border-left: 1px solid var(--line-dark); }
.panel:hover, .panel:focus-visible { background: var(--navy-2); }
.panel canvas.bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.panel .eyebrow { display: flex; align-items: center; gap: 12px; }
.panel .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.panel h2 { font-size: var(--fs-xxl); font-weight: 400; }
.panel h2 span { display: block; }
.panel h2 span + span { font-weight: 600; }
.panel .lead { color: var(--muted-dark); max-width: 38ch; font-size: var(--fs-m); min-height: 6.4em; }
.panel ul.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.panel ul.tags li { font-size: var(--fs-xs); letter-spacing: .04em; border: 1px solid var(--line-dark); padding: 4px 10px; font-weight: 400; }
.panel .go {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: 10px;
  font-weight: 400; font-size: var(--fs-m); letter-spacing: .02em; white-space: nowrap;
  padding: 14px 26px; border: 1px solid var(--accent); color: var(--white); background: var(--navy); border-radius: var(--radius);
  transition: background-color .2s, color .2s;
}
.panel .go svg { width: 28px; flex: none; transition: transform .3s; }
.panel:hover .go, .panel:focus-visible .go { background: var(--accent); color: var(--navy); }
.panel:hover .go svg { transform: translateX(6px); }
.panel .groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 560px; }
.panel .group { display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--line-dark); padding-top: 14px; min-width: 0; }
.panel .group h3 { font-size: var(--fs-m); font-weight: 500; color: var(--accent); }
.panel .group p { color: var(--muted-dark); font-size: var(--fs-s); }
@media (max-width: 520px) { .panel .groups { grid-template-columns: 1fr; } }
.panel-it { --accent: var(--it); }
.panel-event { --accent: var(--event); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .panel { min-height: 440px; }
  .panel .lead { min-height: 0; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* ---------- Rahmen-Motiv ---------- */
.frame {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
}
.frame::before, .frame::after { content: ""; position: absolute; pointer-events: none; }
/* oben + links, Lücke oben */
.frame::before {
  inset: 0 0 18% 0;
  border-top: 2px solid currentColor; border-left: 2px solid currentColor;
  -webkit-mask: linear-gradient(90deg, #000 0 7%, transparent 7% 22%, #000 22%);
          mask: linear-gradient(90deg, #000 0 7%, transparent 7% 22%, #000 22%);
  opacity: .9;
}
/* rechts + unten, Lücke rechts */
.frame::after {
  inset: 0 0 0 26%;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  -webkit-mask: linear-gradient(180deg, #000 0 42%, transparent 42% 58%, #000 58%);
          mask: linear-gradient(180deg, #000 0 42%, transparent 42% 58%, #000 58%);
  opacity: .9;
}

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-dark { background: var(--navy); color: var(--white); }
.section-white { background: var(--white); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section-head h2 { font-size: var(--fs-xl); }
.section-head p { color: var(--muted); font-size: var(--fs-m); }
.section-dark .section-head p { color: var(--muted-dark); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.fact { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--line-light); padding-top: 20px; min-width: 0; }
.fact h3 { font-size: var(--fs-l); font-weight: 400; }
.fact p { color: var(--muted); }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-size: var(--fs-xl); max-width: 22ch; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 400; font-size: var(--fs-m); letter-spacing: .02em;
  padding: 14px 26px; border: 1px solid currentColor; background: transparent; color: inherit;
  text-decoration: none; cursor: pointer; border-radius: var(--radius); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn svg { width: 28px; flex: none; }
.btn:hover { background: var(--white); color: var(--navy); }
.btn-solid { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-solid:hover { background: var(--navy-2); color: var(--white); }

/* ---------- Unterseiten-Hero ---------- */
.page-hero { background: var(--navy); color: var(--white); padding-block: clamp(56px, 9vw, 110px) clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero canvas.bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; }
.page-hero .wrap { position: relative; }
.page-hero .frame { max-width: 820px; display: grid; gap: 18px; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: var(--fs-xxl); }
.page-hero p.lead { color: var(--muted-dark); font-size: var(--fs-l); max-width: 40ch; }
.page-it { --accent: var(--it); }
.page-event { --accent: var(--event); }

/* ---------- Leistungen (Kacheln) ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.service {
  display: grid; grid-template-rows: auto auto 1fr; gap: 18px; align-content: start; min-width: 0;
  background: var(--white); border: 1px solid var(--line-light); border-top: 3px solid var(--navy);
  padding: clamp(22px, 3vw, 32px);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.services:has(> .service:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .services:has(> .service:nth-child(4)) { grid-template-columns: 1fr; } }
.section-white .service { background: var(--paper); }
.service:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 45, .35); }
.theme-it { --accent: var(--it); }
.theme-event { --accent: var(--event); }
.service { border-top-color: var(--accent, var(--navy)); }
.service-title { display: flex; align-items: center; gap: 14px; }
.service-title .icon { width: 40px; height: 40px; flex: none; color: var(--navy); }
.service-title h3 { font-size: var(--fs-l); font-weight: 400; }
.service-body { display: grid; gap: 18px; align-content: start; min-width: 0; }
.service-body > p { color: var(--muted); font-size: var(--fs-s); }
.checks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line-light); display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 20px; font-weight: 400; font-size: var(--fs-s); }
.checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--navy); }
/* einzelne Kachel: Text links, Liste rechts */
.service:only-child { grid-template-rows: auto; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(20px, 4vw, 56px); }
.service:only-child .service-title { grid-column: 1; }
.service:only-child .service-body { grid-column: 2; grid-row: 1 / span 2; }
.service:only-child .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 820px) {
  .service:only-child { grid-template-columns: 1fr; }
  .service:only-child .service-body { grid-column: 1; grid-row: auto; }
  .service:only-child .checks { grid-template-columns: 1fr; }
}

/* Einsatzgrößen-Tabelle */
.scale-wrap { overflow-x: auto; }
.scale { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--fs-s); }
.scale th, .scale td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.scale th { font-weight: 500; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.scale td:first-child { font-weight: 400; font-size: var(--fs-m); }
.pill { display: inline-block; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; padding: 3px 10px; border: 1px solid currentColor; white-space: nowrap; }
.pill-yes { color: var(--event); }
.pill-plus { color: var(--it); }
.pill-no { color: var(--muted-dark); }
.note { color: var(--muted-dark); font-size: var(--fs-s); margin-top: 20px; max-width: 70ch; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.steps h3 { font-size: var(--fs-l); font-weight: 400; }
.steps p { color: var(--muted); font-size: var(--fs-s); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info dl { margin: 0; display: grid; gap: 14px; }
.contact-info dt { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-info dd { margin: 2px 0 0; font-weight: 400; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 20px; background: var(--white); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: var(--fs-s); font-weight: 400; }
.field .opt { color: var(--muted); font-weight: 300; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: var(--fs-m); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-light); background: var(--paper); border-radius: var(--radius);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.captcha input { max-width: 10rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-light); padding: 10px 14px; cursor: pointer; background: var(--paper); }
.choice input { accent-color: var(--navy); width: auto; }
.choice label:has(input:checked) { border-color: var(--navy); background: var(--white); box-shadow: inset 0 0 0 1px var(--navy); }
.area-fields { display: grid; gap: 20px; padding: 20px; }
.area-it { border-left: 2px solid var(--it); background: #f1f8ff; }
.area-event { border-left: 2px solid var(--event); background: #effcf9; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-s); color: var(--muted); }
.consent input { margin-top: 5px; accent-color: var(--navy); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--fs-s); padding: 12px 14px; border-left: 3px solid var(--navy); background: var(--paper); }
.form-status[data-state="error"] { border-color: #b3261e; }
.form-status[data-state="ok"] { border-color: #1f7a4d; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; display: grid; gap: 28px; }
.legal h1 { font-size: var(--fs-xl); }
.legal h2 { font-size: var(--fs-l); font-weight: 400; margin-bottom: 8px; }
.legal p, .legal li { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-dark); background: var(--navy); color: var(--muted-dark); font-size: var(--fs-s); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; padding-block: 36px; }
.site-footer img { height: 54px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }

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

/* Split: gemeinsames Raster, damit Überschriften, Blöcke und Buttons beider Hälften fluchten */
@media (min-width: 821px) {
  .split { grid-template-rows: 1fr repeat(4, auto) 1fr; }
  .panel { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 22px; }
  .panel > .eyebrow { grid-row: 2; }
  .panel > h2 { grid-row: 3; }
  .panel > .groups { grid-row: 4; }
  .panel > .go { grid-row: 5; justify-self: start; }
}
/* Eigenname ja.solutions: immer klein */
.brandname { text-transform: none; letter-spacing: .06em; font-size: var(--fs-s); }

/* Startseite: Über-Abschnitt */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.about h2 { font-size: var(--fs-xl); }
.about-text { display: grid; gap: 16px; color: var(--muted); font-size: var(--fs-m); max-width: 60ch; }
.text-link { color: var(--ink); font-weight: 400; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { border-bottom-width: 2px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
