:root{
  --page-max: 1200px;
  --gap: clamp(16px, 3vw, 40px);
  --pad: clamp(16px, 4vw, 48px);
  --panel-shadow: -8px 10px 20px rgba(0,0,0,0.32),  -6px 4px 16px rgba(0,0,0,0.15);
  --panel-filter-shadow: 
      drop-shadow(-8px 10px 20px rgba(0,0,0,0.32))
      drop-shadow(-6px 4px 16px rgba(0,0,0,0.15));
}

html, body { 
  height:100%;
  margin:0;
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #ffffe6;
}

/* Hintergrundbild (vollflächig, fixiert) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../images/background1.jpeg") center/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}
body [role="tooltip"] {
  display: none !important;
}

/* Hintergrund oben links */
.bg-corner {
  position: fixed;
  top: 0;
  left: 0;
  width: 45vw;
  height: auto;
  aspect-ratio: 1 / 1;
  background: url('../images/bayern.png') no-repeat top left;
  background-size: contain;
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

/* Hauptbereich */
main {
  flex: 1;
  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;
  text-align: center;
  gap: clamp(8px, 1.5vw, 16px);
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.content-box {
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  opacity: .9;
  background-color: #008394b0;
  margin: 0 auto;
 /* width: clamp(200px, 60vw, 28em); */
  word-wrap: break-word;
  text-align: center;
  padding: 0.5em;
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
  margin-bottom: 4em;
}
.content-box a { 
  color: #ffffe6;
}


.logo {
  justify-self: center;
}

.logo img {
  display: block;
  width: clamp(220px, 24vw, 520px);
  height: auto;
  max-width: 100%;
  filter: var(--panel-filter-shadow);
}

/* Responsive Layout */
@media (max-width: 640px) {

  :root {
    --brand-size: 100px;
     --fade-opaque: 115px;   /* z.B. 180–280px */

    /* Länge des weichen Übergangs darunter */
    --fade-length: 15px;    /* z.B. 50–90px */

    /* Gesamthöhe des Overlays */
    --fade-height: calc(var(--fade-opaque) + var(--fade-length));
  }

  .content {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 6em;
  }



  .logo {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
  }


  .logo img {
    height: var(--brand-size);
    width: auto;
    display: block;
  }




}
