/* =========================================================
   TRINKAUS & SÖHNE — Imkerei Witten
   Shared Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Dancing+Script:wght@700&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --honey:        #F0B429;
  --honey-dark:   #D49D14;
  --honey-light:  #FDD85D;
  --dark:         #1C1C1B;
  --charcoal:     #2E2D2B;
  --mid:          #5A5751;
  --cream:        #FBF6EC;
  --cream-dark:   #F3ECD9;
  --white:        #FFFFFF;

  --ff-serif:     'Playfair Display', Georgia, serif;
  --ff-sans:      'Barlow', sans-serif;
  --ff-condensed: 'Barlow Condensed', sans-serif;
  --ff-script:    'Dancing Script', cursive;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-hex:   6px;

  --shadow-sm:    0 2px 8px rgba(28,28,27,.08);
  --shadow-md:    0 6px 24px rgba(28,28,27,.12);
  --shadow-lg:    0 16px 48px rgba(28,28,27,.18);
  --shadow-honey: 0 4px 20px rgba(240,180,41,.35);

  --space-xs:     .5rem;
  --space-sm:     1rem;
  --space-md:     2rem;
  --space-lg:     4rem;
  --space-xl:     7rem;

  --nav-h:        72px;
  --max-w:        1140px;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { max-width: 66ch; }

.label {
  font-family: var(--ff-condensed);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mid);
}

.label--honey { color: var(--honey-dark); }
.label--light { color: rgba(255,255,255,.65); }

/* ─── Layout Helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

.section--sm {
  padding-block: var(--space-lg);
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

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

.section--honey {
  background: var(--honey);
  color: var(--dark);
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--dark);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.nav__logo-mark svg {
  width: 36px;
  height: 36px;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__logo-name {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
}

.nav__logo-sub {
  font-family: var(--ff-condensed);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--honey);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-family: var(--ff-condensed);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  transition: color .2s;
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--honey);
  border-bottom-color: var(--honey);
}

.nav__cta {
  font-family: var(--ff-condensed);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--honey);
  color: var(--dark);
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s;
}

.nav__cta:hover {
  background: var(--honey-light);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all .3s;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-condensed);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.btn--primary:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn--outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn--honey {
  background: var(--honey);
  color: var(--dark);
  border-color: var(--honey);
}

.btn--honey:hover {
  background: var(--honey-light);
  box-shadow: var(--shadow-honey);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

/* ─── Honeycomb SVG Decoration ───────────────────────────── */
.hex-deco {
  position: absolute;
  opacity: .06;
  pointer-events: none;
}

/* ─── Section Header ─────────────────────────────────────── */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-top: .5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--mid);
  font-size: 1.1rem;
}

/* ─── Product Cards ──────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--honey);
}

.product-card__visual {
  background: var(--honey);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card__icon {
  width: 80px;
  height: 80px;
  opacity: .2;
  position: absolute;
}

.product-card__name-script {
  font-family: var(--ff-script);
  font-size: 2.4rem;
  color: var(--dark);
  position: relative;
  z-index: 1;
}

.product-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.product-card__tag {
  font-family: var(--ff-condensed);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mid);
}

.product-card__title {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 700;
}

.product-card__desc {
  font-size: .95rem;
  color: var(--mid);
  line-height: 1.6;
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}

.product-card__size {
  font-size: .85rem;
  color: var(--mid);
  font-family: var(--ff-condensed);
  letter-spacing: .08em;
}

.product-card__price {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}

/* ─── Values / Icon Row ──────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.value-item {
  text-align: center;
  padding: var(--space-md);
}

.value-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  background: var(--honey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-item__icon svg {
  width: 22px;
  height: 22px;
  color: var(--dark);
}

.value-item h3 {
  font-size: 1rem;
  margin-bottom: .4rem;
}

.value-item p {
  font-size: .9rem;
  color: var(--mid);
  max-width: 22ch;
  margin-inline: auto;
}

/* ─── Availability Badge ─────────────────────────────────── */
.product-card__badge {
  font-family: var(--ff-condensed);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 2px;
}

.product-card__badge--in {
  background: #e8f7e8;
  color: #2d7a2d;
}

.product-card__badge--out {
  background: var(--cream-dark);
  color: var(--mid);
}

.product-card--unavailable {
  opacity: .6;
  pointer-events: none;
}

.product-card--unavailable .product-card__visual {
  filter: grayscale(1);
}

.order-line--unavailable {
  opacity: .55;
  background: var(--cream) !important;
  border-color: var(--cream-dark) !important;
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 3px;
  background: var(--honey);
  margin-block: 1rem;
}

.divider--center { margin-inline: auto; }

/* ─── Form Styles ────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid--full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-label {
  font-family: var(--ff-condensed);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.form-label--optional::after {
  content: ' (optional)';
  font-weight: 400;
  color: var(--mid);
  text-transform: none;
  letter-spacing: 0;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--ff-sans);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  width: 100%;
  transition: border-color .2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(240,180,41,.15);
}

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

/* ─── Quantity Stepper ───────────────────────────────────── */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.qty-btn:hover { background: var(--honey); }

.qty-input {
  width: 56px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--cream-dark);
  border-right: 2px solid var(--cream-dark);
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  outline: none;
  background: var(--white);
}

/* ─── Order Summary ──────────────────────────────────────── */
.order-summary {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
}

.order-summary h3 {
  font-size: 1rem;
  font-family: var(--ff-condensed);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1.25rem;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .95rem;
}

.order-summary__row:last-child {
  border-bottom: none;
}

.order-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding-top: 1rem;
  margin-top: .5rem;
  border-top: 2px solid var(--honey);
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 700;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .order-summary__total {
    font-size: 1.15rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }

  .order-summary__total span:last-child {
    font-size: 1.6rem;
    color: var(--honey);
  }
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand-name {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin: .75rem 0 .5rem;
}

.footer__tagline {
  font-size: .9rem;
  line-height: 1.6;
  max-width: 28ch;
}

.footer__heading {
  font-family: var(--ff-condensed);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer__link {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer__link:hover { color: var(--honey); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  font-size: .8rem;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal a {
  color: rgba(255,255,255,.45);
  font-size: .8rem;
  transition: color .2s;
}

.footer__legal a:hover { color: var(--honey); }

/* ─── Page Hero ──────────────────────────────────────────── */
.page-hero {
  background: var(--honey);
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero .label { color: var(--honey-dark); margin-bottom: .5rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ─── Impressum / Datenschutz ────────────────────────────── */
.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 .75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 .5rem;
}

.prose p {
  margin-bottom: 1rem;
  font-size: .975rem;
  line-height: 1.75;
  color: var(--charcoal);
  max-width: none;
}

.prose a {
  color: var(--honey-dark);
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner > *:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    align-items: flex-start;
  }

  .nav__links.open { display: flex; }

  .nav__toggle { display: flex; }

  .nav__cta { display: none; }

  .form-grid { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
