/* ================== Glonicom – style.css (NEU, Fokus: große Bilder mobil) ================== */


/* Reset & Basics */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: auto; min-height: 100%; overflow-x: hidden; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: Arial, sans-serif;
  font-size: clamp(16px, 2.2vh, 18px);
  line-height: 1.5;
  color: #000;
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}
h1 { margin: 0; font-size: min(5vh, 8vw); }

/* Header / Topbar */
#header { display: flex; flex-direction: column; background: #fff; }
#topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2vw; padding: 0 2vw; width: 100%; min-height: 12vh; flex-wrap: nowrap;
}
#logo-wrapper, #home-wrapper { display: flex; align-items: center; flex: 0 0 auto; }
#title-wrapper h1{
  font-size: clamp(1.8rem, 6vw, 5rem);
  line-height: 1.1;
  margin: 0;
  white-space: normal;
  text-wrap: balance;
}
#topbar h1 { font-size: clamp(18px, 4.5vw, 36px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#logo { height: 10vh; width: auto; display: block; }
#home-icon { height: 6vh; width: auto; display: block; }

/* Menü kompakter */
#menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em 1.2em;
  padding: 0.5em 3vw;
  width: 100%;
}

#menu .item {
  display: inline-block;
}

#menu .item a {
  display: inline-block;
  font-size: 20px;
  padding: 0.4em 0.8em;
  border: 1px solid #ccc;
  border-radius: 0.4em;
  text-decoration: none;
  color: #008;
  line-height: 1.2;
  transition: background 0.2s ease;
}

#menu .item:hover a,
#menu .item a:focus {
  background: rgba(0, 0, 0, 0.08);
}

/* === Tablet (600–1024px) === */
@media (min-width: 600px) and (max-width: 1024px) {
  #menu {
    gap: 0.2em 0.2em;
  }

  #menu .item a {
    font-size: clamp(25px, 4vw, 30px);
    padding: 0.2em 0.2em;
  }
}

/* === Smartphone (unter 600px) === */
@media (max-width: 599px) {
  #menu {
    gap: 0.2em 0.2em;
  }

  #menu .item a {
    font-size: clamp(25px, 4vw, 30px);
    padding: 0.2em 0.2em;
  }
}

/* Container / Content */
#container { background: #fed; padding: 4vh 4vw; box-shadow: 0 0 .7em 0 rgba(0,0,0,.5); width: 100%; }
#content { width: min(80vw, 90ch); margin: 0 auto; }
#content p { font-size: 2.5vh; text-align: left; }
#content ul, #content li { font-size: 2.5vh; }
#container h1 { font-size: 3vh; }
#container h2 { font-size: 2.7vh; }

/* Medien – Desktop/Tablet Standard */
img { width: 100%; max-width: 300%; height: auto; display: block; margin: 2vh auto; }
.produktbild { width: 100%; height: auto; display: block; margin: 2vh auto; }
#bild-gedreht { transform: rotate(90deg); display: block; margin: 2vh auto; }
video { width: 100%; height: auto; }
.produktvideo { width: 100%; max-width: 50%; height: auto; display: block; margin: 2vh auto; }

/* Amazon-Badge klein */
#amazon-badge { height: 4vh; width: auto; display: block; margin: 2vh auto 0; }

/* Hörproben (native <audio> robust, iOS) */
figure { display: block; margin: 1rem 0 1.5rem; overflow: visible; }
figcaption { margin: 0 0 .5rem; line-height: 1.3; }
audio {
  display: block; width: 100%; max-width: 100%;
  height: auto; margin: .25rem 0 1.25rem;
  padding-bottom: .5rem; line-height: normal; overflow: visible !important;
}
audio::-webkit-media-controls-enclosure { overflow: visible; }
audio::-webkit-media-controls-panel { padding-bottom: .35rem; }

/* Download-Link groß (falls genutzt) */
a.download {
  display: inline-block;
  font-size: clamp(28px, 5.2vw, 40px);
  line-height: 1.3;
  padding: .4em .6em;
}

/* Footer */
#footer {
  min-height: 15vh;
  display: flex; gap: 1.5em; justify-content: center; align-items: center;
  background: #fff; padding: 2vh 2vw; flex-wrap: wrap;
}
#footer a { color: #008; text-decoration: none; }
#footer a:hover, #footer a:focus { text-decoration: underline; }

  /* Horizontal scrollen erlauben */
  html, body, #container, #content { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
}
