/* ==========================================================
   Schrift-Werkstatt – Stile für eingebettete Rechner (iframes)
   Wird NACH den eigenen Stilen der Rechner geladen und bringt
   sie auf die Farben und Schrift der Website.
   ========================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular/inter-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold/inter-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Black/inter-900.woff2") format("woff2"); font-weight: 800 1000; font-display: swap; }

:root {
  --sw-blue: #2f80fa;
  --sw-amber: #eb9d2a;
  --sw-amber-dark: #cd8407;
  --sw-gold: #b17816;
  --sw-marigold: #f1a82c;
  --sw-flame: #f54e00;
  --sw-moss: #6aa84f;
  --sw-moss-dark: #3f7a29;
  --sw-red: #b8410c;
  --sw-ink: #23251d;
  --sw-olive: #4d4f46;
  --sw-sage: #65675e;
  --sw-ash: #9ea096;
  --sw-line: #bfc1b7;
  --sw-stone: #e5e7e0;
  --sw-linen: #eeefe9;
  --sw-cream: #fdfdf8;
  --sw-paper: #ffffff;
  --sw-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sw-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html, body { background: transparent !important; }
body { font-family: var(--sw-font) !important; color: var(--sw-olive); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--sw-ink); letter-spacing: -0.02em; }
::selection { background: #fbe3bd; }

/* ---------- Tailwind-Farben auf die Palette umlegen ---------- */
/* Text */
.text-white, .text-gray-900, .text-gray-800, .text-slate-200, .text-slate-100 { color: var(--sw-ink) !important; }
.text-gray-700, .text-gray-600, .text-slate-300 { color: var(--sw-olive) !important; }
.text-gray-500, .text-slate-400 { color: var(--sw-sage) !important; }
.text-gray-400, .text-gray-300 { color: var(--sw-ash) !important; }
.text-blue-300, .text-blue-400, .text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800 { color: var(--sw-blue) !important; }
.text-green-200\/60 { color: var(--sw-sage) !important; }
.text-green-400, .text-green-500, .text-green-600 { color: var(--sw-moss-dark) !important; }
.text-red-400, .text-red-500, .text-red-600 { color: var(--sw-red) !important; }
.text-yellow-400, .text-yellow-500 { color: var(--sw-gold) !important; }
.text-purple-400 { color: #7a5bc7 !important; }
.placeholder-gray-300::placeholder, input::placeholder, textarea::placeholder { color: var(--sw-ash) !important; }

/* Flächen */
.bg-white { background-color: var(--sw-paper) !important; }
.bg-gray-50, .bg-gray-100, .bg-blue-50, .bg-blue-50\/30, .bg-slate-900\/60 { background-color: var(--sw-linen) !important; }
.bg-red-100 { background-color: #fbe6dc !important; }
.bg-green-500 { background-color: var(--sw-moss) !important; }
.from-blue-50 { --tw-gradient-from: var(--sw-cream) !important; --tw-gradient-stops: var(--sw-cream), var(--sw-cream) !important; }
.hover\:bg-red-50:hover { background-color: #fdf1ea !important; }
.hover\:bg-green-50:hover { background-color: #f1f7ed !important; }
.hover\:bg-slate-700\/50:hover { background-color: var(--sw-stone) !important; }

/* Primäre Knöpfe → Bernstein */
.bg-blue-600, .bg-gray-900, .btn-primary {
  background-color: var(--sw-amber) !important; color: var(--sw-ink) !important;
  box-shadow: none !important; transform: none !important;
}
.hover\:bg-blue-500:hover, .hover\:bg-blue-700:hover, .hover\:bg-black:hover, .btn-primary:hover {
  background-color: var(--sw-amber-dark) !important; color: var(--sw-ink) !important;
}
.bg-blue-600 *, .bg-gray-900 *, .btn-primary * { color: var(--sw-ink) !important; }

/* Rahmen */
.border-gray-100, .border-gray-200, .border-gray-300, .border-slate-500, .border-slate-600, .border-slate-700,
.border-blue-100, .border-yellow-500\/30 { border-color: var(--sw-line) !important; }
.border-green-500 { border-color: var(--sw-moss) !important; }
.border-gray-900, .hover\:border-gray-900:hover, .focus\:border-gray-800:focus { border-color: var(--sw-ink) !important; }
.hover\:border-gray-400:hover { border-color: var(--sw-ash) !important; }
.focus\:ring-blue-500:focus, .focus\:ring-gray-900:focus { --tw-ring-color: var(--sw-blue) !important; }
.accent-blue-500 { accent-color: var(--sw-blue) !important; }

/* Ecken & Schatten: flach wie die Website */
.rounded-lg, .rounded-xl, .rounded-2xl, .rounded, .rounded-md { border-radius: 4px !important; }
.shadow-sm, .shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl { box-shadow: none !important; }

/* Eingabefelder allgemein */
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  font-family: var(--sw-font);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--sw-blue); outline-offset: 1px; }

/* Eingebettet: keine Bildschirmhöhe erzwingen, damit sich der Rahmen an den Inhalt anpasst */
.min-h-screen { min-height: 0 !important; }
.wrap { min-height: 0 !important; }
.page-overlay { min-height: 0 !important; }
