/* =========================================
   PROFI BASELINE (aus Tailwind-Dump abgeleitet)
   - Tokens: Farben, Typo, Breakpoints, Spacing
   - Base Reset
   - Layout: Container
   - Typography: h1-h3, p, links
   - Forms: input/textarea
   - Buttons
   - Helpers: sr-only
   ========================================= */

/* ---------- Tokens ---------- */
:root {
  /* Typography */
  --font-body: Roboto, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Roboto Condensed", Roboto, system-ui, -apple-system, Segoe UI, sans-serif;

  /* Base sizing */
  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-md: 0.925rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;

  /* Spacing base (Tailwind spacing = 0.25rem) */
  --space: 0.25rem;

  /* Breakpoints */
  --bp-sm: 600px;
  --bp-md: 768px;
  --bp-lg: 1000px;

  /* Grays */
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #313641;
  --gray-base: #1a202c;

  /* Brand */
  --primary: #e2000d;
  --primary-800: #e8333d;
  --primary-400: #f3999e;
  --primary-100: #fce5e7;

  --secondary: #303f48;
  --secondary-400: #acb2b6;
  --secondary-700: #6e797f;
  --secondary-900: #45525a;

  /* Surfaces */
  --bg: #ffffff;
  --text: var(--gray-base);

  /* Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-pill: 9999px;

  /* Focus */
  --focus-ring: 0 0 0 2px color-mix(in oklab, var(--primary) 35%, transparent);

  /* Header */
  --header-height: 64px;
}

/* Dark Mode */
.dark,
.dark * {
  --bg: var(--secondary);
  --text: #ffffff;
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--bp-lg);
  margin-inline: auto;
  padding-inline: calc(var(--space) * 4);
}

.container-lg {
  max-width: var(--bp-lg);
  margin-inline: auto;
  padding-inline: calc(var(--space) * 4);
  padding-bottom: calc(var(--space) * 8);
  background: var(--bg);
}

.container-md {
  max-width: var(--bp-md);
  margin-inline: auto;
  padding-inline: 0;
}
@media (min-width: 600px) {
  .container-md {
    padding-inline: calc(var(--space) * 4);
  }
}

.container-sm {
  max-width: var(--bp-sm);
  margin-inline: auto;
}

.main-content {
  flex: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  margin: 0;
  padding-bottom: calc(var(--space) * 4);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--secondary);
}

.dark h1,
.dark h2,
.dark h3 {
  color: #fff;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.11;
}
@media (min-width: 600px) {
  h1 { font-size: 3rem; line-height: 1; }
}
@media (min-width: 768px) {
  h1 { font-size: 3.75rem; line-height: 1; }
}

h2 {
  font-size: 1.875rem;
  line-height: 1.2;
}
@media (min-width: 600px) {
  h2 { font-size: 2.25rem; line-height: 1.11; }
}
@media (min-width: 768px) {
  h2 { font-size: 3rem; line-height: 1; }
}

h2.teaser {
  font-size: 1.5rem;
  line-height: 1.33;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.33;
}
@media (min-width: 600px) {
  h3 { font-size: 1.875rem; line-height: 1.2; }
}

p {
  margin: 0 0 calc(var(--space) * 4) 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Forms ---------- */
.input,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--secondary-400);
  padding-block: calc(var(--space) * 1.5);
  padding-inline: calc(var(--space) * 4);
  line-height: 1.375;
  border-radius: var(--radius-pill);
  outline: none;
}

textarea {
  min-height: calc(var(--space) * 56);
  border-radius: var(--radius-lg);
  background: var(--bg);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.input:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: var(--gray-600);
  box-shadow: var(--focus-ring);
}

/* ---------- Buttons ---------- */
.btn,
button,
.button {
  height: calc(var(--space) * 12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--space) * 2);
  padding-inline: calc(var(--space) * 6);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
@media (min-width: 600px) {
  .btn, button, .button {
    padding-inline: calc(var(--space) * 4);
  }
}
@media (min-width: 768px) {
  .btn, button, .button {
    height: calc(var(--space) * 10);
  }
}

.btn:hover,
button:hover,
.button:hover {
  text-decoration: none;
  background: var(--primary-800);
}

.btn:disabled,
button:disabled,
.button:disabled {
  cursor: not-allowed;
  background: var(--primary-400);
}

.btn-sm,
.button-small {
  height: calc(var(--space) * 6);
  padding-inline: calc(var(--space) * 2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary-400);
}
.btn-outline:hover {
  background: var(--gray-200);
  border-color: var(--secondary);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--secondary-900);
}

.btn-white {
  background: #fff;
  color: var(--secondary);
}
.btn-white:hover {
  background: var(--gray-100);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  height: calc(var(--space) * 14);
  padding-inline: calc(var(--space) * 8);
  font-size: var(--text-lg);
}

