/* Katalog-Startseite – Branding wie www.blau-touristik.de (apps/website/app/globals.css) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin.woff2") format("woff2");
}

:root {
  --primary-50: #e6f2fa;
  --primary-100: #b3d7f0;
  --primary-500: #0171b5;
  --primary-700: #015a92;
  --primary-900: #013a5e;
  --magenta: #bb163f;
  --magenta-700: #911033;
  --grau-50: #f6f8fa;
  --grau-200: #e5e7eb;
  --grau-500: #6b7280;
  --grau-600: #4b5563;
  --grau-900: #111827;
  --radius: 12px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--grau-900);
  background: var(--grau-50);
}

a {
  color: var(--primary-700);
}

a:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.katalog-link:focus-visible {
  border-radius: var(--radius);
}

.rahmen {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Kopf ---------------------------------------------------------------------- */
.kopf {
  background: #fff;
  border-bottom: 1px solid var(--grau-200);
}

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo img {
  display: block;
  width: auto;
  height: 44px;
}

.kopf-link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.kopf-link:hover {
  text-decoration: underline;
}

/* Einleitung ---------------------------------------------------------------- */
.einleitung {
  text-align: center;
  padding: 3rem 0 2rem;
}

.einleitung h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.einleitung p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--grau-600);
}

/* Katalogkacheln ------------------------------------------------------------ */
.kataloge {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 280px));
  justify-content: center;
  gap: 2rem 1.5rem;
}

.katalog {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.katalog-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--grau-200);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.katalog-link:hover {
  box-shadow: 0 10px 25px rgb(1 58 94 / 15%);
  transform: translateY(-2px);
}

.cover {
  position: relative;
  display: block;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(160deg, var(--primary-100), var(--primary-50));
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgb(1 58 94 / 30%);
  transition: transform 0.3s ease;
}

.katalog-link:hover .cover img {
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--magenta);
  border-radius: 999px;
}

.katalog-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
}

.katalog-titel {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.katalog-meta {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--grau-500);
}

.knopf {
  display: inline-block;
  margin-top: auto;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--magenta);
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.katalog-text .knopf {
  margin-top: 1rem;
}

.katalog-link:hover .knopf,
.knopf:hover {
  background: var(--magenta-700);
}

.textversion {
  align-self: center;
  font-size: 0.8125rem;
  color: var(--grau-500);
}

.leer {
  text-align: center;
  font-size: 1.125rem;
  color: var(--grau-600);
}

/* Bestellhinweis ------------------------------------------------------------ */
.bestellen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 3.5rem 0 3rem;
  padding: 1.75rem 2rem;
  color: #fff;
  background: var(--primary-700);
  border-radius: var(--radius);
}

.bestellen h2 {
  margin: 0 0 0.25rem;
  font-size: 1.375rem;
  font-weight: 700;
}

.bestellen p {
  margin: 0;
  color: var(--primary-100);
}

.bestellen .knopf:focus-visible {
  outline-color: #fff;
}

/* Fuss ---------------------------------------------------------------------- */
.fuss {
  padding: 1.5rem 0 2rem;
  font-size: 0.875rem;
  color: var(--grau-600);
  border-top: 1px solid var(--grau-200);
  background: #fff;
}

.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.fuss nav {
  display: flex;
  gap: 1.25rem;
}

.fuss a {
  color: var(--grau-600);
}

/* Pruefansicht -------------------------------------------------------------- */
.pruefen {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  background: #fff8e6;
  border: 1px solid #f2c46b;
  border-radius: var(--radius);
  overflow-x: auto;
}

.pruefen h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.pruefen p {
  margin: 0.5rem 0;
}

.pruefen-warnungen {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  color: #8a4b00;
}

.pruefen table {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
}

.pruefen th,
.pruefen td {
  padding: 0.375rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #f2dca8;
}

/* Klein --------------------------------------------------------------------- */
@media (max-width: 560px) {
  .kopf-innen {
    min-height: 60px;
  }

  .logo img {
    height: 34px;
  }

  .einleitung {
    padding: 2rem 0 1.5rem;
  }

  .bestellen {
    padding: 1.5rem;
  }

  .bestellen .knopf {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
