/* ==========================================================================
   santichlaus.com – site styles

   Built on Pico CSS (css/pico.min.css – https://picocss.com/docs).
   Pico styles plain HTML elements: text, links, buttons (<a role="button">),
   forms, tables and cards (<article>). This file sets our colours and fonts
   and styles the few blocks that are specific to this page.
   ========================================================================== */


/* ---- 1. Design tokens -------------------------------------------------- */

:root {
  --red:       #A72100;  /* nav bar, badges, eyebrow labels, card top borders */
  --red-dark:  #8D1D00;  /* contact panel, footer, headings, links */
  --red-deep:  #5C1300;  /* text on gold / cream, link hover */
  --cream:     #FFFFCC;  /* text on red, date cards */
  --gold:      #FFCC66;  /* main buttons, labels on red, deadline */
  --gold-soft: #FFF4D1;  /* deadline pill */
  --ink:       #2A1A12;  /* headings and card titles */
  --ink-muted: #4A3628;  /* paragraphs */
  --line:      #E6D3B8;  /* card borders */
  --bg:        #F8EFDC;  /* page background */
  --card:      #FFFCF4;  /* cards */

  --font-sans:  "Alegreya Sans", "Lucida Grande", sans-serif;
  --font-serif: "Alegreya", Georgia, serif;
}


/* ---- 2. Pico theme: Pico's variables mapped to our tokens --------------- */
/* (This selector is the one Pico uses itself, so these values win.) */

[data-theme=light],
:root:not([data-theme=dark]) {
  --pico-font-family: var(--font-sans);
  --pico-font-size: 112.5%;                /* 18px body text on all screens */
  --pico-line-height: 1.55;
  --pico-background-color: var(--bg);
  --pico-color: var(--ink-muted);
  --pico-h1-color: var(--red-dark);
  --pico-h2-color: var(--red-dark);
  --pico-h3-color: var(--ink);
  --pico-text-selection-color: rgba(255, 204, 102, .55);

  /* links and buttons */
  --pico-primary: var(--red-dark);
  --pico-primary-hover: var(--red-deep);
  --pico-primary-underline: currentColor;
  --pico-primary-hover-underline: currentColor;
  --pico-primary-background: var(--red);
  --pico-primary-border: var(--red);
  --pico-primary-hover-background: var(--red-dark);
  --pico-primary-hover-border: var(--red-dark);
  --pico-primary-inverse: var(--cream);
  --pico-primary-focus: var(--red);        /* focus ring */

  /* cards (<article>) */
  --pico-card-background-color: var(--card);
  --pico-card-box-shadow: none;
}

/* Anything inside .on-red sits on a red background: cream text, gold buttons */
.on-red {
  --pico-color: var(--cream);
  --pico-h2-color: var(--cream);
  --pico-primary: var(--cream);             /* links, outline buttons */
  --pico-primary-hover: var(--gold);
  --pico-primary-background: var(--gold);   /* filled buttons */
  --pico-primary-border: var(--gold);
  --pico-primary-hover-background: var(--cream);
  --pico-primary-hover-border: var(--cream);
  --pico-primary-inverse: var(--red-deep);
  --pico-primary-focus: var(--cream);
  color: var(--cream);
}


/* ---- 3. Page frame ------------------------------------------------------ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;   /* in-page links stop below the sticky menu */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

section {
  margin: 0;
}

body > header,
body > main,
body > footer {
  padding-block: 0;
}

/* Content column: 840px wide, centred */
.container {
  max-width: 888px;   /* 840px content + 24px padding on each side */
  padding-inline: 24px;
}


/* ---- 4. Typography ------------------------------------------------------ */

h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.35;
}

/* Small uppercase label above a heading */
.eyebrow {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}

.on-red .eyebrow {
  color: var(--gold);
}

/* Eyebrow + heading + intro text at the top of each section */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.section-head > * {
  margin: 0;
}

.section-head p {
  font-size: 19px;
}