/* ---------- Textbox Cards ---------- */
.textbox {
  border: 1px solid var(--gray-400);
  background: var(--gray-200);
  padding: calc(var(--space) * 8);
  border-radius: var(--radius-sm);
}

.inlineTextboxAnnotation {
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background: var(--primary-100);
  padding: calc(var(--space) * 8);
  border-radius: var(--radius-sm);
}

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* ===========================================
   HEADER
   =========================================== */
.site-header {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: var(--bp-lg);
  margin: 0 auto;
  padding: 0 calc(var(--space) * 4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 40px;
  width: auto;
}

/* Header Navigation */
.header-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1000px) {
  .header-nav {
    display: flex;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 1);
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--space) * 1);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: calc(var(--space) * 3) calc(var(--space) * 4);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus,
.nav-list > li > a.is-active {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 3);
}

.header-action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header-action-btn:hover,
.header-action-btn:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-action-btn svg {
  width: 24px;
  height: 24px;
}

/* Auth Icons */
.header-auth-icons {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 1);
}

.header-auth-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button.header-auth-icon {
  background: none;
  border: none;
  padding: 0;
  color: #fff;
}

.header-auth-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-auth-icon--profile::before {
  content: '';
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.header-auth-icon--logout::before {
  content: '';
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'%3E%3C/path%3E%3Cpolyline points='16 17 21 12 16 7'%3E%3C/polyline%3E%3Cline x1='21' y1='12' x2='9' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.header-auth-icon--logout span {
  display: none;
}

/* Unidy logout button in header */
u-logout-button.header-auth-icon--logout {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 0;
}

u-logout-button.header-auth-icon--logout:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

u-logout-button.header-auth-icon--logout::part(button) {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

u-logout-button.header-auth-icon--logout::part(button):hover {
  background: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: calc(var(--space) * 2);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1000px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================================
   MOBILE NAVIGATION
   =========================================== */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background-color: var(--primary);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: calc(var(--space) * 4) 0;
}

.mobile-nav__list {
  flex: 1;
}

.mobile-nav__link {
  display: block;
  padding: calc(var(--space) * 4) calc(var(--space) * 6);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus,
.mobile-nav__link.is-active {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.mobile-nav__footer {
  padding: calc(var(--space) * 6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1000px) {
  .mobile-nav,
  .mobile-nav-overlay {
    display: none;
  }
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
  background: var(--primary);
  color: #fff;
  padding: calc(var(--space) * 8) 0 calc(var(--space) * 10);
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    padding: calc(var(--space) * 10) 0 calc(var(--space) * 14);
  }
}

/* Hero with image variant */
.hero--with-image {
  background: #fff;
  color: var(--secondary);
  text-align: left;
  padding: calc(var(--space) * 8) 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero--with-image {
    padding: calc(var(--space) * 12) 0;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 6);
  align-items: center;
}

@media (min-width: 768px) {
  .hero__content {
    flex-direction: row;
    gap: calc(var(--space) * 8);
    align-items: center;
  }
}

.hero__text {
  flex: 1;
}

@media (max-width: 767px) {
  .hero__text {
    text-align: center;
  }
}

.hero__image {
  flex: 1;
  max-width: 100%;
}

@media (min-width: 768px) {
  .hero__image {
    flex: 1.2;
    max-width: 55%;
  }
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero__badge {
  display: inline-block;
  padding: calc(var(--space) * 1.5) calc(var(--space) * 4);
  background-color: #fff;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-pill);
  margin-bottom: calc(var(--space) * 4);
}

.hero--with-image .hero__badge {
  background-color: var(--primary);
  color: #fff;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: calc(var(--space) * 3);
  padding-bottom: 0;
  line-height: 1.1;
}

.hero--with-image .hero__title {
  color: var(--secondary);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1000px) {
  .hero__title {
    font-size: 3rem;
  }
}

.hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.9);
  max-width: 550px;
  margin: 0;
  line-height: 1.6;
}

.hero--with-image .hero__subtitle {
  color: var(--gray-600);
}

@media (max-width: 767px) {
  .hero__subtitle {
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: var(--text-lg);
  }
}

/* ===========================================
   CARDS SECTION
   =========================================== */
.cards-section {
  padding: calc(var(--space) * 10) 0;
  background-color: #fff;
}

@media (min-width: 768px) {
  .cards-section {
    padding: calc(var(--space) * 16) 0;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--space) * 4);
}

@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--space) * 6);
  }
}

@media (min-width: 1000px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: calc(var(--space) * 6);
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
  .card {
    padding: calc(var(--space) * 8);
  }
}

.card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto calc(var(--space) * 4);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-100);
  border-radius: var(--radius-pill);
  color: var(--primary);
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

