/* FBUCH – Buchhandlung Echternach, Frankfurt
   Independent stylesheet, built from scratch 2026. No third-party frameworks. */

:root {
  --brand:        #3a6cb5;
  --brand-dark:   #2c5290;
  --brand-darker: #22406f;
  --ink:          #1c2733;
  --muted:        #5a6b7b;
  --line:         #e4e9ef;
  --bg:           #ffffff;
  --bg-soft:      #f4f7fa;
  --bg-brand:     #eef3f9;
  --radius:       14px;
  --shadow:       0 10px 30px rgba(34, 64, 111, .10);
  --wrap:         1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

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

/* Tight, consistent paragraph rhythm */
p { margin: 0 0 0.35em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

strong, .f { font-weight: 800; }
.f { color: var(--brand); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-dark); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 16px;
}
.logo img { height: 42px; width: auto; }
.logo:hover { text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--ink);
}
.nav-toggle svg { display: block; }

.main-nav ul {
  list-style: none; display: flex; gap: 6px; margin: 0; padding: 0;
}
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .98rem;
}
.main-nav a:hover { background: var(--bg-brand); color: var(--brand-dark); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--bg-brand); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--bg-brand) 0%, #ffffff 65%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch;
  padding-top: 20px; padding-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 10px;
  letter-spacing: -.02em;
}
.hero p { font-size: 1.18rem; color: var(--muted); margin: 0 0 7px; max-width: 34ch; }
.hero .note { font-size: 1rem; color: var(--brand-dark); font-weight: 600; }
/* Image fills the text column's height instead of dictating a taller row.
   Absolute positioning keeps it from adding whitespace below the text. */
.hero-media {
  position: relative; min-height: 220px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand-dark); color: #fff; padding: 11px 24px;
  border-radius: 10px; font-weight: 700; font-size: 1rem; border: 0; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-darker); text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 12px 28px; font-size: 1.06rem; }

/* ---------- Sections ---------- */
section { padding: 24px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  font-weight: 800; color: var(--brand); margin: 0 0 5px;
}
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.15; margin: 0 0 6px; letter-spacing: -.01em; }
.lead { font-size: 1.12rem; color: var(--muted); }

.prose-center { max-width: 780px; margin: 0 auto; text-align: center; }

.split {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; object-fit: cover; aspect-ratio: 3 / 2;
}

/* ---------- Aktuelles / callout ---------- */
.callout {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand-darker));
  color: #fff; border-radius: 22px; padding: 22px 19px; text-align: center;
  box-shadow: var(--shadow);
}
.callout .eyebrow { color: #bcd2ef; }
.callout h2 { color: #fff; }
.callout p { color: #dce6f4; font-size: 1.14rem; max-width: 60ch; margin: 0 auto 8px; }
.callout .btn { background: #fff; color: var(--brand-darker); }
.callout .btn:hover { background: #eaf1fa; }

/* ---------- Contact / Impressum ---------- */
.page-head { background: var(--bg-brand); border-bottom: 1px solid var(--line); padding: 20px 0; }
.page-head h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 7px; font-size: 1.25rem; }
.card address { font-style: normal; color: var(--ink); }
.contact-line { margin: 3px 0; }
.contact-line span { color: var(--muted); display: inline-block; min-width: 78px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #c4d0dc; padding: 20px 0; text-align: center; font-size: .95rem;
}
.site-footer a { color: #fff; }
.site-footer .foot-brand { font-weight: 700; color: #fff; margin-bottom: 3px; }
.site-footer nav { margin: 6px 0; }
.site-footer nav a { margin: 0 10px; color: #c4d0dc; }
.site-footer .sister { margin: 3px 0 1px; }
.site-footer .sister a { color: #cfe0f2; }
.site-footer .copy { color: #8ea0b2; margin-top: 4px; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .hero p, .hero-media img { max-width: none; }
  .split, .cards { grid-template-columns: 1fr; gap: 14px; }
  .split.reverse .split-media { order: 0; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul { flex-direction: column; padding: 10px 16px; gap: 2px; }
  .main-nav a { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
