/* Jobomi Management – Brand Guidelines
   Tokens, Layout, Zustände. Breakpoints: <640 Handy, 640–1023 Tablet, ≥1024 Desktop. */

:root {
  --bg: #0F0B1E;
  --bg-deep: #07050F;
  --card: #17122E;
  --line: #2A2450;
  --line-card: #3A3370;
  --green: #40F99B;
  --green-hover: #7DFFBC;
  --green-active: #2FD683;
  --purple: #8884FF;
  --text: #FFFFFF;
  --muted: #B9B5D6;
  --soft: #D2CFEA;
  --error: #FF8A9B;
  --dash: #6F69B8;

  --gutter: 20px;
  --section-pad: 64px;
  --header-h: 64px;
  --logo-h: 32px;
  --hero-logo: 240px;
  --h1: 40px;
  --h2: 30px;
  --zone-logo: 200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 640px) {
  :root { --gutter: 40px; }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 64px;
    --section-pad: 96px;
    --header-h: 88px;
    --logo-h: 44px;
    --hero-logo: 380px;
    --h1: 80px;
    --h2: 48px;
    --zone-logo: 260px;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

a { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green-hover); }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

code { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Skip-Link: nur bei Fokus sichtbar */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; background: var(--green); color: var(--bg);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--bg); }

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

/* Header */
.site-header {
  display: flex; align-items: center; height: var(--header-h);
  border-bottom: 1px solid var(--line);
}
.logo-link { display: inline-flex; border-radius: 2px; transition: filter .15s; }
.logo-link:hover { filter: drop-shadow(0 0 16px rgba(136, 132, 255, .65)); }
.logo-link img { height: var(--logo-h); width: auto; display: block; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; padding-left: var(--gutter); padding-right: var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
  padding: 56px 0 64px;
}
@media (min-width: 1024px) { .hero { padding: 96px 0 112px; } }
.hero-logo { width: var(--hero-logo); height: auto; filter: drop-shadow(0 0 32px rgba(136, 132, 255, .45)); }
.hero h1 {
  margin: 0; font-size: var(--h1); line-height: 1; font-weight: 900; text-transform: uppercase;
  color: var(--green); text-shadow: 0 0 32px rgba(64, 249, 155, .35);
}
.hero p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.star { position: absolute; height: auto; z-index: -1; pointer-events: none; will-change: transform; }
.s1 { left: 5%;  top: 6%;  width: 28px; opacity: .9; --r: -12deg; }
.s2 { left: 86%; top: 4%;  width: 18px; opacity: .8; --r: 15deg; }
.s3 { left: 80%; top: 30%; width: 14px; opacity: .6; --r: 0deg; }
.s4 { left: 6%;  top: 36%; width: 14px; opacity: .6; --r: 8deg; }
.s5 { left: 88%; top: 48%; width: 26px; opacity: .9; --r: 20deg; }
.s6 { left: 8%;  top: 93%; width: 16px; opacity: .7; --r: -6deg; }
.s7 { left: 86%; top: 92%; width: 22px; opacity: .8; --r: -10deg; }
.s8 { left: 70%; top: 16%; width: 12px; opacity: .5; --r: 0deg; }
@media (min-width: 1024px) {
  .s1 { width: 44px; } .s2 { width: 28px; } .s3 { width: 22px; } .s4 { width: 24px; }
  .s5 { width: 44px; } .s6 { width: 26px; } .s7 { width: 36px; } .s8 { width: 18px; }
}
.star { transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r, 0deg)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border: 2px solid transparent;
  background: var(--green); color: var(--bg);
  font: 800 16px/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 0 28px rgba(64, 249, 155, .35);
  transition: background-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--green-hover); color: var(--bg); }
