/* =============================================
   LANDDISTRIKTSFESTIVAL 2026 — Fælles CSS
   Æstetik: Organisk, nordisk, jord & natur
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300&display=swap');

/* ---- Farvepalette ---- */
:root {
  --jord:       #4a3728;
  --rug:        #7d5c3a;
  --halm:       #c8a96a;
  --hø:         #e8d5a3;
  --lys-hø:     #f4edda;
  --kalk:       #f9f5ec;
  --eng:        #4a6741;
  --skov:       #2e4a2b;
  --himmel:     #7fa3b5;
  --dis:        #b8cdd6;
  --hvid:       #fdfaf3;
  --sort:       #1e1509;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --radius: 3px;
  --shadow: 0 2px 16px rgba(74,55,40,0.10);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--kalk);
  color: var(--jord);
  line-height: 1.7;
  min-height: 100vh;
}

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

a { color: var(--eng); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--skov); }

/* ---- Typografi ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--jord);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Navigation ---- */
.site-nav {
  background: var(--jord);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--hø) !important;
  text-decoration: none !important;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--halm);
  font-style: italic;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--hø);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  text-decoration: none !important;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(200,169,106,0.2);
  color: var(--halm);
}

/* ---- Hero ---- */
.hero {
  background: var(--jord);
  color: var(--hø);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(125,92,58,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(74,103,65,0.35) 0%, transparent 70%);
  pointer-events: none;
}

/* Dekorativt korn-mønster */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a96a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-pre {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--halm);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero h1 {
  color: var(--hø);
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--dis);
  margin-bottom: 0.3rem;
  font-weight: 300;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--halm);
  font-weight: 600;
  margin: 1.2rem 0 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--eng);
  color: var(--hvid);
  border: 2px solid var(--eng);
}
.btn-primary:hover {
  background: var(--skov);
  border-color: var(--skov);
  color: var(--hvid);
}

.btn-outline {
  background: transparent;
  color: var(--hø);
  border: 2px solid rgba(200,169,106,0.5);
}
.btn-outline:hover {
  border-color: var(--halm);
  color: var(--halm);
}

/* ---- Blade-separator ---- */
.divider {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--halm);
  font-size: 1.4rem;
  opacity: 0.6;
  user-select: none;
}

/* ---- Indhold wrapper ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin-bottom: 0.4rem;
}

.section-title p {
  color: var(--rug);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Kort / cards ---- */
.card {
  background: var(--hvid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  border-top: 3px solid var(--halm);
}

.card h3 {
  margin-bottom: 0.6rem;
}

/* ---- Grid layouts ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* ---- Program tabel ---- */
.program-day {
  margin-bottom: 2.5rem;
}

.program-day-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--eng);
  border-bottom: 2px solid var(--halm);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.program-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(200,169,106,0.2);
  align-items: baseline;
}

.program-time {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rug);
}

.program-event {
  font-size: 0.95rem;
}

.program-event strong {
  display: block;
  color: var(--jord);
}

.program-event span {
  font-size: 0.85rem;
  color: var(--rug);
  font-style: italic;
}

