:root{
  --page-max: 1200px;
  --gap: clamp(16px, 3vw, 40px);
  --pad: clamp(16px, 4vw, 48px);
}

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

body {
  display: flex;
  flex-direction: column; /* Footer bleibt unten */
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #0b0b0b;
  background-color: #ffffe7;
}

/* Hintergrund oben links */
.bg-corner {
  position: fixed;
  top: 0;
  left: 0;
  width: 35vw; /* Breite relativ zur Fensterbreite */
  height: auto; /* wird von aspect-ratio bestimmt */
  aspect-ratio: 1 / 1; /* falls SVG/PNG ohne feste Höhe */
  background: url('../images/bayern.png') no-repeat top left;
  background-size: contain; /* skaliert vollständig rein */
  background-repeat: no-repeat;
  background-position: top left;
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.bg-corner::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(120px, 24vw, 320px);
  aspect-ratio: 1/1;
  background-image: var(--bg-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  opacity: .15;
}

/* Hauptbereich */
main {
  flex: 1; /* nimmt den verbleibenden Platz ein */
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.content {
  width: 100%;
  max-width: var(--page-max);
  display: grid;
  grid-template-columns: 1fr minmax(220px, 40%);
  gap: var(--gap);
  align-items: center;
}

.text {
  display: grid;
  align-content: start;
  gap: clamp(8px, 1.5vw, 16px);
}
h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  opacity: .9;
}

.hero {
  justify-self: end;
}
.hero img {
  display: block;
  width: clamp(220px, 30vw, 520px);
  height: auto;
  max-width: 100%;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: #555;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
}

footer a {
  color: #2763f6;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 840px) {
  .content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero {
    justify-self: center;
  }
  .text {
    justify-items: center;
  }
}

