/* ═══════════════════════════════════════════════════════════════
   feiertageinfo.at - style.css
   Farbschema: Salbei hell | Typo: Inter + DM Sans
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  /* Primärfarben */
  --salbei:        #6faa9e;
  --salbei-dunkel: #5a9488;
  --salbei-hell:   #82c0b4;
  --salbei-bg:     #e8f4f0;
  --salbei-bg2:    #d8ece6;

  /* Flagge / Akzent */
  --rot:           #c84a42;
  --rot-bg:        #fdf1ef;
  --rot-flag:      #ed2939;

  /* Semantische Farben */
  --blau:          #4a8898;
  --blau-bg:       #e6f0f4;
  --gruen:         #3a8a5c;
  --gruen-bg:      #e8f4ec;

  /* Text */
  --text:          #1c2826;
  --text-leicht:   #4a6660;
  --text-muted:    #90aca4;
  --text-invert:   #f0f8f6;

  /* Hintergründe */
  --bg:            #f6faf8;
  --weiss:         #ffffff;

  /* Borders */
  --border:        #d8eae4;
  --border-hell:   #eaf4f0;

  /* Schatten */
  --shadow-sm:     0 1px 3px rgba(28, 40, 38, 0.06);
  --shadow-md:     0 2px 8px rgba(28, 40, 38, 0.08);
  --shadow-lg:     0 4px 20px rgba(28, 40, 38, 0.10);

  /* Radien */
  --r-sm:          4px;
  --r-md:          8px;
  --r-lg:          12px;
  --r-xl:          16px;

  /* Layout */
  --max-w:         1120px;
  --gap:           20px;

  /* Typografie */
  --font-heading:  'Inter', sans-serif;
  --font-body:     'DM Sans', 'Inter', sans-serif;

  /* Hero-Gradient */
  --hero-from:     #82c0b4;
  --hero-to:       #5a9488;
}


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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; border-spacing: 0; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }


/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 0.95rem; font-weight: 700; }
h4 { font-size: 0.85rem; font-weight: 700; }

p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-leicht);
}


/* ── CONTAINER ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}


/* ── HEADER ──────────────────────────────────────────────────── */
.header {
  background: var(--weiss);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.logo-flag span { flex: 1; }
.logo-flag .lf-r { background: var(--rot-flag); }
.logo-flag .lf-w { background: var(--weiss); }

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  line-height: 1;
}

.logo-text small {
  font-weight: 500;
  font-size: 0.62em;
  color: var(--text-muted);
}

/* Hamburger */
.hamburger {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.hamburger span {
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Desktop Navigation */
.nav-desktop {
  display: none;
  gap: 4px;
}

.nav-desktop a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-leicht);
  padding: 6px 12px;
  border-radius: var(--r-md);
  transition: background 0.15s, color 0.15s;
}

.nav-desktop a:hover {
  background: var(--salbei-bg);
  color: var(--salbei-dunkel);
}

.nav-desktop a.active {
  background: var(--salbei-bg);
  color: var(--salbei-dunkel);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--weiss);
  z-index: 99;
  padding: 12px var(--gap);
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-hell);
}

.nav-mobile a:last-child { border: none; }

.nav-mobile a.active {
  color: var(--salbei-dunkel);
}


/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: #fff;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--gap) 28px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 4px;
}

.hero-sub {
  font-size: 0.88rem;
  opacity: 0.92;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 520px;
}

/* Countdown */
.countdown {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.cd-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  font-weight: 600;
  margin-bottom: 2px;
}

.cd-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.cd-date {
  font-size: 0.75rem;
  opacity: 0.85;
}

.cd-box {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.26);
  border-radius: var(--r-md);
  padding: 10px 14px;
  text-align: center;
  line-height: 1;
}

.cd-num {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
}

.cd-unit {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
  margin-top: 2px;
}


/* ── LAYOUT ──────────────────────────────────────────────────── */
.main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.layout {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  display: none;
  width: 300px;
  flex-shrink: 0;
}


