/* KUKANILEA Webtools — Weltzeit-/Zeitzonen-Umrechner & Countdown-/Meeting-Timer. Eigenständige
   Subdomain, eigenes Mini-Design-System (Brand-Werte aus sites/kukanilea-www/styles.css :root
   übernommen, nicht importiert — volle Unabhängigkeit der Subdomain; identische Tokens wie
   andere Themen). */

:root {
  --cream: #ffffff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #475569;
  --ink-4: #5a6678;
  --line: #e6ebf1;
  --line-2: #cbd5e1;
  --white: #ffffff;
  --paper: #f4f6f9;
  --blue: #1B4965;
  --blue-2: #123449;
  --blue-soft: #d7e3ea;
  --blue-tint: #eef3f6;
  --green: #18553a;
  --green-soft: #e4f1e9;
  --warn-ink: #97491a;
  --warn-soft: #fde9d4;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 0 rgba(15,23,42,.04), 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 1px 0 rgba(15,23,42,.04), 0 12px 28px -16px rgba(15,23,42,.16);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", "IBM Plex Mono", monospace;
  --maxw: 880px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html body [hidden] { display: none; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1080px; }

a { color: var(--blue); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.brand-sub { font-size: 11px; color: var(--ink-4); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.brand-sub.tool-suite { color: var(--blue); }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--ink-3); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--blue); }

.header-actions a.text-link { font-size: 14px; font-weight: 600; text-decoration: none; }

@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
}

/* ── Hero / intro ── */
.tool-hero { padding: 44px 0 8px; }
.tool-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); margin-bottom: 10px;
}
.tool-hero h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.tool-hero p.lede { font-size: 17px; color: var(--ink-3); max-width: 60ch; margin: 0 0 0; }

.privacy-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 22px 0 0;
  padding: 14px 16px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius);
  font-size: 14px; color: var(--blue-2);
}
.privacy-note svg { flex: none; margin-top: 2px; }

/* ── Tool card / workspace ── */
.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 28px 0 40px;
}
.tool-card-title { margin: 0 0 4px; font-size: 17px; }
.tool-card-hint { margin: 0 0 14px; font-size: 14px; color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--blue-2); }
.btn-primary:disabled { background: var(--line-2); color: var(--ink-4); cursor: not-allowed; }
.btn-ghost { background: var(--white); color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; border-color: var(--line-2); color: var(--ink-2); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

.tool-status { font-size: 14px; color: var(--ink-3); }
.tool-status[data-state="error"] { color: var(--warn-ink); }
.tool-status[data-state="done"] { color: var(--green); font-weight: 600; }

/* ── Landing: tool grid ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0 48px;
}
.tool-tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tool-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-soft); }
.tool-tile .tt-icon { color: var(--blue); margin-bottom: 12px; }
.tool-tile h2 { font-size: 16px; margin: 0 0 6px; }
.tool-tile p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  margin-top: 40px;
}
.ft-row {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-4);
}
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-links a { color: var(--ink-4); text-decoration: none; }
.ft-links a:hover { color: var(--blue); }

/* ── Formular (Signatur/vCard) ── */
.job-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-top: 20px;
}
.job-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.job-field.full { grid-column: 1 / -1; }
.job-field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.job-field input[type="text"],
.job-field input[type="url"],
.job-field input[type="email"],
.job-field input[type="tel"],
.job-field textarea,
.job-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
}
.job-field textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.job-field input:focus, .job-field textarea:focus, .job-field select:focus {
  outline: 2px solid var(--blue-soft); border-color: var(--blue);
}
.job-field .field-hint { font-size: 12px; color: var(--ink-4); }
@media (max-width: 640px) {
  .job-form { grid-template-columns: 1fr; }
}

.form-section-title {
  margin: 32px 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-4);
}
.form-section-title:first-child { margin-top: 0; }

/* ── Signatur: Template-Tabs + Farbwahl ── */
.template-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.template-tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--white); color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.template-tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

.color-swatches { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.color-swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0;
}
.color-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--blue); }

/* ── Signatur: Live-Vorschau ── */
.sig-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .sig-layout { grid-template-columns: 1fr; } }

.sig-preview-wrap {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: 20px; overflow: auto;
}
.sig-preview-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 10px; }
.sig-preview { min-height: 90px; }

.sig-html-source {
  width: 100%; min-height: 120px; margin-top: 14px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: 12px/1.5 ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--ink-2); background: var(--paper); resize: vertical;
}

.tool-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }

@media (max-width: 520px) {
  .tool-card { padding: 20px; }
}

/* ── Weltzeit: Zonen-Liste ── */
.zone-add { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.zone-add select {
  flex: 1; min-width: 220px; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-sans);
  color: var(--ink); background: var(--white);
}
.zone-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.zone-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.zone-row-main { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.zone-row .zone-city { font-weight: 700; font-size: 15px; }
.zone-row .zone-name { font-size: 12.5px; color: var(--ink-4); }
.zone-row .zone-time { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--blue); white-space: nowrap; }
.zone-row .zone-date { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.zone-row .zone-offset { font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.zone-row.zone-is-base { border-color: var(--blue-soft); background: var(--blue-tint); }
.zone-remove {
  border: none; background: transparent; color: var(--ink-4); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: var(--radius-sm);
}
.zone-remove:hover { color: var(--warn-ink); background: var(--warn-soft); }

.meeting-planner { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.meeting-planner-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; }
.meeting-planner-row .job-field { flex: 1; min-width: 180px; }

/* ── Timer ── */
.timer-display {
  text-align: center; padding: 48px 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); margin-top: 20px;
}
.timer-clock {
  font-size: clamp(48px, 12vw, 88px); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.timer-clock[data-state="running"] { color: var(--blue); }
.timer-clock[data-state="done"] { color: var(--warn-ink); }
.timer-label { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.timer-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.timer-presets { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.timer-preset {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--white); color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.timer-preset:hover { border-color: var(--blue); color: var(--blue); }
.timer-custom { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.timer-custom input[type="number"] {
  width: 70px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: 14px; text-align: center;
}
.timer-flash { animation: timerFlash 1s ease-in-out infinite; }
@keyframes timerFlash { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
