/* ==========================================================================
   reiterlounge.de – Design
   Keine externen Schriften oder Ressourcen (DSGVO), alles lokal.
   Farben: Braun aus dem Logo (#422507), Sattelbraun (#b8834c), Creme.
   ========================================================================== */

:root {
  --braun:      #422507;
  --braun-hell: #7a4a1a;
  --sattel:     #b8834c;
  --sand:       #f3e6d2;
  --creme:      #fffaf0;
  --gelb:       #fff9c0;
  --text:       #2e2418;
  --link:       #9a4a0c;
  --rand:       #e3d3bb;
  --breite:     1100px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sattel);
  color: var(--text);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}

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

a { color: var(--link); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--braun); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--braun); color: #fff; padding: .5em 1em;
}
.skip-link:focus { left: 0; }

/* ---------- Kopf ---------- */

#kopf { background: #fff; border-bottom: 4px solid var(--braun); }

.kopf-leiste {
  max-width: var(--breite); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.marke { display: block; line-height: 0; }
.marke img { display: block; }
.claim {
  margin: 0; color: var(--braun-hell); font-style: italic; font-size: 1.1rem;
}

.hauptmenue { background: var(--braun); }
.hauptmenue ul {
  max-width: var(--breite); margin: 0 auto; padding: 0 12px;
  list-style: none; display: flex; flex-wrap: wrap;
}
.hauptmenue a {
  display: block; padding: .7em 1.1em; color: #fff; text-decoration: none;
  font: 600 .95rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .02em; text-transform: uppercase;
}
.hauptmenue a:hover, .hauptmenue a:focus { background: var(--braun-hell); }
.hauptmenue a[aria-current="page"] { background: var(--sattel); color: var(--braun); }

/* ---------- Seitenaufbau ---------- */

#seite {
  max-width: var(--breite); margin: 24px auto; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px;
  align-items: start;
}

#inhalt {
  background: var(--creme); padding: 28px 32px 32px;
  border-radius: 6px; box-shadow: 0 2px 8px rgba(66, 37, 7, .25);
}

#inhalt::after { content: ""; display: block; clear: both; }

h1, h2, h3, h4 { color: var(--braun); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 .6em; }
h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
h4 { font-size: 1.05rem; margin: 1.3em 0 .4em; }

p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .3em; }

