:root {
  --ink: #153b3f;
  --muted: #5f6f6d;
  --paper: #fffaf0;
  --surface: #ffffff;
  --line: #ddd6c7;
  --accent: #e44f3a;
  --green: #2f6f73;
  --gold: #ffd166;
  --shadow: 0 18px 48px rgba(21, 59, 63, 0.14);
}

* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(221, 214, 199, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 650;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.gold {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(21rem, 1.05fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 118px);
  padding: 56px 5vw 42px;
}

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

h1 {
  margin: 0;
  max-width: 52rem;
  font-size: clamp(2.55rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 43rem;
  margin: 24px 0 0;
  color: #38504d;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.trust-row li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #4a5d5a;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-media img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.band {
  padding: 76px 5vw;
  border-top: 1px solid var(--line);
}

.band.white { background: var(--surface); }
.band.dark { color: white; background: var(--ink); }
.band.dark .muted, .band.dark p { color: #d8e2df; }

.section-head {
  max-width: 49rem;
  margin-bottom: 34px;
}

.section-head h2,
.tool-shell h1,
.legal h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.muted { color: var(--muted); }

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

.feature,
.price-card,
.upload-panel,
.result-panel,
.legal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(21, 59, 63, 0.08);
}

.feature,
.price-card {
  padding: 26px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: white;
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.price-card.featured {
  border-color: var(--accent);
  outline: 3px solid rgba(228, 79, 58, 0.15);
}

.price {
  margin: 18px 0;
  font-size: 2.6rem;
  font-weight: 900;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check-list li::before {
  content: "+";
  margin-right: 8px;
  color: var(--green);
  font-weight: 900;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin-top: 28px;
  border: 1px dashed #9ca9a6;
  border-radius: 8px;
  color: #5f6f6d;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.tool-shell {
  width: min(73.75rem, calc(100% - 2rem));
  margin: 44px auto 80px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 18px;
  margin-top: 28px;
}

.upload-panel,
.result-panel,
.legal {
  padding: 26px;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 14rem;
  margin: 18px 0;
  padding: 28px;
  border: 2px dashed #a4b6b1;
  border-radius: 8px;
  background: #eef5f3;
  text-align: center;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: #fff0ec;
}

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

.file-picker {
  width: 100%;
  margin-top: 10px;
}

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

label span {
  display: block;
  margin-bottom: 6px;
  color: #36514d;
  font-size: 0.9rem;
  font-weight: 800;
}

input[type="number"],
input[type="password"] {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-weight: 750;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: #38504d;
}

.file-list img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef5f3;
}

.file-list li > span {
  display: grid;
  min-width: 0;
}

.file-list strong,
.file-list li > span span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list strong {
  color: var(--ink);
}

.status {
  min-height: 28px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 750;
}

.status.error { color: #b83220; }
.status.success { color: var(--green); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 5vw;
  color: #d8e2df;
  background: var(--ink);
}

.footer a { color: white; }

.legal {
  width: min(57.5rem, calc(100% - 2rem));
  margin: 44px auto 80px;
}

.legal h2 { margin-top: 34px; }

.article-page .lead {
  max-width: none;
  font-size: 1.12rem;
}

.article-page p,
.article-page li {
  font-size: 1rem;
}

@media (max-width: 54rem) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav { flex-wrap: wrap; gap: 14px; }

  .hero,
  .tool-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; padding-top: 36px; }
  .controls { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .dropzone { display: none; }
}

/* Ergebnis-Bereich: optimierte Bilder inline, mobil direkt speichern/teilen */
.results {
  margin-top: 32px;
}

.results h2 {
  margin-bottom: 6px;
}

.results-hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.result-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 8px;
  background: #eef5f3;
}

.result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.result-info strong {
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

.result-share,
#zip-button {
  width: 100%;
}
