/*
 * berbigs-hofladen.de — site styles on top of Bootstrap 5.
 * Patterned background, tan page column with ribbon headings, lettering
 * in the top bar, framed logo panel fixed on the right on large screens.
 */

@font-face {
  font-family: "Poly";
  src: url(/assets/fonts/Poly-Regular.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Balthazar";
  src: url(/assets/fonts/Balthazar-Regular.woff) format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Stardos Stencil";
  src: url(/assets/fonts/StardosStencil-Regular.woff) format("woff");
  font-display: swap;
}

:root {
  --bh-tan: #D1BC7F;
  --bh-green: #486726;

  --bs-body-font-family: Poly, Georgia, serif;
  --bs-body-color: #fff;
  --bs-body-bg: #000;
}

body { background-image: url(/assets/img/background.png); }
@media (min-width: 1024px) {
  /* room for the fixed logo panel: 300px wide, 10px from the right edge */
  body { padding-right: 320px; }
}

a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* ---- Top bar in the page colour, with the lettering ---- */
.navbar { background-color: var(--bh-tan); box-shadow: 0 0 15px rgba(0, 0, 0, .6); }
.logo-berbigs {
  font-family: "Stardos Stencil", serif;
  color: var(--bh-green);
  text-transform: uppercase;
}
.logo-hofladen { font-family: Balthazar, serif; font-variant: small-caps; color: #000; }

/* ---- Tan page column with a shadow ---- */
.page {
  margin: 0 auto;
  max-width: 700px;
  padding: 0 20px 20px;
  color: #000;
  background-color: var(--bh-tan);
  box-shadow: 0 0 15px rgba(0, 0, 0, .6);
}
@media (min-width: 1024px) {
  .page { max-width: 900px; }
}
/* clears the fixed top bar */
.brand-wrap { padding-top: 66px; }

/* ---- Logo panel: in the flow on small screens ---- */
.brand { padding-bottom: 50px; }
.brand h3 {
  margin-bottom: 0;
  font-family: "Stardos Stencil", serif;
  line-height: 25px;
  color: var(--bh-green);
  text-transform: uppercase;
}
.brand h4 { font-weight: bold; color: #000; }
.brand .body { color: #000; }
.brand .body p { margin: 0; }
.brand p > a { word-wrap: break-word; }
.brand p > a::before { content: "» "; }
.brand p > a:link { color: #fff; }
.brand .brand-part { display: inline-block; width: 250px; vertical-align: top; }
.brand .brand-part:first-child { display: block; }

/* ...and fixed in its frame on the right on large screens */
@media (min-width: 1024px) {
  .brand {
    position: fixed;
    top: -130px;
    right: 10px;
    width: 300px;
    padding: 0 20px 50px;
    background-image: url(/assets/img/Rahmen.png);
    background-repeat: no-repeat;
    background-position: center bottom;
  }
  .brand img { margin: 186px 0 0 20px; }
  .brand h3 {
    width: 260px;
    margin-top: 10px;
    padding: 0 20px;
    text-align: center;
  }
  .brand h4 { display: inline-block; margin: 5px 0 0; padding: 0; }
  .brand .body { padding: 0 30px; line-height: 1.2; }
  .brand .brand-part { display: block; width: auto; }
}

/* ---- Ribbon headings ---- */
main > h1,
main > h2 {
  position: relative;
  margin: 30px 0 30px -30px;
  padding: 20px 20px 24px 50px;
  color: #fff;
  border-radius: 0 5px 5px 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .3),
              inset 0 1px 0 rgba(255, 255, 255, .2),
              inset 0 -1px 0 rgba(0, 0, 0, .3);
  background: #6d5e3c;
}
main > :first-child { margin-top: 0; }
/* The folded-back corner of the ribbon */
main > h1::before,
main > h2::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px;
  border-color: transparent #222 #222 transparent;
}
main > h2 { background: #871b10; }
main > h2::before { border-color: transparent #6f0d0d #6f0d0d transparent; }
main > h2::after {
  content: "★";
  position: absolute;
  top: 20px;
  left: 15px;
  font-size: 1em;
  font-weight: bold;
  color: #fc0;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
}
