/* ============================================================================
   gitarredesmonats.de — site.css
   ----------------------------------------------------------------------------
   Eine konsolidierte Stildatei fuer alle 4 Seiten (index, guitarofthemonth,
   impressum, datenschutz). Ersetzt das M.Erbe (bootstrap.min.css,
   theme/style.css, mbr-additional.css, dropdown, socicon, mobirise2, fonts.css).
   Optik unveraendert: Farben, Schriftgroessen und Abstaende sind 1:1 aus
   mbr-additional.css und theme/style.css uebernommen (Stand 2026-07-10).

   Gliederung:
     1. Schriften (@font-face, lokal — DSGVO)
     2. Farbpalette (CSS-Variablen)
     3. Basis (Reset, Grundschrift, Container)
     4. Typografie-Skala
     5. Buttons
     6. Navigation (fixierter Header)
     7. Hero (Startbanner)
     8. Produktvorstellung
     9. Detail-Galerie
    10. Haendlersuche (MUSIK MEYER Dealersearch API)
    11. Rechtsseiten (MUSIK MEYER Webpage API) — optimierte Lesbarkeit
    12. Footer
    13. Nach-oben-Pfeil

   Pflege: Projekt CORT Landingpage-Erneuerung.
   ============================================================================ */


/* ====== 1. Schriften — lokale Webfonts (ersetzt fonts.googleapis.com) ======
   Quelle: Fontsource-Pakete (Google-Fonts-Dateien), Lizenz OFL.
   Open Sans als Variable Font (Gewichte 300-800), Fjalla One statisch 400. */

@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fjalla-one-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fjalla-one-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-latin-ext-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ====== 2. Farbpalette — Werte aus mbr-additional.css =====================
   Aenderungen nur hier; alle Regeln unten greifen auf die Variablen zu. */

:root {
  --schrift-titel:   'Fjalla One', sans-serif;
  --schrift-text:    'Open Sans', sans-serif;

  --farbe-text:      #232323;  /* Grundtext */
  --farbe-hell:      #fafafa;  /* helle Flaechen + heller Text */
  --farbe-akzent:    #ff6666;  /* Buttons, Footer-Links (Mobirise "secondary") */
  --farbe-akzent-hover: #ff0f0f;
  --farbe-link:      #6592e6;  /* Standard-Linkfarbe (Mobirise "primary") */
  --farbe-footer:    #353535;  /* Footer-Hintergrund */
  --farbe-galerie:   #c0b3ad;  /* Hintergrund Detail-Galerie */
  --nav-hintergrund: rgba(0, 0, 0, 0.6);
}


/* ====== 3. Basis ========================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;             /* ersetzt smooth-scroll.js */
}

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-weight: 400;
  line-height: 1.5;
  color: var(--farbe-text);
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--farbe-link);
  text-decoration: none;
  transition: color 0.6s;
}

h1, h2, h3, h4, h5, p { margin: 0 0 1rem; }

*:focus-visible {
  outline: red solid 2px !important;
  outline-offset: 2px !important;
}

/* Zentrierter Inhaltsrahmen — Breitenstufen wie Bootstrap-Container,
   damit der Umbruch dem bisherigen Layout entspricht. */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 0.75rem;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

section {
  position: relative;
  background-color: #ffffff;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  word-wrap: break-word;
}


/* ====== 4. Typografie-Skala ===============================================
   Groessen 1:1 aus mbr-additional.css (display-1/2/4/5/7), inklusive der
   fluiden Verkleinerung auf schmalen Viewports. */

