:root {
  --ink: #484848;
  --muted: #6f6f6f;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #e9e3d3;
  --cyan: #00bad7;
  --gold: #c8b274;
  --orange: #ffa800;
  --soft-cyan: #e8fbff;
  --soft-gold: #f7f2e4;
  --shadow: 0 18px 50px rgba(72, 72, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Play", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  padding: 0;
  border-bottom: 1px solid rgba(200, 178, 116, 0.34);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.contact-strip {
  min-height: 32px;
  padding: 7px clamp(18px, 7vw, 88px);
  background: var(--cyan);
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-strip::before {
  content: "✉ ";
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 14px clamp(18px, 7vw, 88px);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.wordmark {
  display: grid;
  justify-items: start;
  color: var(--ink);
  font-family: "League Spartan", "Play", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.15rem, 3.4vw, 3.25rem);
  line-height: 0.68;
  font-weight: 700;
  letter-spacing: 0;
}

.logo-my,
.logo-bottom {
  display: block;
}

.logo-my {
  transform: translateX(0);
}

.brand-free {
  color: var(--cyan);
}

.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.02vw, 0.94rem);
  line-height: 1;
  margin-left: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  min-height: auto;
  padding: clamp(46px, 6vw, 76px) clamp(18px, 7vw, 88px) clamp(42px, 5vw, 68px);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2.35rem, 4.15vw, 3.95rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 700;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.primary-action {
  background: var(--cyan);
  color: white;
  box-shadow: 0 10px 24px rgba(0, 186, 215, 0.24);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.secondary-action,
.ghost-button {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.secondary-action:hover,
.ghost-button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.full {
  width: 100%;
}

.privacy-visual {
  position: relative;
  display: grid;
  min-height: clamp(360px, 38vw, 500px);
  place-items: center;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 186, 215, 0.2), rgba(255, 255, 255, 0.25)),
    url("./assets/freiraum-hero.png") center / cover no-repeat,
    linear-gradient(145deg, var(--soft-cyan), var(--soft-gold));
  box-shadow: 0 18px 42px rgba(72, 72, 72, 0.12);
}

.visual-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.18) 46%),
    linear-gradient(180deg, rgba(0, 186, 215, 0.08), rgba(72, 72, 72, 0.16));
}

.visual-card {
  position: absolute;
  z-index: 2;
  width: min(78%, 360px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.visual-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.visual-label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-one {
  top: 66px;
  left: 44px;
}

.card-two {
  right: 40px;
  bottom: 54px;
}

.visual-shield {
  position: relative;
  z-index: 3;
  display: grid;
  width: 112px;
  height: 132px;
  place-items: center;
  border-radius: 44px 44px 56px 56px;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(4px);
}

.visual-shield span {
  width: 44px;
  height: 62px;
  border: 8px solid var(--cyan);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom: 0;
  position: relative;
}

.visual-shield span::after {
  position: absolute;
  right: -18px;
  bottom: -36px;
  left: -18px;
  height: 44px;
  border-radius: 8px;
  background: var(--cyan);
  content: "";
}

.tool-band {
  padding: clamp(26px, 5vw, 62px) clamp(18px, 5vw, 72px);
  background: var(--soft-cyan);
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
}

.workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel,
.controls {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(72, 72, 72, 0.08);
}

.panel {
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 96px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head.compact {
  min-height: auto;
}

.panel h2,
.controls h2,
.content-section h2,
.limits-section h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.file-zone {
  margin: 18px 18px 0;
}

.file-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-zone label {
  display: grid;
  gap: 8px;
  min-height: 104px;
  align-content: center;
  border: 2px dashed rgba(200, 178, 116, 0.62);
  border-radius: 8px;
  padding: 18px;
  background: #fffdf8;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.file-zone label:hover,
.file-zone.is-dragging label {
  border-color: var(--cyan);
  background: var(--soft-cyan);
  transform: translateY(-1px);
}

.file-zone strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.file-zone span,
.source-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.source-status {
  min-height: 24px;
  padding: 10px 18px 0;
}

textarea {
  display: block;
  width: 100%;
  min-height: 320px;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 18px;
  background: transparent;
  color: var(--ink);
  font-family: "Play", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.94rem;
  line-height: 1.62;
}

textarea::placeholder {
  color: #9aa59f;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.control-block {
  display: grid;
  gap: 10px;
}

.control-block label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.stats span {
  min-height: 66px;
  border-radius: 8px;
  padding: 12px;
  background: var(--soft-gold);
  color: var(--muted);
}

.stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.5rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1440px;
  margin: 18px auto 0;
}

.review-panel {
  min-height: 320px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  white-space: nowrap;
}

.findings-list,
.context-preview {
  padding: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.finding-item {
  display: grid;
  grid-template-columns: minmax(86px, 0.25fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.finding-item:last-child {
  border-bottom: 0;
}

.finding-type {
  color: var(--cyan);
  font-weight: 700;
}

.finding-value {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.context-preview {
  min-height: 220px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-preview mark {
  border-radius: 4px;
  padding: 1px 4px;
  background: rgba(0, 186, 215, 0.18);
  color: var(--ink);
  font-weight: 700;
}

.content-section,
.limits-section {
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section-title {
  max-width: 760px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.example-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: white;
}

.example-grid h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.example-grid p,
.limits-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.limits-section {
  background: var(--ink);
  color: white;
}

.limits-section .eyebrow {
  color: var(--cyan);
}

.limits-section h2 {
  color: white;
}

.limits-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-top: 28px;
}

.limits-list p {
  border-left: 4px solid var(--orange);
  padding: 14px 0 14px 18px;
  color: rgba(255, 255, 255, 0.76);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero,
  .tool-shell,
  .workspace,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .privacy-visual {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .topbar,
  .footer {
    align-items: flex-start;
  }

  .header-main {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.28rem, 10.5vw, 3.6rem);
  }

  .privacy-visual {
    min-height: 360px;
  }

  .visual-card {
    width: 82%;
    padding: 16px;
  }

  .card-one {
    top: 28px;
    left: 16px;
  }

  .card-two {
    right: 16px;
    bottom: 28px;
  }

  .visual-shield {
    width: 104px;
    height: 124px;
  }

  .panel-head {
    flex-direction: column;
  }

  textarea {
    min-height: 300px;
  }

  .example-grid {
    grid-template-columns: 1fr;
  }
}
