/* ===============================================
   Boote Polch International – Landingpage Styles
   =============================================== */

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
  color: #0e0e0e;
  background: #ffffff;
  display: grid;
  grid-template-rows: 30vh 1fr auto; /* Header 30vh, Main flex, Footer auto */
  min-height: 100dvh;
}

/* Header – full width, ~30vh, background cover */
.site-header {
  position: relative;
  background-image: url("./header-bild.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 30vh; /* safety; also defined by grid row */
  overflow: hidden;
}

/* Main – center the logos both vertically and horizontally */
.main {
  display: flex;
  align-items: center;    /* vertical centering within remaining space */
  justify-content: center;/* horizontal centering */
  padding: 4rem 1.25rem;
}

/* Logo stack: one group/company logo on top, destinations below */
.logo-stack {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 2.5rem;
  justify-items: center;
  width: min(1200px, 100%);
}

/* Company (Firmengruppe) logo */
.company-logo {
  display: block;
  max-width: clamp(200px, 30vw, 380px);
  width: 100%;
  height: auto;
}

/* Destination logo grid */
.destinations {
  display: grid;
  padding-top: 50px;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  justify-items: center;
  width: 100%;

  /* Mobile-first: < 600px = 1 Spalte */
  grid-template-columns: 1fr;
}

.logo-img {
  display: block;
  height: clamp(50px, 2.5vw, 80px); /* Responsive Höhe */
  width: auto;                     /* Breite ergibt sich proportional */
  object-fit: contain;
}

/* ≥ 500px: 2 Spalten */
@media (min-width: 600px) {
  .destinations {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

/* ≥ 1200px: 4 Spalten */
@media (min-width: 1200px) {
  .destinations {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
}

.destination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.2vw, 12px);
  border-radius: 8px;
  transition: transform 160ms ease, filter 160ms ease;
}
.destination:focus-visible,
.destination:focus-within { outline: 2px solid #0d6efd; outline-offset: 4px; border-radius: 10px; }
.destination:hover { transform: translateY(-2px); }

/* Footer – classic with two links */
.site-footer {
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  border-top: 1px solid #e7e7e7;
  font-family: Calibri, Arial, sans-serif; /* as requested */
  font-size: 0.95rem;
  color: #333;
}

.site-footer nav {
  display: inline-flex;
  gap: 1.25rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: currentColor;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .destination { transition: none; }
  .destination:hover { transform: none; }
}