/* ---- 5. Buttons and icons ---------------------------------------------- */
/* Usage: <a role="button" href="…">Text</a>
          add class="outline" for the transparent version, "large" for big */

a[role="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-width: 2px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
}

a[role="button"].large {
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 0 clamp(16px, 4vw, 26px);
  font-size: clamp(16px, 4.5vw, 19px);
}

.icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.large .icon {
  width: 22px;
  height: 22px;
}

/* Text link with an icon in front */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 17px;
}

.icon-link .icon {
  width: 18px;
  height: 18px;
}


/* ---- 6. Header image and menu ------------------------------------------ */

.masthead {
  width: 100%;
  max-width: 864px;
  margin: 0 auto;
  padding: 16px 12px 8px;
}

.masthead h1 {
  max-width: 720px;
  margin: 0 auto;
  line-height: 0;
}

.masthead img {
  display: block;
  width: 100%;
  mix-blend-mode: multiply;   /* lets the image's white background blend into the beige – keep! */
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--red);
  box-shadow: 0 2px 6px rgba(60, 10, 0, .25);
}

.site-nav nav {
  justify-content: center;
  min-height: 56px;
  padding-inline: 8px;
}

.site-nav nav ul {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  margin: 0;
}

.site-nav li {
  padding: 0;
}

.site-nav a {
  margin: 0;
  padding: 12px clamp(8px, 2.5vw, 16px);
  border-radius: 6px;
  color: var(--cream);
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 17px);
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  background-color: rgba(255, 255, 204, .14);
}


/* ---- 7. Sections -------------------------------------------------------- */

.section {
  padding-bottom: 88px;
}

.section > .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Intro (red band at the top) */
.intro {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  text-align: center;
}

.intro > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-block: 64px 72px;
}

.intro > .container > * {
  margin: 0;
}

.intro .section-head {
  align-items: center;
  gap: 14px;
  max-width: none;
}

.intro h2 {
  font-size: clamp(32px, 5vw, 52px);
}

.intro p {
  font-size: 19px;
  line-height: 1.5;
}

.intro p.lead {
  max-width: 620px;
  font-size: 21px;
}

.intro strong {
  color: var(--gold);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Date cards – one column per entry in site.yml → days */
.dates {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 600px;
  padding: 0;
}

.dates li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 16px 6px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--red-deep);
  list-style: none;
}

.dates .weekday {
  font-size: clamp(11px, 3.4vw, 14px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--red-dark);
}

.dates .day {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.1;
}

/* Formular */
#anmeldung {
  padding-top: 88px;
}

#anmeldung > .container {
  gap: 40px;
}

/* Kontakt */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 7vw, 56px) clamp(20px, 5vw, 40px);
  border-radius: 16px;
  background: var(--red-dark);
}

.contact .section-head {
  flex: 1 1 420px;
  min-width: 0;
}

/* Links */
#links {
  padding-bottom: 96px;
}


/* ---- 8. Cards ----------------------------------------------------------- */

/* Responsive card grid: 2 columns on wide screens, 1 on phones */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

#links .cards {
  gap: 16px;
}

/* Pico's <article> card, in our colours */
article {
  margin: 0;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Step card: <article class="step"> with a number badge */
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 4px solid var(--red);
}

.step > * {
  margin: 0;
}

.step a {
  font-weight: 700;
}

.step .icon-link {
  align-self: flex-start;
}

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 22px;
}

/* Yellow "Anmeldeschluss" pill */
.deadline {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #6B2A00;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.deadline .icon {
  width: 18px;
  height: 18px;
}

/* Link card: the whole card is one link */
.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  line-height: 1.2;
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--red);
  color: var(--ink);
}

.link-card .title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.link-card .domain {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}


/* ---- 9. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--red-dark);
  line-height: 1.35;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 40px;
}

.site-footer p {
  margin: 0;
  font-size: 15px;
}

.site-footer .motto {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
}
