/* =========================================================
   Ideenbörse – Tailwind CDN Fallbacks (ohne Vite)
   Zweck: dynamische Blade-Klassen + file:* + brand-* Farben
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'SorglosSans';
  src: url('/fonts/sorglos/SorglosSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SorglosSans';
  src: url('/fonts/sorglos/SorglosSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SorglosSans';
  src: url('/fonts/sorglos/SorglosSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SorglosSans';
  src: url('/fonts/sorglos/SorglosSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SorglosHeadline';
  src: url('/fonts/sorglos/SorglosSans-Headline.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html, body {
  font-family: 'SorglosSans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Brand tokens (für Wartbarkeit) ---------- */
:root{
  --brand-primary: #D62828;
  --brand-primaryDark: #B71F1F;
  --brand-grayText: #2B2B2B;
  --brand-grayBg: #F6F7F9;
}

/* ---------- Core brand utility fallbacks ---------- */
.bg-brand-primary { background-color: var(--brand-primary); }
.bg-brand-primaryDark { background-color: var(--brand-primaryDark); }

.text-white { color: #fff; }

.border-brand-primary { border-color: var(--brand-primary); }
.border-brand-primaryDark { border-color: var(--brand-primaryDark); }

/* Hover utilities (":" muss escaped werden) */
.hover\:bg-brand-primaryDark:hover { background-color: var(--brand-primaryDark); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Scale utility */
.scale-105 { transform: scale(1.05); }

/* Focus utilities (Ring-Fallbacks) */
.focus\:outline-none:focus { outline: none; }

/* simple ring-4 fallback (optisch ähnlich, nicht 1:1 Tailwind) */
.focus\:ring-4:focus { box-shadow: 0 0 0 4px rgba(0,0,0,0.10); }

/* brand ring approx: focus:ring-brand-primaryDark/25 */
.focus\:ring-brand-primaryDark\/25:focus { box-shadow: 0 0 0 4px rgba(183,31,31,0.25); }

.focus\:border-brand-primaryDark:focus { border-color: var(--brand-primaryDark); }
.focus\:border-red-500:focus { border-color: #ef4444; } /* Tailwind red-500 approx */
.focus\:ring-red-300:focus { box-shadow: 0 0 0 4px rgba(252,165,165,0.7); } /* red-300 approx */

/* ---------- File input button (ersetzt file:* Klassen) ---------- */
input[type="file"]::file-selector-button {
  background-color: var(--brand-primary);
  color: #ffffff;
  border: 0;
  border-radius: 0.5rem; /* rounded-lg */
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  font-weight: 500;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  background-color: var(--brand-primaryDark);
}

/* ---------- Animation fallback (aus deinem app.css) ---------- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.4s ease-out; }

/* Optional: falls irgendwo diese Custom-Klasse genutzt wird */
.link-underline-anim{
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .2s ease;
}
.link-underline-anim:hover{ background-size: 100% 2px; }