@media (min-width: 768px) {
  .card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto calc(var(--space) * 5);
  }

  .card-icon svg {
    width: 36px;
    height: 36px;
  }
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: calc(var(--space) * 2);
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .card-title {
    font-size: var(--text-xl);
    margin-bottom: calc(var(--space) * 3);
  }
}

.card-text {
  color: var(--gray-600);
  font-size: var(--text-sm);
  margin-bottom: calc(var(--space) * 5);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .card-text {
    font-size: 1rem;
    margin-bottom: calc(var(--space) * 6);
  }
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
  background-color: var(--secondary);
  color: #fff;
  margin-top: auto;
}

.footer-container {
  max-width: var(--bp-lg);
  margin: 0 auto;
  padding: 0 calc(var(--space) * 4);
}

.footer-top {
  padding: calc(var(--space) * 12) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--space) * 10);
}

@media (min-width: 768px) {
  .footer-top .footer-container {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--space) * 4);
}

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: calc(var(--space) * 8);
}

.footer-nav-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: calc(var(--space) * 4);
  color: #fff;
  padding-bottom: 0;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 3);
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 4);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-social {
    align-items: flex-end;
  }
}

.footer-social-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  padding-bottom: 0;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 2);
}

.footer-social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  color: #fff;
  transition: background-color 0.2s ease;
}

.footer-social-links a:hover {
  background-color: var(--primary);
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: calc(var(--space) * 6) 0;
}

.footer-bottom .footer-container {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 4);
  justify-content: center;
}

.footer-legal a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: none;
}

/* ===========================================
   NEWSLETTER WIDGET
   =========================================== */
.card--newsletter-widget {
  background: var(--primary);
  color: #fff;
  border: none;
}

.card--newsletter-widget:hover {
  border-color: transparent;
}

.newsletter-widget {
  text-align: center;
}

.newsletter-widget__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto calc(var(--space) * 4);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  color: #fff;
}

.newsletter-widget__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: calc(var(--space) * 2);
  padding-bottom: 0;
  color: #fff;
}

.newsletter-widget__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: calc(var(--space) * 5);
}

.newsletter-widget__form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 3);
}

.newsletter-widget__input {
  width: 100%;
  padding: calc(var(--space) * 3);
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  background-color: #fff;
  color: var(--gray-base);
  text-align: center;
}

.newsletter-widget__input:focus {
  outline: none;
  border-color: #fff;
}

.newsletter-widget__input::placeholder {
  color: var(--gray-500);
}

.newsletter-widget__btn {
  width: 100%;
  padding: calc(var(--space) * 3);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  background-color: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.newsletter-widget__btn:hover {
  background-color: var(--gray-100);
  color: var(--primary-800);
}

.newsletter-widget__error {
  display: block;
  margin-top: calc(var(--space) * 2);
  font-size: var(--text-sm);
  color: #fff;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.2);
  padding: calc(var(--space) * 2);
  border-radius: var(--radius-sm);
}

.newsletter-widget__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--space) * 2);
  padding: calc(var(--space) * 3);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.newsletter-widget__check {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #10b981;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
}

/* ===========================================
   UNIDY SDK COMPONENT STYLES
   =========================================== */
u-field::part(field_label) {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: calc(var(--space) * 2);
}

u-field::part(input_field),
u-field::part(select_field),
u-field::part(textarea_field) {
  width: 100%;
  padding: calc(var(--space) * 2.5) calc(var(--space) * 4);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--secondary-400);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

u-field::part(input_field):focus,
u-field::part(select_field):focus,
u-field::part(textarea_field):focus {
  outline: none;
  border-color: var(--gray-600);
  box-shadow: var(--focus-ring);
}

u-field::part(required-indicator) {
  color: var(--primary);
  margin-left: calc(var(--space) * 1);
}

u-submit-button::part(button),
u-logout-button::part(button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(var(--space) * 12);
  padding-inline: calc(var(--space) * 6);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

u-submit-button::part(button):hover,
u-logout-button::part(button):hover {
  background-color: var(--primary-800);
}

u-newsletter-checkbox::part(checkbox) {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

/* Flash Messages */
.flash-message {
  position: fixed;
  top: calc(var(--space) * 5);
  left: calc(var(--space) * 5);
  right: calc(var(--space) * 5);
  max-width: 500px;
  z-index: 1000;
  padding: calc(var(--space) * 4) calc(var(--space) * 5);
  background-color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  color: var(--gray-base);
  font-weight: 500;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  animation: flashSlideDown 0.3s ease-out;
}

@keyframes flashSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .flash-message {
    left: auto;
    right: calc(var(--space) * 5);
  }
}

u-flash-message::part(success) {
  background-color: #dcfce7;
  color: #166534;
  padding: calc(var(--space) * 4);
  border-radius: var(--radius-md);
}

u-flash-message::part(error) {
  background-color: #fee2e2;
  color: #991b1b;
  padding: calc(var(--space) * 4);
  border-radius: var(--radius-md);
}