.btn:active { background: var(--green-active); transform: translateY(1px); box-shadow: 0 0 14px rgba(64, 249, 155, .18); }
.btn[aria-busy="true"] { cursor: progress; pointer-events: none; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; pointer-events: none; }
.btn.is-error { background: transparent; border-color: var(--error); color: var(--error); box-shadow: none; }
.btn.is-error:hover { background: rgba(255, 138, 155, .1); color: var(--error); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn .ico-spin { animation: jspin 1s linear infinite; }
.btn-note { margin: 12px 0 0; font-size: 15px; color: var(--error); min-height: 1em; }
.btn-note:empty { display: none; }
@keyframes jspin { to { transform: rotate(360deg); } }
@keyframes jshim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Sections */
.section { display: flex; flex-direction: column; gap: 32px; padding: var(--section-pad) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
h2 {
  margin: 0; font-size: var(--h2); line-height: 1.05; font-weight: 900; letter-spacing: .01em;
  text-transform: uppercase; color: var(--green); text-shadow: 0 0 24px rgba(64, 249, 155, .3);
}
h3 { margin: 0; font-size: 22px; font-weight: 900; text-transform: uppercase; color: #fff; }
.lead { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.group { display: flex; flex-direction: column; gap: 20px; }
.group + .group { margin-top: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.grid-tight { gap: 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); } .grid-tight { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); } }

/* Ecken-Klammern */
.bk { position: relative; }
.bk::before {
  content: ""; position: absolute; inset: -2px; pointer-events: none;
  background:
    linear-gradient(var(--green), var(--green)) top left / 22px 3px no-repeat,
    linear-gradient(var(--green), var(--green)) top left / 3px 22px no-repeat,
    linear-gradient(var(--green), var(--green)) top right / 22px 3px no-repeat,
    linear-gradient(var(--green), var(--green)) top right / 3px 22px no-repeat,
    linear-gradient(var(--green), var(--green)) bottom left / 22px 3px no-repeat,
    linear-gradient(var(--green), var(--green)) bottom left / 3px 22px no-repeat,
    linear-gradient(var(--green), var(--green)) bottom right / 22px 3px no-repeat,
    linear-gradient(var(--green), var(--green)) bottom right / 3px 22px no-repeat;
}
.hero-visual img { display: block; width: 100%; height: auto; }

/* Bild-Kacheln */
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile-name { font-weight: 800; font-size: 17px; color: #fff; }
.tile-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn-small {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--green); color: var(--green); background: transparent;
  font: 800 14px/1 var(--font); text-decoration: none;
}
.btn-small:hover { background: var(--green); color: var(--bg); }
.frame {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep); border: 1px solid var(--line-card); overflow: hidden; padding: 16px;
}
.frame-logo { min-height: 200px; }
.frame-img { height: 220px; padding: 0; }
.frame-light { background: #fff; border-color: #fff; }
.frame img { display: block; max-width: 100%; max-height: 100%; height: auto; opacity: 0; transition: opacity .2s; }
.frame img.loaded, .no-js .frame img { opacity: 1; }
.frame-logo img { width: 180px; }
.frame.is-loading {
  background: linear-gradient(90deg, var(--card) 25%, var(--line) 50%, var(--card) 75%) 0 0 / 200% 100%;
  animation: jshim 1.2s linear infinite;
}
.frame.is-error { border: 2px dashed var(--error); flex-direction: column; gap: 12px; text-align: center; color: var(--error); font-size: 15px; animation: none; background: var(--bg-deep); }
.frame.is-error img { display: none; }
.frame .retry { min-height: 44px; padding: 0 16px; background: transparent; border: 2px solid var(--error); color: var(--error); font: 800 15px var(--font); cursor: pointer; }
.frame .retry:hover { background: rgba(255, 138, 155, .12); }

/* Farben */
.swatch { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 200px; padding: 24px; color: var(--bg); }
.swatch-green { background: var(--green); }
.swatch-purple { background: var(--purple); }
.swatch-name { font-size: 24px; font-weight: 900; text-transform: uppercase; }
.values { display: flex; flex-direction: column; gap: 4px; }
.value {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 0 8px; margin: 0 -8px; width: calc(100% + 16px);
  background: transparent; border: 0; color: var(--bg); font: 600 16px var(--font); text-align: left; cursor: pointer;
}
.value:hover { background: rgba(15, 11, 30, .14); text-decoration: underline; }
.value:focus-visible { outline: 3px solid var(--bg); outline-offset: -3px; }
.value .ico { width: 20px; height: 20px; flex: none; }
.value .ico-check { display: none; }
.value.is-copied .ico-copy { display: none; }
.value.is-copied .ico-check { display: block; }
/* Ohne JS bleiben die Zeilen normaler Text */
.no-js .value { cursor: text; }
.no-js .value:hover { background: transparent; text-decoration: none; }
.no-js .value .ico { display: none; }

/* Mindestabstand */
.zone { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
@media (min-width: 640px) { .zone { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); } }
.zone-demo { display: flex; align-items: center; justify-content: center; background: var(--bg-deep); border: 1px solid var(--line-card); padding: 40px 16px; }
.zone-box { --w: var(--zone-logo); --pad: calc(var(--w) * 0.163); position: relative; padding: var(--pad); border: 2px dashed #5A5679; }
.zone-box img.zl { display: block; width: var(--w); height: auto; }
.zone-box .zs { position: absolute; width: calc(var(--w) * 0.156); height: var(--pad); }
.zs-t { top: 0; left: 50%; transform: translateX(-50%); }
.zs-b { bottom: 0; left: 50%; transform: translateX(-50%); }
.zs-l { left: 0; top: 50%; transform: translateY(-50%); }
.zs-r { right: 0; top: 50%; transform: translateY(-50%); }
.zone-text { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 8px 0; }
.zone-text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.zone-text h3 + p + h3 { margin-top: 8px; }

/* Do's & Don'ts */
.rule { display: flex; flex-direction: column; gap: 12px; }
.rule-demo { height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); border: 1px solid var(--line-card); }
.rule-demo img { width: 160px; height: auto; }
.rule-text { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: #fff; }
.rule-text svg { flex: none; }
.rule-text strong.ok { color: var(--green); }
.rule-text strong.no { color: var(--error); }

/* Rechtliches */
.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--card); border: 1px solid var(--line-card); }
.card .num { font-size: 14px; font-weight: 800; color: var(--green); }
.card h3 { font-size: 20px; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Download */
.download-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  padding: 48px 24px; background: linear-gradient(160deg, #2B1F6E 0%, #4B3FB0 100%);
  box-shadow: 0 0 40px rgba(136, 132, 255, .28);
}
@media (min-width: 1024px) { .download-card { padding: 80px 48px; } }
.download-card p { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: #E6E4F7; }
#download { scroll-margin-top: 0; }

/* Footer */
.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.site-footer img { width: 96px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; align-items: center; }
@media (min-width: 1024px) { .site-footer { flex-direction: row; justify-content: space-between; } }

/* Toast / Status */
.toast {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50;
  max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px;
  background: var(--card); border: 1px solid var(--green); color: #fff; font-size: 15px;
}
.toast[hidden] { display: none; }
.toast.is-error { border-color: var(--error); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 404 */
.nf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 96px 0; }
.nf h1 { margin: 0; font-size: var(--h2); text-transform: uppercase; color: var(--green); text-shadow: 0 0 24px rgba(64,249,155,.3); }
.nf p { margin: 0; color: var(--muted); font-size: 18px; }

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:active { transform: none; }
}

/* Hoher Kontrast */
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; }
  .frame, .zone-demo, .rule-demo, .card { border: 1px solid CanvasText; }
  .zone-box .zs { forced-color-adjust: none; outline: 2px solid CanvasText; }
  .btn { border: 2px solid ButtonText; }
  .bk::before { display: none; }
}
