/* ==========================================================================
   Blumenhaus Flora – Stylesheet
   Design: Inspired by Victorian herbarium notebooks, pressed-flower journals,
   and the quiet atmosphere of a Freiburg greenhouse. Colors drawn from
   aged linen paper, dried sage, terracotta pots, and faded rose petals.
   ========================================================================== */

/* --- Custom Properties -------------------------------------------------- */
:root {
  /* Aged paper & linen tones */
  --bg-primary: hsl(42, 33%, 94%);
  --bg-warm: hsl(38, 28%, 90%);
  --bg-section-alt: hsl(44, 30%, 96%);

  /* Deep botanical greens */
  --ink-dark: hsl(152, 22%, 16%);
  --ink-body: hsl(148, 15%, 28%);
  --ink-muted: hsl(140, 10%, 45%);

  /* Accents: dried rose, terracotta, sage */
  --accent-rose: hsl(8, 32%, 52%);
  --accent-rose-light: hsl(8, 28%, 68%);
  --accent-sage: hsl(138, 16%, 42%);
  --accent-sage-light: hsl(138, 14%, 72%);
  --accent-terracotta: hsl(18, 38%, 48%);

  /* Utility */
  --border-linen: hsl(36, 22%, 78%);
  --border-fine: hsl(36, 18%, 84%);
  --shadow-warm: hsl(34, 20%, 70%);

  /* Typography scale (ratio 1.2 – minor third) */
  --fs-xs: 0.694rem;
  --fs-sm: 0.833rem;
  --fs-base: 1rem;
  --fs-md: 1.2rem;
  --fs-lg: 1.44rem;
  --fs-xl: 1.728rem;
  --fs-2xl: 2.074rem;
  --fs-3xl: 2.488rem;

  --ff-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, 'Georgia', serif;
  --ff-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --ff-mono: 'Courier New', Courier, monospace;

  --lh-tight: 1.25;
  --lh-normal: 1.65;
  --lh-loose: 1.85;

  --max-width: 52rem;
  --gutter: 1.5rem;
}

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

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink-body);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: var(--accent-terracotta);
}
a:focus-visible {
  outline: 2px solid var(--accent-sage);
  outline-offset: 3px;
}

/* --- Utility ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Botanical divider (hand-drawn line feel) --------------------------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 0;
  color: var(--accent-sage-light);
  font-size: var(--fs-sm);
  letter-spacing: 0.3em;
  user-select: none;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 6rem;
  height: 1px;
  background: var(--border-linen);
}

/* --- Header / Navigation ------------------------------------------------ */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-fine);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-logo {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--ink-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.site-logo:hover {
  color: var(--ink-dark);
}
.site-logo .logo-accent {
  color: var(--accent-sage);
  font-style: italic;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink-dark);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}
.site-nav a {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent-terracotta);
  transition: width 0.3s ease;
}
.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--ink-dark);
}

/* --- Hero Section ------------------------------------------------------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-tagline {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-sage);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--ff-serif);
  font-size: var(--fs-3xl);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--ink-dark);
  margin-bottom: 1.5rem;
  max-width: 36rem;
  margin-inline: auto;
}

.hero-desc {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--ink-muted);
  max-width: 30rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero-hours {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  border: 1px solid var(--border-linen);
  padding: 0.6rem 1.5rem;
  background: var(--bg-section-alt);
}

/* --- Section base ------------------------------------------------------- */
.section {
  padding: 4rem 0;
}
.section--alt {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-fine);
  border-bottom: 1px solid var(--border-fine);
}

.section-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-sage);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--ink-dark);
  margin-bottom: 1.5rem;
  line-height: var(--lh-tight);
}

.section-intro {
  max-width: 34rem;
  color: var(--ink-muted);
  line-height: var(--lh-loose);
  margin-bottom: 2.5rem;
}

/* --- Leistungen (Services) ---------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-linen);
  border: 1px solid var(--border-linen);
}

.service-item {
  background: var(--bg-primary);
  padding: 1.75rem 1.5rem;
  position: relative;
}

.service-item .service-number {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--accent-sage-light);
  margin-bottom: 0.5rem;
  display: block;
}

.service-item h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--ink-dark);
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: var(--lh-normal);
}

/* --- Über uns (About) --------------------------------------------------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: var(--lh-loose);
}
.about-text p:last-child {
  margin-bottom: 0;
}

.about-aside {
  border-left: 1px solid var(--border-linen);
  padding-left: 2rem;
}
.about-aside blockquote {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--ink-dark);
  line-height: var(--lh-normal);
  margin-bottom: 1rem;
}
.about-aside cite {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-style: normal;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-philosophy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-fine);
}
.about-philosophy dt {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-sage);
  margin-bottom: 0.35rem;
}
.about-philosophy dd {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin-bottom: 1rem;
  line-height: var(--lh-normal);
}
.about-philosophy dd:last-child {
  margin-bottom: 0;
}

/* --- Öffnungszeiten (Hours) --------------------------------------------- */
.hours-table {
  width: 100%;
  max-width: 28rem;
  border-collapse: collapse;
}
.hours-table tr {
  border-bottom: 1px solid var(--border-fine);
}
.hours-table tr:last-child {
  border-bottom: none;
}
.hours-table td {
  padding: 0.75rem 0;
  font-size: var(--fs-base);
}
.hours-table td:first-child {
  font-family: var(--ff-serif);
  color: var(--ink-dark);
  width: 50%;
}
.hours-table td:last-child {
  font-family: var(--ff-mono);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  text-align: right;
}
.hours-table .closed td:last-child {
  color: var(--accent-rose-light);
}

.hours-note {
  margin-top: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  font-style: italic;
}

/* --- Kontakt (Contact) -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
}
.contact-detail .label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-sage);
  margin-bottom: 0.3rem;
}
.contact-detail .value {
  font-size: var(--fs-base);
  color: var(--ink-dark);
}
.contact-detail .value a {
  color: var(--ink-dark);
  text-decoration: underline;
  text-decoration-color: var(--border-linen);
  text-underline-offset: 0.2em;
}
.contact-detail .value a:hover {
  text-decoration-color: var(--accent-terracotta);
}

.contact-note {
  border: 1px solid var(--border-linen);
  padding: 1.5rem;
  background: var(--bg-section-alt);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--ink-muted);
}
.contact-note strong {
  color: var(--ink-dark);
  font-weight: 600;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-linen);
  padding: 2rem 0;
  background: var(--bg-warm);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  font-family: var(--ff-mono);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: var(--fs-xs);
  font-family: var(--ff-mono);
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-terracotta);
}

/* --- Legal pages (Impressum / Datenschutz) ------------------------------ */
.legal-page {
  padding: 3rem 0 4rem;
}
.legal-page .section-title {
  margin-bottom: 2rem;
}
.legal-page h3 {
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--ink-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.legal-page p,
.legal-page ul {
  margin-bottom: 1rem;
  line-height: var(--lh-loose);
  color: var(--ink-body);
  font-size: var(--fs-sm);
}
.legal-page ul {
  padding-left: 1.25rem;
}
.legal-page li {
  margin-bottom: 0.35rem;
}
.legal-page a {
  color: var(--accent-sage);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
}
.back-link:hover {
  color: var(--accent-terracotta);
}

/* --- Mobile ------------------------------------------------------------- */
@media (max-width: 48rem) {
  :root {
    --fs-3xl: 2rem;
    --fs-2xl: 1.6rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-fine);
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

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

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-aside {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-linen);
    padding-top: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 30rem) {
  :root {
    --gutter: 1.25rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.4rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .section {
    padding: 3rem 0;
  }
}
