/* Cultur Salon – warm, sociable salon atmosphere. System fonts only, no external requests. */
:root {
  --color-accent: #8a2f2b;
  --color-accent-dark: #6d2421;
  --color-ground: #faf6ef;
  --color-paper: #fffdf9;
  --color-text: #2b2420;
  --color-muted: #6f625a;
  --color-line: #e6dccd;
  /* The three circles: music is the accent, literature and encounter */
  --color-literature: #2f4a6b;
  --color-encounter: #a8742a;
  --color-encounter-text: #7a4e14;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --width: 46rem;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-ground);
  color: var(--color-text);
  font: 1.0625rem/1.65 var(--font-serif);
}

a { color: var(--color-accent); text-underline-offset: 0.18em; }
a:hover, a:focus-visible { color: var(--color-accent-dark); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.cs-skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
}
.cs-skip:focus { top: 1rem; }

/* Header and navigation */
.cs-header {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper);
}
.cs-bar {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
}
.cs-brand {
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
}
.cs-claim, .cs-claim p {
  margin: 0;
  color: var(--color-muted);
  font: 0.95rem var(--font-sans);
}
.cs-nav ul {
  list-style: none;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.25rem 1.5rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font: 0.95rem var(--font-sans);
}
.cs-nav a { color: var(--color-text); text-decoration: none; }
.cs-nav a:hover, .cs-nav .is-active > a { color: var(--color-accent); text-decoration: underline; }

/* Home: hero with the three circles (design proposal "A · Drei Kreise") */
.cs-hero {
  border-bottom: 1px solid var(--color-line);
}
.cs-hero-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
}
.cs-hero-text { flex: 1 1 22rem; min-width: 0; }
.cs-hero-figure { flex: 1 1 24rem; min-width: 0; max-width: 32.5rem; margin: 0 auto; }
.cs-hero-figure img { display: block; width: 100%; height: auto; }
.cs-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-accent);
  font: 0.875rem var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-hero-title {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 4rem);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: 0.03em;
}
.cs-hero-slogan {
  margin: 1.25rem 0 0;
  color: #5c4f47;
  font-size: 1.5rem;
  line-height: 1.4;
  font-style: italic;
}
.cs-hero-intro { margin-top: 1.25rem; max-width: 30rem; }
.cs-hero-intro p { margin: 0 0 1.25rem; }

/* Links as buttons (format "Knöpfe"): the first one filled, the others framed */
.cs-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.cs-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.375rem;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  color: var(--color-accent);
  font: 0.95rem var(--font-sans);
  text-decoration: none;
}
.cs-actions a:first-child { background: var(--color-accent); color: var(--color-paper); }
.cs-actions a:hover, .cs-actions a:focus-visible { border-color: var(--color-accent-dark); background: var(--color-accent-dark); color: var(--color-paper); }

/* Home: three columns music, literature, encounter, in the colours of the circles */
.cs-main.cs-main--home { max-width: 64rem; padding-top: 3rem; }
.cs-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}
.cs-pillar { --pillar: var(--color-accent); --pillar-text: var(--color-accent-dark); border-top: 3px solid var(--pillar); padding-top: 1rem; }
.cs-pillar--literature { --pillar: var(--color-literature); --pillar-text: var(--color-literature); }
.cs-pillar--encounter { --pillar: var(--color-encounter); --pillar-text: var(--color-encounter-text); }
.cs-pillar h2 { margin: 0 0 0.5rem; font-weight: normal; font-size: 1.625rem; color: var(--pillar-text); }
.cs-pillar p { margin: 0 0 0.75rem; }
.cs-pillar p:last-child:has(> a:first-child) { font: 0.95rem var(--font-sans); } /* the line of links at the end */
.cs-main--home .cs-content h2 { font-size: 1.875rem; margin: 3rem 0 1.25rem; }

/* Event cards: a dot in the colour of the category (data-category from the events plugin) */
/* .cs-main in front: the plugin loads its stylesheet after the design's. */
.cs-main .tx-events__grid { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1.25rem; }
.cs-main .tx-events--cards .tx-event {
  padding: 1.25rem 1.375rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 6px;
}
.tx-events--cards .tx-event__when { display: flex; align-items: center; gap: 0.5rem; color: var(--event-text, var(--color-accent-dark)); font-family: var(--font-sans); }
.tx-events--cards .tx-event__when::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--event-dot, var(--color-accent));
}
.tx-event[data-category="literature"] { --event-dot: var(--color-literature); --event-text: var(--color-literature); }
.tx-event[data-category="guest-event"] { --event-dot: var(--color-encounter); --event-text: var(--color-encounter-text); }
.tx-events--cards .tx-event__title { font-size: 1.3rem; line-height: 1.3; }

/* The small mark of three circles next to the name, on every page */
/* Inline, not flex: the name keeps its text baseline, so the claim next to it sits on the same line. */
.cs-mark { width: 34px; height: 32px; margin-right: 0.6rem; vertical-align: -0.3em; }

/* Content */
.cs-main {
  flex: 1;
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}
.cs-main h1 { font-weight: normal; font-size: 2.25rem; margin: 0 0 1.25rem; }
.cs-content h2 { font-weight: normal; font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.cs-lead { font-size: 1.2rem; color: var(--color-muted); }

/* Placeholder for blocks whose plugin does not exist yet */
.tx-block-missing {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--color-line);
  border-radius: 6px;
  background: var(--color-paper);
  color: var(--color-muted);
  font: 0.9rem var(--font-sans);
}

/* Footer */
.cs-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-paper);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-muted);
  font: 0.9rem var(--font-sans);
}
.cs-footer p { margin: 0; }
