/* Einfache Dreamweaver-Vorlage – Navigationssteine sind PNG-Bilder. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Trebuchet MS", Arial, sans-serif; background: #bfe3fc; }
.seite {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, #d5edff 0%, #b6dfff 48%, #c6e8ff 100%);
}
.kopfbereich { position: relative; min-height: 170px; padding: 30px 120px 18px; }
.kopf-logo { position: absolute; top: 30px; left: 24px; width: 90px; height: 90px; }
.kopf-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Die vier Felder haben genau dieselbe Breite und sind zentriert. */
.navigation {
  width: min(100%, 1000px); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center; column-gap: 12px;
}
.navifeld { min-width: 0; display: flex; align-items: center; justify-content: center; }
.navifeld img { width: 100%; height: auto; display: block; object-fit: contain; }
.inhalt { flex: 1 1 auto; min-height: 0; padding: 35px 5%; }
/* Legowand unten, zwei gleich hohe versetzte Reihen */
.legowand { margin-top: auto; padding-top: 12px; overflow: hidden; flex-shrink: 0; }
.steinreihe { display: flex; width: 100%; flex-wrap: nowrap; }

.mauerstein {
  flex: 0 0 10%; height: 72px; position: relative;
  border: 1px solid rgba(0,0,0,.16); border-radius: 5px;
  box-shadow: inset 4px 5px 6px rgba(255,255,255,.4), inset -5px -6px 7px rgba(0,0,0,.2);
}
.mauerstein.gelb { background: #ffd500; }
.mauerstein.gruen { background: #43bb24; }
.mauerstein.blau { background: #0785ec; }
.mauerstein.violett { background: #a43add; }
.mauerstein.rot { background: #f52e35; }
.reihe-oben .mauerstein::before, .reihe-oben .mauerstein::after {
  content: ""; position: absolute; top: -12px; width: 17%; height: 12px;
  border-radius: 5px 5px 2px 2px; background: inherit;
  box-shadow: inset 2px 3px 3px rgba(255,255,255,.35), inset -2px -2px 3px rgba(0,0,0,.15);
}
.reihe-oben .mauerstein::before { left: 14%; }
.reihe-oben .mauerstein::after { left: 69%; }
.reihe-unten { transform: translateX(-5%); }
@media (max-width: 1100px) {
  .kopfbereich { padding-left: 115px; padding-right: 20px; }
  .navigation { column-gap: 6px; }
}
@media (max-width: 650px) {
  .kopfbereich { padding: 115px 15px 10px; min-height: 245px; }
  .kopf-logo { top: 18px; left: 18px; width: 80px; height: 80px; }
  .navigation { max-width: 480px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .mauerstein { height: 55px; }
}


/* Anklickbare PNG-Legosteine */

.navifeld {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.navifeld img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

/* Stein hebt sich leicht */

.navifeld:hover img {
    transform: translateY(-5px);
}

/* Tastaturbedienung */

.navifeld:focus-visible {
    outline: 3px solid #185b99;
    outline-offset: 4px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .navifeld img {
        transition: none;
    }
}


/* Navigation etwas kleiner und dezenter */

.navigation {
    max-width: 760px;
    margin: 0 auto;
    gap: 15px;
}

.navifeld {
    flex: 1 1 0;
    min-width: 0;
}

.navifeld img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


