/* Maker Tools – shared brand styles (landing page + static pages) */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --accent: #8C5DB3;
  --accent-strong: #6d28d9;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #141414;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --border: #262626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; }

.container {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 9999px; filter: blur(80px); }
.blob-top { top: -10rem; left: 50%; transform: translateX(-50%); width: 24rem; height: 24rem; background: rgba(140, 93, 179, 0.22); }
.blob-right { top: 33%; right: -5rem; width: 20rem; height: 20rem; background: rgba(140, 93, 179, 0.12); }

/* Top utility bar (theme + language only) */
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-bottom: clamp(1.5rem, 5vw, 2.5rem); }
.icon-btn, .lang-btn {
  display: flex; align-items: center; gap: 0.375rem;
  border-radius: 9999px; border: 1px solid var(--border);
  background: rgba(245,245,245,0.6); color: var(--foreground);
  padding: 0.375rem 0.625rem; font-size: 0.75rem; font-weight: 500; cursor: pointer;
  font-family: var(--font); transition: background 0.15s;
}
.dark .icon-btn, .dark .lang-btn { background: rgba(38,38,38,0.6); }
.icon-btn:hover, .lang-btn:hover { background: var(--muted); }
.icon-btn { width: 2rem; height: 2rem; justify-content: center; padding: 0; }
.icon-btn svg { width: 16px; height: 16px; }

/* Language dropdown (shared across all pages) */
.lang-wrap { position: relative; }
.lang-btn .globe { width: 14px; height: 14px; color: var(--accent); }
.lang-btn .chev { width: 14px; height: 14px; color: var(--muted-foreground); transition: transform 0.15s; }
.lang-btn.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 0.375rem);
  width: 11rem; border: 1px solid var(--border); background: var(--card);
  color: var(--foreground); border-radius: 0.75rem; padding: 0.25rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); z-index: 30;
}
.lang-item {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.5rem 0.625rem; border: none; background: transparent;
  color: inherit; font-size: 0.875rem; text-align: left; cursor: pointer;
  border-radius: 0.5rem; font-family: var(--font);
}
.lang-item:hover { background: var(--muted); }
.lang-item.active { background: rgba(140, 93, 179, 0.18); }
.lang-item .check { width: 14px; height: 14px; color: var(--accent); margin-left: auto; }

/* Hero — big logo + wordmark, fluid across phone/tablet/desktop */
.hero { margin-bottom: clamp(2rem, 6vw, 3rem); }
.hero-brand {
  display: flex; align-items: center; flex-wrap: wrap; gap: clamp(0.75rem, 3vw, 1.25rem);
  margin-bottom: 0.75rem;
}
.hero-logo { flex-shrink: 0; width: clamp(3rem, 12vw, 4.5rem); }
.hero-logo img { display: block; width: 100%; height: auto; }
.hero-name {
  margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(2rem, 8vw, 3.25rem);
}
.hero-subtitle { margin: 0; color: var(--muted-foreground); font-size: clamp(1rem, 2.5vw, 1.1875rem); max-width: 30rem; }

/* Tool cards */
.tool-list { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.tool-card {
  display: flex; align-items: center; gap: 0.875rem;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 1rem; padding: 1.25rem; text-decoration: none; color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.tool-card.tool-card-separate { margin-top: 1.25rem; }
.tool-card-3d .tool-icon { background: linear-gradient(to bottom right, #fb923c, #ea580c); box-shadow: 0 6px 12px -3px rgba(251, 146, 60, 0.35); }
.tool-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: linear-gradient(to bottom right, #3bd467, #059669);
  color: #fff; box-shadow: 0 6px 12px -3px rgba(59, 212, 103, 0.35);
}
.tool-card-text { min-width: 0; }
.tool-card h2 { margin: 0 0 0.25rem; font-size: 1.0625rem; font-weight: 600; white-space: pre-line; }
.tool-card p { margin: 0; font-size: 0.875rem; color: var(--muted-foreground); }

.coming-soon {
  border: 1px dashed var(--border); border-radius: 1rem; padding: 1.25rem;
  color: var(--muted-foreground); font-size: 0.875rem; text-align: center;
}

/* Install as app */
.install-card {
  margin-top: 1.5rem; border: 1px solid var(--border); background: var(--card);
  border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem;
}
.install-card[hidden] { display: none; }
.install-head { display: flex; align-items: center; gap: 0.875rem; }
.install-card h2 { margin: 0 0 0.25rem; font-size: 1.0625rem; font-weight: 600; }
.install-card p { margin: 0; font-size: 0.875rem; color: var(--muted-foreground); }
.install-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.install-btn {
  border-radius: 0.75rem; padding: 0.625rem 1.125rem; font-size: 0.875rem; font-weight: 600;
  font-family: var(--font); cursor: pointer; transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
.install-btn-primary { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.install-btn-primary:hover { opacity: 0.9; }
.install-btn-ghost { border: 1px solid var(--border); background: transparent; color: var(--foreground); }
.install-btn-ghost:hover { border-color: var(--accent); }

.install-overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(0, 0, 0, 0.6);
}
.install-overlay[hidden] { display: none; }
.install-dialog {
  position: relative; width: 100%; max-width: 26rem; max-height: 90vh; overflow-y: auto;
  background: var(--card); color: var(--foreground); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.5rem;
}
.install-dialog h3 { margin: 0 2rem 1rem 0; font-size: 1.125rem; font-weight: 700; }
.install-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2rem; height: 2rem; border: none;
  border-radius: 9999px; background: transparent; color: var(--muted-foreground);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.install-close:hover { background: var(--muted); color: var(--foreground); }
.install-group + .install-group { margin-top: 1.25rem; }
.install-badge {
  display: inline-block; margin-bottom: 0.5rem; padding: 0.125rem 0.625rem; border-radius: 9999px;
  background: rgba(140, 93, 179, 0.18); color: var(--accent); font-size: 0.75rem; font-weight: 600;
}
.install-group ol { margin: 0; padding-left: 1.25rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Footer */
.site-footer {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.75rem; align-items: center;
  text-align: center; font-size: 0.75rem; color: var(--muted-foreground);
}
.site-footer nav { display: flex; gap: 0.375rem 0.75rem; flex-wrap: wrap; justify-content: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--foreground); }
.affiliate-note { max-width: 32rem; line-height: 1.5; }
.support-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.375rem; font-size: 0.8125rem; }
.support-line svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.site-footer .support-line a { color: var(--accent); font-weight: 500; }
.site-footer .support-line a:hover { color: var(--accent); text-decoration: underline; }

/* Simple static legal/about pages */
.prose { max-width: 40rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; line-height: 1.7; }
.prose h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.125rem; margin-top: 2rem; }
.prose a { color: var(--accent-strong); }
.prose .back-link { display: inline-block; margin-bottom: 2rem; font-size: 0.8125rem; color: var(--muted-foreground); text-decoration: none; }
.prose .back-link:hover { color: var(--foreground); text-decoration: underline; }
/* Sprachblöcke in statischen Seiten: <… data-lang="de|en|fr|es">; html[data-ui] setzt ein kleines Skript im <head> */
[data-lang] { display: none; }
html[data-ui="de"] [data-lang="de"],
html[data-ui="en"] [data-lang="en"],
html[data-ui="fr"] [data-lang="fr"],
html[data-ui="es"] [data-lang="es"],
html:not([data-ui]) [data-lang="en"] { display: revert; }
.placeholder { background: rgba(140, 93, 179, 0.12); border: 1px dashed var(--accent); border-radius: 0.5rem; padding: 0.75rem 1rem; }
