/* ==========================================================================
   IT's Simple – Tool-Plattform (tools.its-simple.org)
   Design-System uebernommen aus assets/css/site.css der Hauptsite.
   Dark Navy #06121d · Brand Red #e30613/#ff4b54 · Segoe UI · 20px Radius.
   ========================================================================== */

:root {
  --bg: #06121d;
  --bg-deep: #040c13;
  --surface: #091a28;
  --surface-2: #0c2233;
  --navy: #10314a;
  --red: #e30613;
  --red-bright: #ff4b54;
  --text: #eaf2fb;
  --soft: #c4d6e8;
  --muted: #8ba3bb;
  --line: rgba(234, 242, 251, 0.1);
  --line-strong: rgba(234, 242, 251, 0.2);
  --card: rgba(255, 255, 255, 0.028);
  --card-2: rgba(255, 255, 255, 0.05);
  --glow-red: rgba(227, 6, 19, 0.55);
  --glow-blue: rgba(43, 108, 176, 0.45);
  --grad-red: linear-gradient(135deg, #ff4b54 0%, #e30613 55%, #b00611 100%);
  --radius: 20px;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 0.84, 0.34, 1);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 700px at 82% -8%, rgba(227, 6, 19, 0.2), transparent 60%),
    radial-gradient(1000px 800px at 8% 8%, rgba(16, 49, 74, 0.85), transparent 60%),
    radial-gradient(800px 900px at 95% 92%, rgba(43, 108, 176, 0.18), transparent 60%),
    linear-gradient(180deg, #06121d 0%, #050e16 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  background: radial-gradient(
    circle,
    rgba(227, 6, 19, 0.16),
    rgba(43, 108, 176, 0.1) 40%,
    transparent 68%
  );
  mix-blend-mode: screen;
}