/* Bilder im Text: links oder rechts neben dem Text */
.alignleft  { float: left;  margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter, .alignnone { display: block; margin: 1em auto; }
#inhalt img { border-radius: 4px; }

/* Tipp-Kästen ("Hast du gewusst?" / "Tipp:") */
.tipp {
  background: var(--gelb); border-left: 4px solid var(--sattel);
  padding: .8em 1.1em; margin: 1.2em 0; border-radius: 0 4px 4px 0;
}
.tipp p:last-child { margin-bottom: 0; }

/* ---------- Seitenleiste ---------- */

#seitenleiste { display: grid; gap: 18px; }

.box {
  background: var(--creme); border-radius: 6px; padding: 14px 18px 12px;
  box-shadow: 0 2px 8px rgba(66, 37, 7, .25);
  font: .95rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.box h2 {
  margin: 0 0 .6em; padding-bottom: .4em; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 2px solid var(--sattel);
}
.box h2 a { color: inherit; text-decoration: none; }
.box ul { list-style: none; margin: 0; padding: 0; }
.box li { margin: 0; border-bottom: 1px solid var(--rand); }
.box li:last-child { border-bottom: 0; }
.box li a { display: block; padding: .5em 0; text-decoration: none; }
.box li a:hover, .box li a:focus { color: var(--braun); text-decoration: underline; }
.box a[aria-current="page"] { font-weight: 700; color: var(--braun); }

/* Reitkleidung-Navigation mit den kleinen Symbolen */
.box-reitkleidung { background: var(--gelb); }
.box-reitkleidung li a {
  display: flex; align-items: center; gap: 12px; padding: .45em .2em;
  font-weight: 600; font-size: 1rem;
}
.box-reitkleidung li a img {
  width: 36px; height: 36px; flex: none;
  transition: transform .15s;
}
.box-reitkleidung li a:hover img,
.box-reitkleidung li a:focus img { transform: scale(1.15) rotate(-4deg); }

/* ---------- Beitragslisten (Startseite, Kategorien) ---------- */

.beitrag-liste { list-style: none; margin: 0; padding: 0; }
.beitrag-liste > li { margin: 0; border-bottom: 1px solid var(--rand); }
.beitrag-liste > li:last-child { border-bottom: 0; }

.beitrag-karte {
  display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px;
  padding: 18px 0; align-items: start;
}
.beitrag-karte img {
  width: 100px; height: 100px; object-fit: cover; border-radius: 6px;
  border: 2px solid var(--rand);
}
.beitrag-karte h2 { margin: 0 0 .3em; font-size: 1.2rem; }
.beitrag-karte h2 a { text-decoration: none; }
.beitrag-karte h2 a:hover { text-decoration: underline; }
.beitrag-karte p { margin: 0; }
.beitrag-karte .kategorie {
  display: inline-block; margin-bottom: .3em; font: 600 .75rem/1 system-ui, Arial, sans-serif;
  text-transform: uppercase; letter-spacing: .08em; color: var(--braun-hell);
}
.weiter { font-weight: 700; white-space: nowrap; }

.einleitung { font-size: 1.1rem; color: var(--braun-hell); }

/* ---------- Brotkrümel und Artikel-Navigation ---------- */

.brotkrumen { font: .85rem/1.3 system-ui, Arial, sans-serif; margin: 0 0 1.4em; color: var(--braun-hell); }
.brotkrumen a { color: inherit; }

.artikel-navigation {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--rand);
  font: .95rem/1.4 system-ui, Arial, sans-serif; clear: both;
}

/* ---------- Amazon-Anzeigen ---------- */

.produkt-hinweis, .produkt-liste {
  position: relative; clear: both; margin: 1.8em 0;
  background: #fff; border: 1px solid var(--rand); border-top: 3px solid var(--sattel);
  border-radius: 4px; padding: 1em 1.2em;
  font: .95rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.label {
  position: absolute; top: -1px; right: 0; padding: 2px 9px;
  background: var(--sand); color: var(--braun-hell);
  font: 600 .7rem/1.5 system-ui, Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em;
}
.produkt-hinweis p { margin: 0 0 .7em; }
.produkt-hinweis p:last-child { margin-bottom: 0; }

.button {
  display: inline-block; padding: .55em 1.2em; border-radius: 4px;
  background: var(--braun); color: #fff; text-decoration: none; font-weight: 600;
}
.button:hover, .button:focus { background: var(--braun-hell); color: #fff; }

.produkt-liste h2 { margin: 0 0 .6em; font-size: 1.05rem; }
.produkt-liste ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px;
}
.produkt-liste li { margin: 0; }
.produkt-liste li a {
  display: flex; flex-direction: column; gap: .25em; height: 100%;
  padding: .8em 1em; background: var(--creme); border: 1px solid var(--rand);
  border-radius: 4px; color: var(--text); text-decoration: none;
}
.produkt-liste li a:hover, .produkt-liste li a:focus {
  border-color: var(--sattel); background: var(--gelb);
}
.produkt-liste strong { color: var(--braun); }
.produkt-liste span { font-size: .9rem; color: #5b4b39; }
.produkt-liste em { margin-top: auto; padding-top: .4em; font-style: normal; font-weight: 600; color: var(--link); }

/* ---------- Fuß ---------- */

#fuss {
  background: var(--braun); color: #e9d9c0; text-align: center;
  padding: 22px 20px 26px; font: .9rem/1.5 system-ui, Arial, sans-serif;
}
#fuss p { margin: 0 0 .6em; }
#fuss a { color: #fff; }
.fuss-links a { margin: 0 .7em; white-space: nowrap; }

/* ---------- Mobil ---------- */

@media (max-width: 860px) {
  #seite { grid-template-columns: minmax(0, 1fr); margin: 14px auto; padding: 0 12px; }
  #inhalt { padding: 20px 18px 24px; }
  #seitenleiste { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  .kopf-leiste { justify-content: center; text-align: center; padding: 8px 12px; }
  .hauptmenue ul { justify-content: center; padding: 0; }
  .hauptmenue a { padding: .75em .8em; font-size: .85rem; }
  /* Bilder im Text nicht mehr umfließen lassen */
  .alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; }
  .beitrag-karte { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .beitrag-karte img { width: 76px; height: 76px; }
  .artikel-navigation { flex-direction: column; }
  .produkt-liste ul { grid-template-columns: 1fr; }
}

@media print {
  #kopf .hauptmenue, #seitenleiste, #fuss, .produkt-hinweis, .produkt-liste, .artikel-navigation { display: none; }
  body { background: #fff; }
  #seite { display: block; }
  #inhalt { box-shadow: none; padding: 0; }
}
