/* Black Forest Rides – interim one-pager
   Design tokens taken from the bfrides.com Shopify "Impulse" theme. */

@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");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
}

:root {
  --c-bg: #000;
  --c-bg-2: #111;
  --c-text: #fff;
  --c-text-2: #d9d9d9;
  --c-border: #2b2a27;
  --c-red: #e20335;
  --c-red-dark: #b8022a;
  --c-red-bright: #ff2a4f; /* logo red lightened for text on dark (WCAG AA) */

  --font-head: "Fjalla One", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1200px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(2rem, 7vw, 2.8rem);
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--c-text);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--c-red-bright);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--c-red-bright);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--c-border);
}

.muted {
  color: var(--c-text-2);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header__logo {
  width: 140px;
}

@media (min-width: 768px) {
  .site-header__logo {
    width: 200px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  padding: 240px 0 56px;
  background: var(--c-bg-2);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: min(70vh, 650px);
    padding-top: 160px;
  }
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Soft dark fades behind the text corners so it stays readable on any photo:
     header/logo + "Website im Umbau" note at the top, headline + buttons at the bottom left. */
  background:
    linear-gradient(to bottom, rgb(0 0 0 / 75%) 0%, rgb(0 0 0 / 50%) 30%, rgb(0 0 0 / 0%) 50%),
    linear-gradient(to top, rgb(0 0 0 / 85%) 0%, rgb(0 0 0 / 60%) 50%, rgb(0 0 0 / 20%) 100%);
}

@media (min-width: 768px) {
  .hero::after {
    background:
      radial-gradient(ellipse 55% 55% at 100% 0%, rgb(0 0 0 / 85%) 0%, rgb(0 0 0 / 55%) 45%, rgb(0 0 0 / 0%) 100%),
      radial-gradient(ellipse 75% 95% at 0% 100%, rgb(0 0 0 / 85%) 0%, rgb(0 0 0 / 55%) 50%, rgb(0 0 0 / 0%) 100%),
      linear-gradient(to bottom, rgb(0 0 0 / 40%) 0%, rgb(0 0 0 / 0%) 30%),
      rgb(0 0 0 / 15%);
  }
}

.hero__content h1,
.hero__content p {
  text-shadow: 0 1px 12px rgb(0 0 0 / 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__sub {
  font-size: 1.25rem;
  font-weight: 600;
}

.hero__address {
  color: var(--c-red-bright);
  font-weight: 600;
}

/* ---------- "Website im Umbau" note (header, top right) ---------- */

.umbau {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 12px rgb(0 0 0 / 60%);
}

.umbau__tag {
  position: relative;
  z-index: 0;
  padding: 3px 12px;
  margin-left: 4px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: none;
}

.umbau__tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-red);
  transform: skew(-12deg);
}

@media (min-width: 768px) {
  .umbau {
    align-items: flex-end;
    max-width: 27em;
    text-align: right;
  }

  .umbau__tag {
    margin: 0 4px 0 0;
  }
}

/* ---------- Angled buttons (Impulse "angled" style) ---------- */

.btn {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 12px 28px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-red);
  transform: skew(-12deg);
  transition: background-color 0.2s ease;
}

.btn:hover {
  color: #fff;
}

.btn:hover::before {
  background: var(--c-red-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
  padding-left: 6px;
}

.btn:focus-visible::before {
  background: var(--c-red-dark);
}

/* ---------- Komm vorbei tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
}

.tile {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  transition: border-color 0.2s ease;
}

.tile:hover,
.tile:focus-within {
  border-color: var(--c-red-bright);
}

.tile__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tile__body {
  padding: 20px;
}

.tile__body p {
  margin: 0;
  color: var(--c-text-2);
}

@media (min-width: 768px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Hours & contact ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.social {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.social a:hover,
.social a:focus-visible {
  color: var(--c-red-bright);
}

.social svg {
  flex: none;
}

.hours {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}

.hours dt {
  font-weight: 600;
}

.hours dd {
  margin: 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.contact-list__label {
  display: inline-block;
  min-width: 6.5em;
  color: var(--c-text-2);
}

/* Compact, fine-lined info block (modelled on the old bfrides.com footer). */
.info {
  padding: 40px 0;
  font-size: 15px;
  line-height: 1.45;
}

.info h2 {
  margin-bottom: 1em;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.info .muted {
  margin: -0.75em 0 1em;
  font-size: 14px;
}

.info .hours {
  gap: 4px 20px;
}

.info .hours dt {
  font-weight: 400;
  color: var(--c-text-2);
}

.info .contact-list {
  gap: 4px;
}

.info a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.info .social {
  margin-top: 16px;
  gap: 8px 20px;
}

.info .social svg {
  width: 16px;
  height: 16px;
}

.info .split {
  gap: 32px;
}

/* ---------- Legal pages (Impressum & Datenschutz) ---------- */

.legal-page {
  padding: 140px 0 56px;
  background: var(--c-bg);
}

.legal-page__back {
  margin-top: 40px;
}

.legal {
  font-size: 16px;
  color: var(--c-text-2);
}

.legal .container > * {
  max-width: 70ch;
}

.legal h1 {
  color: var(--c-text);
}

.legal h3 {
  margin-top: 1.75em;
  font-size: 1rem;
  color: var(--c-text);
}

.legal a {
  color: var(--c-text-2);
}

.legal a:hover {
  color: var(--c-red-bright);
}

.legal__stand {
  margin-top: 2em;
  color: var(--c-text-2);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--c-border);
  font-size: 0.9rem;
  color: var(--c-text-2);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer__nav {
  display: flex;
  gap: 24px;
}

.site-footer__nav a {
  color: var(--c-text-2);
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 240px 0 56px;
  background: var(--c-bg-2);
}