/* ── SECTION HEADERS ─────────────────────────────────────────── */
.sh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.sh a {
  font-size: 0.78rem;
  color: var(--salbei);
  font-weight: 600;
}

.sh a:hover { text-decoration: underline; }

.section { margin-bottom: 28px; }


/* ── FEIERTAGE TABLE ─────────────────────────────────────────── */
.ft {
  width: 100%;
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.ft thead th {
  padding: 8px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 2px solid var(--border);
  background: #fafcfb;
}

/* Month rows */
.mr td {
  padding: 9px 12px 5px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-hell);
}

.mr:first-child td { border-top: none; }

/* Data rows */
.ft tbody tr:not(.mr) td {
  padding: 8px 10px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-hell);
  vertical-align: middle;
}

/* Date column */
.dc {
  white-space: nowrap;
  color: var(--text-leicht);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  width: 80px;
}

.dc .w {
  display: inline-block;
  width: 20px;
  font-weight: 700;
  color: var(--text);
  font-size: 0.8rem;
}

/* Day column (desktop only) */
.col-day { display: none; }

/* Name column */
.cn a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
}

.cn a:hover { color: var(--salbei-dunkel); }

/* Badge column */
.cg { width: 88px; }

/* Dimmed rows (weekend) */
tr.dim .dc,
tr.dim .cn a {
  color: var(--text-muted);
}


/* ── BADGES ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ges  { background: var(--rot-bg);     color: var(--rot); }
.badge-reg  { background: var(--blau-bg);    color: var(--blau); }
.badge-alle { background: var(--border-hell); color: var(--text-muted); }

/* Aliase für kompakte Schreibweise in Templates */
.bg { background: var(--rot-bg);     color: var(--rot); }
.br { background: var(--blau-bg);    color: var(--blau); }
.bs { background: var(--border-hell); color: var(--text-muted); }


/* ── TEASER / ZWICKELTAGE ────────────────────────────────────── */
.teaser {
  background: var(--weiss);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gruen);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 16px 20px;
}

.teaser h3 { margin-bottom: 4px; }

.teaser p {
  font-size: 0.82rem;
  line-height: 1.55;
}

.teaser a {
  color: var(--gruen);
  font-weight: 600;
}

.teaser a:hover { text-decoration: underline; }


/* ── BUNDESLAND PILLS ────────────────────────────────────────── */
.bl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bl-pill {
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}

.bl-pill:hover {
  border-color: var(--salbei);
  color: var(--salbei-dunkel);
}


/* ── SCHULFERIEN LIST ────────────────────────────────────────── */
.sf-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sf-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.15s;
}

.sf-item:hover { border-color: var(--salbei); }

.sf-name { font-weight: 600; font-size: 0.85rem; }
.sf-date { font-size: 0.78rem; color: var(--text-muted); }
.sf-arrow { color: var(--text-muted); font-size: 0.8rem; }


/* ── TAGE CHIPS (Demnächst) ──────────────────────────────────── */
.tage-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tage-row::-webkit-scrollbar { display: none; }

.tage-chip {
  flex-shrink: 0;
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 16px;
  min-width: 140px;
  transition: border-color 0.15s;
}

.tage-chip:hover { border-color: var(--salbei); }

.tc-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.tc-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}


/* ── SIDEBAR ─────────────────────────────────────────────────── */
.side-card {
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.side-card h3 { margin-bottom: 10px; }

.side-card li { margin-bottom: 6px; }

.side-card a {
  color: var(--text-leicht);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s;
}

.side-card a:hover { color: var(--salbei-dunkel); }

.sf-mini {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-hell);
  font-size: 0.8rem;
}

.sf-mini:last-child { border: none; }
.sf-mini span { color: var(--text-muted); font-size: 0.75rem; }


/* ── INFO-BOX (Detail-Seiten) ────────────────────────────────── */
.info-box {
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.info-row {
  display: flex;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-hell);
  font-size: 0.84rem;
  gap: 12px;
  align-items: baseline;
}

.info-row:last-child { border-bottom: none; }

.info-label {
  width: 120px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
}

.info-value {
  color: var(--text);
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}