::selection {
  background: var(--red);
  color: #fff;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  color: #fff;
  background: var(--red);
  text-decoration: none;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ------------------------------------------------------------------ Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 84px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(6, 18, 29, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 0 auto;
}
.brand img {
  width: 154px;
  height: auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-header nav a {
  position: relative;
  padding: 0.65rem 0.72rem;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0.72rem;
  bottom: 0.32rem;
  left: 0.72rem;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.site-header nav a:hover::after,
.site-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* -------------------------------------------------------------------- Main */

main > section {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
  padding-block: clamp(60px, 8vw, 110px);
}

main > section + section {
  border-top: 1px solid var(--line);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 0.35em;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 850;
}

h2 {
  margin-bottom: 0.5em;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 820;
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
}

p {
  margin-top: 0;
}

.lead {
  max-width: 58ch;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.eyebrow,
.section-no {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), var(--red));
}

.section-no {
  justify-content: space-between;
  padding-bottom: 1rem;
  color: var(--red-bright);
  border-bottom: 1px solid var(--line);
}

.section-no::after {
  content: "";
  width: min(55%, 600px);
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.page-intro {
  min-height: 48vh;
  padding-top: clamp(70px, 10vw, 120px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-intro::before {
  content: attr(data-index);
  position: absolute;
  right: 2%;
  bottom: -0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  font-size: clamp(10rem, 28vw, 24rem);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
}

.page-intro > * {
  position: relative;
  z-index: 1;
}

.page-intro h1 {
  max-width: 13ch;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

/* ------------------------------------------------------------------ Button */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.82rem 1.45rem;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 3px;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.button::after {
  content: "→";
  margin-left: 0.7rem;
}

.button:hover {
  color: #fff;
  background: #bd0510;
  border-color: #bd0510;
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.32);
}

.text-link {
  color: var(--soft);
  font-weight: 700;
  text-decoration-color: var(--red);
}

/* --------------------------------------------------------------- Scan-Form */

.scan-form {
  margin-top: 2.5rem;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 49, 74, 0.4), rgba(227, 6, 19, 0.03));
  box-shadow: var(--shadow);
}

.scan-form > label:first-child {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scan-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.scan-row input[type="text"] {
  flex: 1 1 320px;
  min-height: 56px;
  padding: 0.9rem 1.15rem;
  color: var(--text);
  background: rgba(4, 12, 19, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font: inherit;
  font-size: 1.05rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.scan-row input[type="text"]::placeholder {
  color: rgba(139, 163, 187, 0.75);
}

.scan-row input[type="text"]:focus {
  outline: none;
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.18);
}

.scan-row .button {
  min-height: 56px;
  white-space: nowrap;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.4rem;
  color: var(--soft);
  font-size: 0.92rem;
  cursor: pointer;
}

.check input {
  margin-top: 0.28rem;
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex: 0 0 auto;
}

.check small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-note {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.scan-status {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--red);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  font-size: 0.92rem;
}

.scan-status.is-error {
  border-left-color: var(--red-bright);
  color: var(--red-bright);
}

/* ---------------------------------------------------------------- Ergebnis */

.result-section {
  border-top: 1px solid var(--line);
}

.result-head {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  margin-top: 2.5rem;
  align-items: start;
}

.score-box {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 49, 74, 0.5), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.score-label {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.score-value {
  margin: 0;
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 880;
  line-height: 1;
  letter-spacing: -0.04em;
}

.score-value small {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0;
}

.score-note {
  margin: 0.8rem 0 0;
  color: var(--red-bright);
  font-size: 0.9rem;
  font-weight: 700;
}

.result-url {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  word-break: break-all;
}

.result-sub {
  margin: 0.6rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.severity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(36px, 5vw, 60px);
  background: var(--line-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.severity-item {
  padding: 1.5rem 1.35rem;
  background: var(--bg);
}

.severity-item span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.severity-item strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 860;
  line-height: 1;
}

.severity-item.is-critical strong {
  color: var(--red-bright);
}
.severity-item.is-serious strong {
  color: #ff8a4c;
}
.severity-item.is-moderate strong {
  color: #ffd166;
}
.severity-item.is-minor strong {
  color: var(--muted);
}

.result-detail {
  margin-top: clamp(40px, 6vw, 72px);
}

.violation-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.violation {
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius);
  background: var(--card);
}

.violation.is-critical {
  border-left-color: var(--red-bright);
}
.violation.is-serious {
  border-left-color: #ff8a4c;
}
.violation.is-moderate {
  border-left-color: #ffd166;
}

.violation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  margin-bottom: 0.7rem;
}

.violation-head h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.violation-badge {
  padding: 0.2rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.violation-badge.is-critical {
  color: var(--red-bright);
}
.violation-badge.is-serious {
  color: #ff8a4c;
}
.violation-badge.is-moderate {
  color: #ffd166;
}
.violation-badge.is-minor {
  color: var(--muted);
}

.violation-url {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-all;
}

.violation p {
  margin: 0 0 0.6rem;
  color: var(--soft);
  font-size: 0.92rem;
}

.violation code {
  display: block;
  margin-top: 0.6rem;
  padding: 0.7rem 0.85rem;
  overflow-x: auto;
  color: var(--soft);
  background: rgba(4, 12, 19, 0.7);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: "Consolas", "SF Mono", "Menlo", monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-note {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 49, 74, 0.24);
  color: var(--soft);
}

.result-note {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 49, 74, 0.25);
}

.result-note h3 {
  margin-bottom: 0.8rem;
}

.result-note p {
  max-width: 68ch;
  color: var(--soft);
  font-size: 0.94rem;
}

/* -------------------------------------------------------------- Info / CTA */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-grid article {
  padding: clamp(24px, 3vw, 34px);
  background: var(--bg);
}

.info-grid span {
  display: block;
  margin-bottom: 1rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.info-grid h3 {
  margin-bottom: 0.7rem;
}

.info-grid p {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
}

.cta-section > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.cta-section h2 {
  margin-bottom: 0;
}

.cta-section .lead {
  margin-bottom: 1.8rem;
}

/* ------------------------------------------------------------------- Footer */

footer {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 36px;
  border-top: 1px solid var(--line-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand img {
  width: 170px;
  margin-bottom: 1.4rem;
}

.footer-brand p {
  max-width: 38ch;
  color: var(--muted);
}

footer h2 {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

footer nav {
  display: grid;
  gap: 0.55rem;
}

footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

footer nav a:hover {
  color: var(--text);
}

.footer-cta p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 980px) {
  .result-head {
    grid-template-columns: 1fr;
  }
  .severity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .cta-section > div {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .site-header nav {
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 0.35rem;
  }
  .severity-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .scan-row .button {
    width: 100%;
  }
}

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