/*
Theme Name: SaarBiene
Theme URI: https://www.saarbiene.de
Author: Olaf Jorzyk & Codex
Description: Eine warme, regionale WordPress-Seite für die Hobbyimkerei SaarBiene im saarländischen Warndt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: saarbiene
*/

:root {
  --honey: #f2b632;
  --honey-dark: #c98518;
  --forest: #234331;
  --leaf: #5f7d3b;
  --ink: #1f211f;
  --muted: #656b62;
  --cream: #fff8e8;
  --paper: #fffdf8;
  --line: #eadfcb;
  --shadow: 0 18px 46px rgba(31, 33, 31, .12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.62;
}

a {
  color: var(--forest);
  font-weight: 700;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 164px;
  max-height: 70px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
}

.nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus {
  color: var(--honey-dark);
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 24, 16, .86), rgba(13, 24, 16, .26) 62%, rgba(13, 24, 16, .08)),
    var(--hero-image) center right / contain no-repeat,
    linear-gradient(135deg, #17251b, #3d512d 58%, #f3d47b);
}

.hero-content {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffe6a2;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 82px);
}

h2 {
  color: var(--forest);
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  color: var(--forest);
  font-size: 25px;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(20px, 2.2vw, 27px);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--forest);
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.button.alt {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.button.light {
  border-color: var(--honey);
  background: var(--honey);
  color: var(--ink);
}

.section {
  padding: 86px 0;
}

.section.tint {
  background: var(--cream);
}

.section.dark {
  background: var(--forest);
  color: #fff;
}

.section.dark h2,
.section.dark h3 {
  color: #fff;
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 54px;
  align-items: center;
}

.text-stack > * + * {
  margin-top: 20px;
}

.text-stack p {
  margin-bottom: 0;
}

.photo {
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf8, #f4ead4);
  box-shadow: var(--shadow);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo.tall {
  aspect-ratio: 4 / 5;
}

.photo.wide {
  aspect-ratio: 16 / 10;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 10px 24px rgba(31, 33, 31, .06);
}

.card strong {
  color: var(--forest);
}

.price {
  display: inline-block;
  margin-top: 12px;
  color: var(--honey-dark);
  font-size: 27px;
  font-weight: 850;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.fact {
  border-left: 4px solid var(--honey);
  background: rgba(255, 255, 255, .74);
  padding: 18px;
}

.fact b {
  display: block;
  color: var(--forest);
  font-size: 28px;
}

.notice {
  border-left: 5px solid var(--honey);
  background: #fff;
  padding: 22px 24px;
  margin-top: 26px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(135deg, #fffdf8, #f4ead4);
  border-radius: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
  gap: 40px;
  align-items: start;
}

.contact-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li + li {
  margin-top: 10px;
}

.form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form label {
  display: block;
  margin-bottom: 14px;
  color: var(--forest);
  font-size: 15px;
  font-weight: 800;
}

.form input,
.form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid #cfc5b4;
  border-radius: 6px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.success,
.error {
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 750;
}

.success {
  background: #e6f4df;
  color: #244a1f;
}

.error {
  background: #ffe8d9;
  color: #713312;
}

.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 22px;
}

.content {
  max-width: 860px;
  margin: 0 auto;
}

.content h2,
.content h3 {
  margin-top: 38px;
}

.site-footer {
  background: #171916;
  color: #f8f2e3;
  padding: 46px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
}

.footer-inner a {
  color: #ffe29a;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 880px) {
  .site-header {
    position: static;
  }

  .nav-wrap,
  .intro-grid,
  .split,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    display: grid;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 720px;
    background-position: center bottom, center top, center;
    background-size: auto, contain, auto;
  }

  .cards,
  .facts,
  .gallery {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .nav-wrap,
  .section-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 62px 0;
  }

  .brand img {
    width: 138px;
  }

  .hero {
    min-height: 640px;
  }
}