/* ── CARDS (Generisch) ───────────────────────────────────────── */
.card {
  background: var(--weiss);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}


/* ── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb a:hover { color: var(--salbei-dunkel); }

.breadcrumb .sep {
  margin: 0 4px;
  opacity: 0.5;
}


/* ── DETAIL PAGE ─────────────────────────────────────────────── */
.detail-header {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.detail-header h1 {
  margin-bottom: 4px;
}

.detail-meta {
  font-size: 0.85rem;
  color: var(--text-leicht);
}

.detail-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-leicht);
  max-width: 680px;
}

.detail-body h2 {
  margin-top: 28px;
  margin-bottom: 8px;
}

.detail-body p {
  margin-bottom: 14px;
  font-size: 0.9rem;
}


/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--weiss);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--gap);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.footer h4 {
  margin-bottom: 8px;
}

.footer li { margin-bottom: 4px; }

.footer a {
  color: var(--text-leicht);
  font-size: 0.78rem;
}

.footer a:hover { color: var(--salbei-dunkel); }

.footer-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--border-hell);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-bottom a { color: var(--text-muted); }
.footer-legal { display: flex; gap: 12px; }


/* ── UTILITY CLASSES ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-salbei { color: var(--salbei); }
.text-rot    { color: var(--rot); }
.text-gruen  { color: var(--gruen); }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }


/* ── MISSING COMPONENTS ─────────────────────────────────── */
.content-narrow {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px var(--gap);
  text-align: center;
}

.error-page {
  padding: 40px 0;
}

.error-page h1 {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.error-page p {
  font-size: 1rem;
  margin-bottom: 24px;
}

.error-page a {
  color: var(--salbei);
  font-weight: 600;
}

.error-page a:hover {
  text-decoration: underline;
}

.main-nav {
  display: none;
}

/* Page navigation (year selectors etc.) */
.page-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-nav a,
.page-nav span {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--weiss);
  color: var(--text-leicht);
  transition: border-color 0.15s, color 0.15s;
}

.page-nav a:hover {
  border-color: var(--salbei);
  color: var(--salbei-dunkel);
}

.page-nav .active {
  background: var(--salbei);
  color: #fff;
  border-color: var(--salbei);
}


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE - TABLET (768px+)
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .hamburger       { display: none; }
  .nav-desktop     { display: flex; }
  .nav-mobile      { display: none !important; }

  .header-inner    { height: 60px; }

  h1               { font-size: 2rem; }

  .hero-inner {
    padding: 44px var(--gap) 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
  }

  .hero-left       { flex: 1; }
  .hero-sub        { margin-bottom: 0; }

  .sidebar         { display: block; }
  .col-day         { display: table-cell; }

  .ft thead th,
  .ft tbody tr:not(.mr) td {
    padding: 9px 12px;
  }

  .bl-grid         { gap: 8px; }
  .bl-pill         { padding: 9px 16px; font-size: 0.82rem; }

  .sf-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tage-row {
    flex-wrap: wrap;
    overflow: visible;
  }

  .tage-chip       { min-width: 150px; }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE - DESKTOP (1024px+)
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  h1               { font-size: 2.2rem; }

  .hero-inner      { padding: 52px var(--gap) 44px; }

  .layout          { gap: 40px; padding-top: 36px; }
  .sidebar         { width: 320px; }

  .sh h2           { font-size: 1.2rem; }
}


/* ════════════════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════════════════ */
@media print {
  .header, .footer, .sidebar,
  .hamburger, .nav-desktop, .nav-mobile,
  .countdown, .tage-row, .bl-grid { display: none; }

  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { background: none; color: #000; padding: 12pt 0; }
  .hero h1 { color: #000; font-size: 18pt; }
  .layout { display: block; }
  .ft { border: 1px solid #ccc; }
  .ft td, .ft th { border-bottom: 1px solid #eee; padding: 4pt 6pt; }
  .col-day { display: table-cell; }
  .badge { border: 1px solid #ccc; background: none; color: #333; }
  a { color: #000; }
}
