/* Kinderliederpreis Deutschland – Feinschliff V7
   Wird NACH der vorhandenen style.css geladen und verändert nur Details. */

/* Goldene Hauptbuttons: überall klar lesbare schwarze Schrift. */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
button.btn-primary {
  color: #111 !important;
}

/* Lange Mailadressen dürfen auf kleineren Displays sauber umbrechen. */
.contact-card a,
.mailbox a,
.footer a,
a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Überschriften bleiben auf Desktop groß, laufen aber nicht mehr aus dem Layout. */
.page-hero h1,
.hero h1 {
  max-width: 100%;
  text-wrap: balance;
}

.price-idea-title > span {
  display: block;
}

/* Pokale nicht verzerren. */
.page-hero-art img,
.hero-art img,
.trophy-card img,
.award-visual img {
  height: auto;
  object-fit: contain;
}

/* Sprungmarken landen nicht unter dem Kopfbereich. */
section[id],
footer[id] {
  scroll-margin-top: 110px;
}

/* Tastaturbedienung sichtbar machen. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #e3b24b;
  outline-offset: 3px;
}

/* Formulare: Schrift erbt das Seitendesign. */
input,
textarea,
select,
button {
  font: inherit;
}

/* Kleinere Bildschirmbreiten: große Hero-Titel etwas kontrollierter skalieren. */
@media (max-width: 1280px) {
  .page-hero h1 {
    font-size: clamp(3rem, 7vw, 6.2rem) !important;
    line-height: .96;
  }
}

@media (max-width: 900px) {
  .page-hero h1 {
    font-size: clamp(2.7rem, 9vw, 5rem) !important;
  }

  .btn,
  .nav a {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-hero h1 {
    font-size: clamp(2.25rem, 12vw, 4rem) !important;
    line-height: 1;
  }

  .actions {
    gap: 10px;
  }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