.tbc-badge {
  display: inline-block;
  background: var(--lys-hø);
  color: var(--rug);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* ---- Banner stribe ---- */
.banner-strip {
  background: var(--eng);
  color: var(--hvid);
  padding: 3rem 1.5rem;
  text-align: center;
}

.banner-strip h2 {
  color: var(--hø);
  margin-bottom: 0.8rem;
}

.banner-strip p {
  color: var(--dis);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
}

/* ---- Quote blok ---- */
.quote-block {
  background: var(--lys-hø);
  border-left: 4px solid var(--halm);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--jord);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---- Fakta badges ---- */
.fakta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.fakta-item {
  text-align: center;
  padding: 1.2rem;
  background: var(--hvid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fakta-tal {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--eng);
  display: block;
}

.fakta-label {
  font-size: 0.8rem;
  color: var(--rug);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Sponsor logoer ---- */
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.sponsor-slot {
  background: var(--hvid);
  border: 1px solid var(--hø);
  border-radius: var(--radius);
  padding: 1.2rem 2rem;
  text-align: center;
  min-width: 150px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rug);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---- Sponsor sub-tabs ---- */
.subtab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--hø);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.subtab-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  color: var(--rug);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.subtab-btn:hover {
  color: var(--eng);
}

.subtab-btn.active {
  color: var(--jord);
  font-weight: 600;
  border-bottom-color: var(--eng);
}

.subtab-panel {
  display: none;
}

.subtab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Hovedsponsor logo cards ---- */
.main-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.main-sponsor-card {
  background: var(--hvid);
  border: 1px solid var(--hø);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.main-sponsor-card img {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
}

.main-sponsor-card .sponsor-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--jord);
}
/* ---- Footer ---- */
footer {
  background: var(--sort);
  color: var(--hø);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: var(--halm);
  font-family: var(--font-display);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

footer p, footer li {
  font-size: 0.85rem;
  color: var(--dis);
  line-height: 1.8;
  list-style: none;
}

footer a {
  color: var(--dis);
  transition: color 0.2s;
}
footer a:hover {
  color: var(--halm);
  text-decoration: none;
}

.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(184,205,214,0.5);
}

/* ---- Hvedemark dekoration ---- */
.wheat-deco {
  display: block;
  text-align: center;
  font-size: 2rem;
  margin: 1rem 0;
  opacity: 0.3;
  user-select: none;
}

/* ---- Beredskabsbanner ---- */
.notice-bar {
  background: var(--halm);
  color: var(--sort);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    justify-content: center;
  }

  .hero {
    padding: 3rem 1rem 3rem;
  }

  .program-row {
    grid-template-columns: 70px 1fr;
  }
}

/* ---- Side-header (undersider) ---- */
.page-header {
  background: var(--jord);
  color: var(--hø);
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 80% 50%, rgba(74,103,65,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--halm);
  opacity: 0.8;
  margin-bottom: 0.8rem;
}

.page-header h1 {
  color: var(--hø);
  font-style: italic;
}

.page-header p {
  color: var(--dis);
  font-weight: 300;
  max-width: 600px;
  margin-top: 0.5rem;
}

/* ---- Accordion ---- */
.accordion {
  border: 1px solid var(--hø);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion summary {
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  cursor: pointer;
  background: var(--hvid);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--jord);
}

.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.3rem; color: var(--halm); }
.accordion[open] summary::after { content: '−'; }

.accordion-body {
  padding: 1.2rem;
  background: var(--kalk);
  border-top: 1px solid var(--hø);
  font-size: 0.95rem;
}

/* ---- Tag liste ---- */
.tag {
  display: inline-block;
  background: var(--lys-hø);
  color: var(--rug);
  border: 1px solid var(--hø);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  margin: 0.15rem;
}

/* ---- Nyt fra festivalen / talebobler ---- */
.nyt-strip {
  background: var(--lys-hø);
  padding: 2.2rem 1.5rem 2.6rem;
}

.nyt-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.nyt-heading h2 {
  margin-bottom: 0.2rem;
}

.nyt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}

.bubble {
  position: relative;
  background: var(--hvid);
  border: 1px solid var(--halm);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
  max-width: 320px;
  flex: 1 1 260px;
}

.bubble::after {
  content: '';
  position: absolute;
  top: -9px;
  left: 28px;
  width: 18px;
  height: 18px;
  background: var(--hvid);
  border-left: 1px solid var(--halm);
  border-top: 1px solid var(--halm);
  transform: rotate(45deg);
}

.bubble:first-child {
  border-color: var(--eng);
}
.bubble:first-child::after {
  border-color: var(--eng);
}

.bubble-date {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rug);
  margin-bottom: 0.35rem;
}

.bubble-new {
  display: inline-block;
  background: var(--eng);
  color: var(--hvid);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: nyt-hop 1.8s ease-in-out infinite;
}

/* ---- "Let hoppende" NYT-mærke — bruges til nye/kommende nyheder ---- */
@keyframes nyt-hop {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .bubble-new, .badge-new { animation: none; }
}

/* Samme "NYT"-mærke til brug uden for talebobler, fx på nyhedssiden eller i menuen */
.badge-new {
  display: inline-block;
  background: var(--eng);
  color: var(--hvid);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: nyt-hop 1.8s ease-in-out infinite;
}

.bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
