/* ================== 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{
  /* MIN 1.8rem (zooms mit), ideal skaliert mit Viewport, MAX 3.5rem */
  font-size: clamp(1.8rem, 6vw, 5rem);
  line-height: 1.1;
  margin: 0;
  white-space: normal;        /* darf umbrechen */
  text-wrap: balance;         /* schönere Zeilenumbrüche (unterstützte Browser) */
}
#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ü (bewährt groß) */
#menu { display: flex; flex-wrap: wrap; gap: .8em 2em; justify-content: center; padding: .8em 4vw; width: 100%; }
#menu .item { display: inline-block; }
#menu .item a {
  display: inline-block; padding: .6em 1.1em;
  border: 1px solid #ccc; border-radius: .5em; text-decoration: none;
  color: #008; transition: background .2s ease; line-height: 1.2;
}
#menu .item, #menu .item a { font-size: clamp(32px, 5.8vw, 44px); }
#menu .item:hover a, #menu .item a:focus { background: rgba(0,0,0,.08); }

/* 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: 100%; 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: 70%; 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; }

/* ================== MOBILE: Bilder 3× so groß ================== */
/* WICHTIG:
   – Wir überschreiben alle früheren Regeln mit hoher Spezifität und !important.
   – Nur Bilder im Inhaltsbereich (#content), damit Logo/Home nicht betroffen sind. */
@media (max-width: 600px) {
  /* Content nicht einschränken */
  #content { width: 100vw !important; max-width: none !important; margin: 0 !important; }
  #container { padding-left: 2vw; padding-right: 2vw; }

  /* Bilder im Content 3× so groß machen */
  #content img:not(#amazon-badge),
  #content .produktbild,
  #content #agb1,
  #content #agb2 {
    width: 300% !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    margin: 2vh 0 !important;  /* links bündig, kein Auto-Zentrieren */
  }

  /* Horizontal scrollen erlauben, damit nichts abgeschnitten wird */
  html, body, #container, #content { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
}
