/* ===== base.css ===== */

@import url("design-tokens.css");

/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

img,
video {
  max-inline-size: 100%;
  block-size: auto;
  display: block;
}

/* ========== LINKS ========== */
a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}

a:hover {
  color: #005b8f;
  text-decoration: underline;
}

main p a:not(.button):not(.text-link),
main li a:not(.button):not(.text-link) {
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
}

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.container-full {
  width: 100%;
  padding-inline: 1rem;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: var(--color-heading);
  margin-bottom: 0.5em;
  font-family: var(--font-heading);
}

p {
  margin-bottom: 1em;
  font-family: var(--font-roboto);
}

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }
.text-color-secondary {
  color: var(--color-secondary);
}

/* ========== BUTTON ========== */
.button {
  display: inline-block;
  background: var(--gradient-button);
  color: var(--color-button-text);
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-poppins);
  font-size: 1rem; /* ← Das ergänzt die fehlende Schriftgröße */
  border: none;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  min-height: 44px;
}

.button:hover {
  transform: scale(1.05);
  color: var(--color-text);
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.rounded { border-radius: 1rem; }
.bg-light { background-color: var(--color-primary-light); }
.bg-accent { background-color: var(--color-accent); }
.text-accent { color: var(--color-accent); }
.border-left-accent { border-left: 6px solid var(--color-heading); }

/* ========== FORM ELEMENTS ========== */
.input {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-roboto);
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* ========== INFO BOX ========== */
.info-box {
  background-color: var(--color-card-bg);
  border-left: 6px solid var(--color-heading);
  padding: 2rem;
  border-radius: 1rem;
  margin-top: 2rem;
  font-family: var(--font-roboto);
}

/* ========== FLEXBOX ========== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ========== SPACING ========== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .flex-md-col {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .card:hover {
    transform: none;
  }
}