.titel-gross {                          /* vormals display-1 — Hero-H1 */
  font-family: var(--schrift-titel);
  font-size: 3.6rem;
  line-height: 1.1;
  font-weight: 400;
}
.titel-sektion {                        /* vormals display-2 — H2/H3 der Sektionen */
  font-family: var(--schrift-titel);
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 400;
}
.text-hero {                            /* vormals display-5 — Hero-Unterzeile */
  font-family: var(--schrift-titel);
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 400;
}
.text-lauf {                            /* vormals display-7 — Fliesstext */
  font-family: var(--schrift-text);
  font-size: 1.1rem;
  line-height: 1.5;
}
.text-klein {                           /* vormals display-4 — Nav, Footer, Buttons */
  font-family: var(--schrift-text);
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .titel-gross { font-size: 2.88rem; }
}
@media (max-width: 768px) {
  .titel-gross {
    font-size: calc(1.91rem + (3.6 - 1.91) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.1 * (1.91rem + (3.6 - 1.91) * ((100vw - 20rem) / (48 - 20))));
  }
  .titel-sektion {
    font-size: calc(1.56rem + (2.6 - 1.56) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.3 * (1.56rem + (2.6 - 1.56) * ((100vw - 20rem) / (48 - 20))));
  }
  .text-hero {
    font-size: calc(1.14rem + (1.4 - 1.14) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.4 * (1.14rem + (1.4 - 1.14) * ((100vw - 20rem) / (48 - 20))));
  }
  .text-lauf {
    font-size: calc(1.035rem + (1.1 - 1.035) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.4 * (1.035rem + (1.1 - 1.035) * ((100vw - 20rem) / (48 - 20))));
  }
}


/* ====== 5. Buttons ======================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  margin: 0.6rem;
  border: 1px solid var(--farbe-akzent);
  border-radius: 4px;
  background-color: var(--farbe-akzent);
  color: #ffffff;
  font-family: var(--schrift-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
}
.btn:hover,
.btn:focus {
  background-color: var(--farbe-akzent-hover);
  border-color: var(--farbe-akzent-hover);
  color: #ffffff;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
}
.button-zeile { margin: 0 -0.6rem 1.5rem; }   /* gleicht Button-Aussenabstand aus */


/* ====== 6. Navigation — fixierter Header ==================================
   Verhalten wie bisher: fixiert, halbtransparent schwarz, Logo 3rem,
   verkleinert sich beim Scrollen (JS setzt .nav--kurz), Hamburger < 992px. */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 70px;
  padding: 0 1rem;
  background: var(--nav-hintergrund);
  transition: all 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 10px 0;
  transition: all 0.3s;
}
.nav-logo img { height: 3rem; width: auto; transition: all 0.3s; }

/* verkleinerte Leiste nach dem Scrollen (JS) */
.site-nav.nav--kurz { min-height: 60px; }
.site-nav.nav--kurz .nav-logo { min-height: 60px; padding: 0; }
.site-nav.nav--kurz .nav-logo img { height: 2.5rem; }

