* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: #fff; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #444;
}

a { color: inherit; }

/* Startseite: Logo mittig im freien Raum, Links unten am Rand */

.home {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.site-footer {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(577px, calc(100vw - 32px));
}

.brand img {
  display: block;
  height: auto;
}

/* Prozent-Abstände beziehen sich auf die Breite – skalieren also mit */
.brand-hipgun,
.brand-feldifilm { width: 100%; }

.brand-icon {
  width: 13.9%;          /* Originalverhältnis 80 : 577 */
  margin: 10% 0;
}

.links {
  --icon: 24px;
  --gap: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  list-style: none;
  padding: 0 10px 16px;
}

.links a {
  display: block;
  transition: opacity .2s;
}

.links a:hover,
.links a:focus-visible { opacity: .6; }

.links img {
  display: block;
  width: var(--icon);
  height: var(--icon);
}

/* Telefon: größere Icons, alle 7 in einer Reihe (passt ab 340 px Breite) */
@media (max-width: 600px) {
  .links {
    --icon: 32px;
    --gap: 14px;
  }
}

.legal-links {
  font-size: 11px;
  text-align: center;
  color: #999;
}

.legal-links a {
  text-decoration: none;
  margin: 0 6px;
}

.legal-links a:hover { color: #444; }

/* Unterseiten */

body.page {
  justify-content: flex-start;
  padding: 40px 16px;
}

.page main {
  width: 100%;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
}

.page .back {
  display: inline-block;
  margin-bottom: 32px;
}

.page .back img {
  display: block;
  width: 160px;
  height: auto;
}

.page h1 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #333;
}

.page h2 {
  font-size: 16px;
  margin: 28px 0 8px;
  color: #333;
}

.page p,
.page ul { margin-bottom: 12px; }

.page ul { padding-left: 20px; }

.page footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

