/*
 * Bäckerei Goldkruste — Stylesheet
 *
 * Design concept: Editorial broadsheet meets artisan bakery.
 * Inspired by warm morning light through a Munich bakery window,
 * flour-dusted wooden counters, and hand-lettered shop signs.
 *
 * Color palette drawn from: golden bread crusts, rye flour,
 * aged oak shelving, linen aprons, espresso.
 *
 * Typography: Palatino (headings — traditional, slightly calligraphic)
 *             Optima (body — humanist warmth, not clinical)
 *
 * Layout: Single-column editorial, generous whitespace,
 *         typographic ornaments as dividers, no card grids.
 */

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

:root {
  /* Warm flour-dusted surface */
  --flour: hsl(40, 28%, 96%);
  /* Lightly toasted parchment — alt background */
  --parchment: hsl(37, 26%, 91%);
  /* Raw wheat — borders, fine rules */
  --wheat: hsl(38, 30%, 78%);
  /* Golden crust — primary accent */
  --crust: hsl(34, 55%, 50%);
  /* Dark rye crust — headings, strong accent */
  --crust-deep: hsl(22, 48%, 28%);
  /* Walnut wood — body text */
  --walnut: hsl(20, 28%, 22%);
  /* Dark espresso — strongest text */
  --espresso: hsl(15, 22%, 14%);
  /* Smoke — muted/secondary text */
  --smoke: hsl(28, 10%, 50%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Optima, Candara, 'Noto Sans', Calibri, sans-serif;
  background-color: var(--flour);
  color: var(--walnut);
  line-height: 1.75;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

/* Subtle warm-light overlay — morning sun through the shopfront */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 5%, hsla(38, 45%, 87%, 0.55), transparent 52%),
    radial-gradient(ellipse at 85% 90%, hsla(28, 35%, 84%, 0.3), transparent 45%);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ——— Typography ——— */

h1, h2, h3 {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-weight: normal;
  color: var(--espresso);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  color: var(--crust-deep);
}

a {
  color: var(--crust-deep);
  text-decoration-color: var(--wheat);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease;
}

a:hover {
  text-decoration-color: var(--crust);
}

/* ——— Layout ——— */

.container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ——— Header ——— */

header {
  padding: 2.5rem 0 1.75rem;
  text-align: center;
  border-bottom: 1px solid var(--wheat);
}

.header-tagline {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 0.35rem;
}

.header-name {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  color: var(--espresso);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.header-name:hover {
  text-decoration: none;
  color: var(--crust-deep);
}

nav {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

nav a:hover {
  color: var(--crust-deep);
  border-bottom-color: var(--crust);
}

/* ——— Sections ——— */

section {
  padding: 4.5rem 0;
}

/* ——— Hero ——— */

#hero {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

#hero h1 {
  font-size: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 34rem;
  margin: 0 auto;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
  color: var(--crust-deep);
  line-height: 1.85;
}

/* ——— Section Divider ——— */

.divider {
  width: 2.5rem;
  border: none;
  border-top: 2px solid var(--wheat);
  margin: 0 auto;
}

/* ——— Leistungen ——— */

#leistungen {
  background-color: var(--parchment);
}

.leistung {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--wheat);
  align-items: baseline;
}

.leistung:first-of-type {
  border-top: 1px solid var(--wheat);
}

.leistung p {
  color: var(--walnut);
}

/* ——— Über uns ——— */

.about-text {
  max-width: 40rem;
}

.about-text p {
  margin-bottom: 1.1rem;
}

.about-text p:first-of-type {
  font-size: 1.08em;
  color: var(--crust-deep);
}

/* ——— Öffnungszeiten ——— */

#oeffnungszeiten {
  background-color: var(--parchment);
}

.hours {
  max-width: 26rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--wheat);
}

.hours-row:first-child {
  border-top: 1px solid var(--wheat);
}

.hours-row dt {
  font-weight: 600;
  font-size: 0.95rem;
}

.hours-row dd {
  color: var(--crust-deep);
  font-variant-numeric: tabular-nums;
}

.hours-closed dd {
  color: var(--smoke);
  font-style: italic;
}

/* ——— Kontakt ——— */

#kontakt address {
  font-style: normal;
  line-height: 2;
}

#kontakt a {
  color: var(--crust-deep);
}

.kontakt-gap {
  height: 0.75rem;
}

/* ——— Footer ——— */

footer {
  border-top: 1px solid var(--wheat);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--smoke);
}

.footer-legal {
  margin-top: 0.5rem;
}

.footer-legal a {
  color: var(--smoke);
  margin: 0 0.75rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--crust-deep);
  border-bottom-color: var(--crust);
}

/* ——— Legal Pages (Impressum, Datenschutz) ——— */

.legal-page {
  padding: 3rem 0 5rem;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.legal-page p,
.legal-page ul {
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.3rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--smoke);
  border-bottom: 1px solid var(--wheat);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  color: var(--crust-deep);
  border-bottom-color: var(--crust);
}

/* ——— Responsive ——— */

@media (max-width: 640px) {
  .leistung {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  nav {
    gap: 0.75rem 1.25rem;
  }

  section {
    padding: 3rem 0;
  }

  #hero {
    padding: 3.5rem 0 3rem;
  }

  .hours {
    max-width: 100%;
  }

  .hours-row {
    flex-direction: column;
    gap: 0.1rem;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 1rem;
  }

  nav {
    gap: 0.5rem 1rem;
  }

  nav a {
    font-size: 0.72rem;
  }
}
