:root {
  --aqua-dark: #3B8378;
  --aqua-light: #42C2BF;
  --navy: #1C263B;
  --navy-dark: #10102F;
  --brass: #96876E;

  --bg: #F6F8F9;
  --surface: #FFFFFF;
  --text: #1C263B;
  --text-muted: #5A6475;
  --border: #DDE3E8;
  --accent: var(--aqua-dark);

  --radius: 10px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10102F;
    --surface: #1C263B;
    --text: #EEF2F5;
    --text-muted: #A9B3C1;
    --border: #2E3A52;
    --accent: var(--aqua-light);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 0;
}

/* Lockup: Logo | Public Apps */
.brand { display: inline-flex; align-items: stretch; gap: 20px; }
.brand-logo { display: block; height: 48px; width: auto; }
.brand-sub {
  display: flex;
  align-items: center;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-sub strong { margin-left: 0.25em; color: var(--aqua-light); font-weight: 700; }

.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 12px; }
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 680px; margin: 0 0 16px; }

.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 24px 0 48px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

a.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card h2 { font-size: 1.1rem; margin: 0 0 8px; }
.tool-card p { margin: 0; color: var(--text-muted); }
.tool-card--placeholder { border-style: dashed; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

[hidden] { display: none !important; }

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

a.brand { color: inherit; text-decoration: none; }
a { color: var(--accent); }

/* ---------- Tool-Seiten ---------- */

.tool { padding-bottom: 48px; }
.back-link { display: inline-block; margin: 20px 0 0; text-decoration: none; font-size: 0.95rem; }
.back-link:hover { text-decoration: underline; }
.tool-head { padding: 16px 0 24px; }
.tool-head h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 16px;
}
.card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 16px; }
.card h3 { font-size: 1rem; margin: 20px 0 10px; }

.step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--aqua-dark);
  color: #fff;
  font-size: 0.9rem;
}

.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.seg button {
  font: inherit;
  font-weight: 600;
  padding: 8px 18px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.seg button[aria-selected="true"] { background: var(--aqua-dark); color: #fff; }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 32px 16px;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop span { color: var(--text-muted); font-size: 0.9rem; }
.drop:hover, .drop.is-drag, .drop:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.fields .field { margin-top: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }

select, .input {
  font: inherit;
  font-size: 0.95rem;
  width: 100%;
  padding: 8px 10px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
select:focus, .input:focus, .btn:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--aqua-dark); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; cursor: pointer; }

.hint { color: var(--text-muted); font-size: 0.88rem; margin: 6px 0 0; }
.muted { color: var(--text-muted); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .col-check { width: 1%; }
.table .examples { max-width: 280px; font-size: 0.88rem; }
.table .input { min-width: 140px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.summary { color: var(--text-muted); font-size: 0.95rem; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--aqua-dark);
  border-radius: 8px;
  background: var(--aqua-dark);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }

.status { margin: 12px 0 0; font-size: 0.95rem; }
.status:empty { display: none; }
.status--ok { color: var(--aqua-dark); }
.status--warn { color: #9A6B12; }
.status--error { color: #B3261E; }

.result { margin-top: 16px; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }

.notice { padding: 12px 16px; margin: 12px 0 0; border-radius: 8px; border-left: 4px solid; }
.notice ul { margin: 8px 0; padding-left: 20px; }
.notice p { margin: 8px 0 0; }
.notice--ok { border-color: var(--aqua-dark); background: color-mix(in srgb, var(--aqua-dark) 10%, transparent); }
.notice--warn { border-color: #C98A1B; background: color-mix(in srgb, #C98A1B 12%, transparent); }
.notice--error { border-color: #B3261E; background: color-mix(in srgb, #B3261E 10%, transparent); }

.info { margin-top: 32px; }
.info h2 { font-size: 1.1rem; }
.info li { margin-bottom: 6px; color: var(--text-muted); }

@media (prefers-color-scheme: dark) {
  .status--ok { color: var(--aqua-light); }
  .status--warn { color: #E7B657; }
  .status--error { color: #F2B8B5; }
}

@media (max-width: 600px) {
  .site-header { padding: 12px 0; }
  .brand { gap: 12px; }
  .brand-logo { height: 32px; }
  .brand-sub { padding-left: 12px; font-size: 1.25rem; }
  .card { padding: 16px; }
  .table .examples { display: none; }
  .table th, .table td { padding: 8px 6px; }
  .table .input { min-width: 110px; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 8px 10px; }
  .downloads .btn { width: 100%; text-align: center; }
}