.nav-menue {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}
.nav-liste {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-liste a {
  display: flex;
  align-items: center;
  padding: 0 0.3em;
  margin: 0.667em 1em;
  color: var(--farbe-hell);
}
.nav-liste a:hover,
.nav-liste a:focus { color: #c7c7c7; }

/* Social-Icons (Inline-SVG statt Socicon-Font) */
.nav-icons {
  display: flex;
  align-items: center;
  padding: 0.3rem 1rem 0;
}
.nav-icons a {
  color: var(--farbe-hell);
  padding: 0.5rem;
  line-height: 1;
}
.nav-icons a:hover { color: #c7c7c7; }
.nav-icons svg { width: 1.5rem; height: 1.5rem; fill: currentColor; display: block; }

/* Hamburger (nur < 992px sichtbar) */
.nav-toggle {
  display: none;
  position: relative;
  width: 31px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-self: center;
}
.nav-toggle span {
  position: absolute;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: var(--farbe-hell);
  transition: all 0.2s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2),
.nav-toggle span:nth-child(3) { top: 8px; }
.nav-toggle span:nth-child(4) { top: 16px; }

@media (max-width: 991.98px) {
  .nav-toggle { display: block; }
  .nav-menue {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  .site-nav.nav--offen { background: #000000; }
  .site-nav.nav--offen .nav-menue { display: flex; }
  .site-nav.nav--offen .nav-toggle span:nth-child(1),
  .site-nav.nav--offen .nav-toggle span:nth-child(4) { width: 0; opacity: 0; right: 50%; top: 8px; }
  .site-nav.nav--offen .nav-toggle span:nth-child(2) { transform: rotate(45deg); }
  .site-nav.nav--offen .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }
  .nav-liste { flex-direction: column; text-align: center; }
  .nav-liste li { margin: auto; }
  .nav-icons { padding: 0.5rem 0; }
}


/* ====== 7. Hero (Startbanner) =============================================
   Beide Sprachversionen nutzen dasselbe Bild (Dateien waren byte-identisch). */

.hero {
  padding: 10rem 0;
  background-image: url('../img/startbanner-gdm-2000x1125.jpeg');
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #000000;
  opacity: 0.4;
}
.hero .container { position: relative; text-align: center; }
.hero h1,
.hero p {
  color: var(--farbe-hell);
  text-align: left;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 strong,
.hero strong { font-weight: 400; }      /* Fjalla One hat nur ein Gewicht */


/* ====== 8. Produktvorstellung ============================================= */

.produkt {
  padding: 7rem 0;
  background-color: var(--farbe-hell);
}
.produkt-zeile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.produkt-text { flex: 1 1 0; min-width: 0; padding-right: 2rem; }
.produkt-bild { flex: 0 0 41.666667%; max-width: 41.666667%; }   /* wie col-lg-5 */
.produkt-bild img { width: 100%; object-fit: cover; }
.produkt-text h2 { margin-bottom: 1.5rem; }
.produkt-text .text-lauf { margin-bottom: 1.5rem; text-align: left; }

@media (max-width: 991.98px) {
  .produkt-text,
  .produkt-bild { flex: 0 0 100%; max-width: 100%; }
  .produkt-text { padding: 0 1rem; }
}


/* ====== 9. Detail-Galerie ================================================= */

.galerie {
  padding: 6rem 0;
  background-color: var(--farbe-galerie);
}
/* Desktop: Galerie breiter, damit die Karten ~1.5x groesser werden (Platz aus den Spalten + mehr Breite) */
@media (min-width: 1200px) {
  .galerie .container { max-width: 1640px; }
}
.galerie-raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;                            /* engere Spalten -> Platz fuer groessere Karten */
  margin-top: 1.5rem;
  align-items: stretch;                 /* alle Karten gleich hoch, unabhaengig vom Beschriftungstext */
}
@media (max-width: 991.98px) {
  .galerie-raster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  /* Einspaltig: Karten stehen fuer sich, klarer Abstand dazwischen */
  .galerie-raster { grid-template-columns: 1fr; gap: 2.5rem; }
}
.galerie-karte {
  margin: 0;                            /* Browser-Standardrand des figure entfernen (Fix 2026-07-31) */
  display: flex;
  flex-flow: column nowrap;
  border-radius: 4px;
  overflow: hidden;
  background: var(--farbe-hell);
}
.galerie-karte img { width: 100%; display: block; }   /* Motiv natuerlich, unbeschnitten (3:2) */
/* Beschriftung fuellt die Resthoehe und zentriert -> alle Karten gleich hoch */
.galerie-karte figcaption {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;               /* Headline ueber Benefit-Zeile */
  align-items: center;
  justify-content: flex-start;          /* oben ausrichten: alle Headlines auf einer Hoehe, gleicher Abstand zum Bild */
  padding: 1.5rem 1.25rem;
  text-align: center;
}
@media (max-width: 991.98px) {
  .galerie-karte figcaption { padding: 1rem; }
}
.galerie-karte figcaption h3 { margin: 0; font-weight: 400; font-size: 1.25rem; }  /* Beschriftung Open Sans 400 */
/* Benefit-Zeile: Major Third (1.25) zur Headline — UI-Komponenten-Skala, Beschluss 2026-07-31 */
.galerie-benefit { margin: 0.5rem 0 0; font-size: 1rem; line-height: 1.5; }
/* Desktop: Karteninhalt ~1.5x (Text + Innenabstand) passend zur groesseren Karte */
@media (min-width: 1200px) {
  .galerie-karte figcaption { padding: 2.25rem 1.875rem; }
  .galerie-karte figcaption h3 { font-size: 1.275rem; }
  .galerie-karte .galerie-benefit { font-size: 1.02rem; }  /* 1.275 / 1.25 */
}


/* ====== 10. Haendlersuche (MUSIK MEYER Dealersearch API) =================
   #dealersearchWrapper wird von der API befuellt; hier nur Kopf + Rahmen. */

.haendler {
  padding: 4rem 0 5rem;                 /* deutsche Startseite */
  background: var(--farbe-hell);
}
.haendler--en { padding: 6rem 0; }      /* englische Seite (wie bisher) */
.haendler-kopf {
  margin-bottom: 1.5rem;
  text-align: center;
}
.haendler-kopf h2 { margin-bottom: 0; }
.haendler-kopf p { margin: 0.5rem 0 0; }


/* ====== 11. Rechtsseiten (MUSIK MEYER Webpage API) ========================
   Inhalt (Impressum/Datenschutz) kommt aus dem DAM; .rechtstext gestaltet
   das eingespeiste Markup. Lesbarkeit gegenueber Altfassung verbessert:
   line-height 1.65 statt 1.5, Absatz- und Ueberschriftenabstaende. */

.rechtsseite {
  padding: 6rem 0;
  background-color: #ffffff;
}
.rechtstext {
  max-width: 75%;
  margin: 0 auto;
  text-align: left;
  line-height: 1.65;
}
.rechtstext p { margin-bottom: 1.1em; line-height: 1.65; }
.rechtstext h1, .rechtstext h2, .rechtstext h3, .rechtstext h4 {
  line-height: 1.25;
  margin: 1.6em 0 0.6em;
}
.rechtstext h1:first-child,
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext ul, .rechtstext ol { margin-bottom: 1.1em; line-height: 1.65; }
.rechtstext li { margin-bottom: 0.35em; }
.rechtstext a { word-break: break-word; }
@media (max-width: 991.98px) {
  .rechtstext { max-width: 100%; }
}


/* ====== 12. Footer ======================================================== */

.site-footer {
  padding: 1rem 0;
  background-color: var(--farbe-footer);
  text-align: center;
}
.footer-menue {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menue li { padding: 0 1rem 1rem; }
.site-footer a { color: var(--farbe-akzent); }
.site-footer a:hover,
.site-footer a:focus { color: #ff0000; }

/* einlaufender Unterstrich beim Hover (wie bisher) */
.site-footer a {
  background-image: none;
  background-size: 10000px 2px;
  background-repeat: no-repeat;
  background-position: -10000px 1.2em;
}
.site-footer a:hover {
  transition: background-position 2s ease-in-out;
  background-image: linear-gradient(currentColor 50%, currentColor 50%);
  background-position: 0 1.2em;
}
.footer-copyright p { margin: 0 0 1rem; }


/* ====== 13. Nach-oben-Pfeil ==============================================
   Erscheint per JS (.pfeil--sichtbar) nach dem Scrollen; Chevron rein in CSS. */

.nach-oben {
  position: fixed;
  bottom: 25px;
  right: 90px;
  z-index: 5000;
  display: none;
}
.nach-oben.pfeil--sichtbar { display: block; }
.nach-oben a {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 60px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.nach-oben a:hover { background-color: rgba(0, 0, 0, 0.4); }
.nach-oben a::before {
  content: "";
  position: absolute;
  width: 27.8%;
  height: 27.8%;
  left: 50%;
  top: 55%;
  border-bottom: 2.5px solid #ffffff;
  border-left: 2.5px solid #ffffff;
  transform: translate(-50%, -50%) rotate(135deg);
}
@media (max-width: 767.98px) {
  .nach-oben { right: 25px; }
}
