:root {
  --ink: #271d19;
  --muted: #695b51;
  --paper: #f1e8d8;
  --paper2: #e6d7c1;
  --red: #7f2425;
  --red2: #4b1517;
  --gold: #b58a45;
  --line: rgba(55, 37, 28, .22);
  --white: #fffaf1;
  --shadow: 0 18px 48px rgba(36, 22, 16, .18);
  --max: 1180px;
}


/* =========================================================
   GRUNDEINSTELLUNGEN
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  line-height: 1.6;

  background-image:
    radial-gradient(rgba(70, 45, 30, .07) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, .15),
      transparent 32%,
      rgba(80, 50, 30, .03)
    );

  background-size: 8px 8px, 100% 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red2);
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #fff;
  padding: .7rem 1rem;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(241, 232, 216, .95);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;
  min-height: 76px;
}


/* Logo / Brand */

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;

  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand-text {
  font-family: Georgia, "Times New Roman", serif;

  text-transform: uppercase;
  letter-spacing: .08em;

  font-size: .9rem;
  line-height: 1.15;
}

.brand-text strong {
  display: block;

  font-size: 1.12rem;
  color: var(--red);
}


/* Navigation */

.site-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;

  padding: .6rem .65rem;
  border-radius: 4px;

  font-size: .93rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(127, 36, 37, .09);
  color: var(--red);
}


/* Sprachumschaltung */

.language {
  display: flex;
  gap: .2rem;

  margin-left: .4rem;
  padding-left: .5rem;

  border-left: 1px solid var(--line);
}

.language a {
  font-weight: 700;
  font-size: .8rem;
}


/* Mobile Navigation Button */

.nav-toggle {
  display: none;

  border: 1px solid var(--line);
  background: transparent;

  padding: .55rem .7rem;
  border-radius: 4px;

  font-size: 1rem;
}


/* =========================================================
   STARTSEITE HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: 690px;

  display: grid;
  align-items: center;

  overflow: hidden;

  background:
    linear-gradient(
      105deg,
      rgba(241, 232, 216, .99) 0%,
      rgba(241, 232, 216, .95) 42%,
      rgba(241, 232, 216, .12) 72%
    ),
    linear-gradient(180deg, #d8c3a8, #ecdcc6);
}


/* Neues Hero-Bild */

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    url("../img/hero.png")
    center 42% / cover
    no-repeat;

  opacity: .2;
}


/* Übergang nach unten */

.hero::after {
  content: "";

  position: absolute;
  inset: auto 0 0;

  height: 140px;

  background:
    linear-gradient(
      transparent,
      var(--paper)
    );
}


/* Zusätzliche Burggrafik */

.hero-castle {
  position: absolute;

  right: 0;
  bottom: -165px;

  width: min(45vw, 680px);

  opacity: .88;

  filter:
    drop-shadow(
      0 20px 20px rgba(30, 20, 15, .2)
    );
}


/* Alte Ritterklasse bleibt unschädlich vorhanden */

.hero-knight {
  position: absolute;

  right:
    max(
      -70px,
      calc((100vw - var(--max)) / 2 - 80px)
    );

  bottom: -40px;

  width: min(43vw, 510px);

  z-index: 2;
}


.hero-content {
  position: relative;
  z-index: 4;

  max-width: 660px;

  padding: 7rem 0 8rem;
}


.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;

  font-weight: 700;

  color: var(--red);

  font-size: .83rem;
}


.hero h1,
.page-hero h1,
h2,
h3 {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
}


.hero h1 {
  font-size:
    clamp(
      3.2rem,
      7vw,
      6.3rem
    );

  line-height: .88;

  margin:
    .45rem 0 1.15rem;

  text-transform: uppercase;

  letter-spacing: .02em;
}


.hero h1 span {
  display: block;

  font-size: .42em;

  letter-spacing: .18em;

  color: var(--red);

  margin-bottom: .35em;
}


.hero-sub {
  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      1.35rem,
      2.4vw,
      2rem
    );

  margin:
    0 0 .9rem;
}


.hero-location {
  font-size: 1.08rem;
  max-width: 520px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.actions {
  display: flex;

  gap: .75rem;

  flex-wrap: wrap;

  margin-top: 1.7rem;
}


.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: .45rem;

  padding: .82rem 1.1rem;

  border-radius: 3px;

  border:
    1px solid var(--red);

  background:
    var(--red);

  color: white;

  text-decoration: none;

  font-weight: 700;
}


.button:hover {
  background:
    var(--red2);

  color: white;
}


.button.secondary {
  background:
    transparent;

  color:
    var(--red);
}


.button.secondary:hover {
  background:
    rgba(127, 36, 37, .08);
}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown {
  margin-top: 2rem;

  padding: .85rem 1rem;

  border-left:
    4px solid var(--gold);

  background:
    rgba(255, 250, 241, .68);

  max-width:
    max-content;
}


/* =========================================================
   NOTICE BAR
   ========================================================= */

.noticebar {
  background:
    var(--red2);

  color: #fff;

  padding:
    .85rem 0;

  text-align:
    center;

  font-weight:
    700;

  letter-spacing:
    .03em;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding:
    5.2rem 0;
}


.section.compact {
  padding:
    3.5rem 0;
}


.section.alt {
  background:
    rgba(255, 250, 241, .48);

  border-block:
    1px solid var(--line);
}


.section-title {
  max-width:
    770px;

  margin-bottom:
    2.2rem;
}


.section-title .eyebrow {
  margin-bottom:
    .5rem;
}


.section h2 {
  font-size:
    clamp(
      2rem,
      4vw,
      3.25rem
    );

  line-height:
    1.05;

  margin:
    .25rem 0 .7rem;
}


.lead {
  font-size:
    1.16rem;

  color:
    var(--muted);
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
  display:
    grid;

  gap:
    1.25rem;
}


.grid-3 {
  grid-template-columns:
    repeat(3, 1fr);
}


.grid-2 {
  grid-template-columns:
    repeat(2, 1fr);
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
  background:
    rgba(255, 250, 241, .72);

  border:
    1px solid var(--line);

  padding:
    1.45rem;

  box-shadow:
    0 8px 22px rgba(40, 25, 18, .06);
}


.card h3 {
  font-size:
    1.35rem;

  margin:
    .2rem 0 .5rem;
}


.icon {
  font-size:
    1.8rem;

  color:
    var(--red);
}


/* Status Badge */

.status {
  display:
    inline-block;

  padding:
    .24rem .55rem;

  border-radius:
    99px;

  background:
    rgba(181, 138, 69, .17);

  color:
    #725523;

  font-weight:
    700;

  font-size:
    .78rem;

  text-transform:
    uppercase;

  letter-spacing:
    .08em;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
  display:
    grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap:
    1px;

  background:
    var(--line);

  border:
    1px solid var(--line);
}


.timeline article {
  background:
    var(--paper);

  padding:
    1.3rem;
}


.timeline strong {
  display:
    block;

  color:
    var(--red);

  font-family:
    Georgia,
    serif;

  font-size:
    1.4rem;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
  display:
    grid;

  grid-template-columns:
    1.3fr .7fr;

  gap:
    2rem;

  align-items:
    center;

  background:
    var(--red2);

  color:
    white;

  padding:
    2.4rem;
}


.cta h2 {
  margin-top:
    0;
}


.cta .button {
  background:
    var(--white);

  color:
    var(--red2);

  border-color:
    var(--white);
}


/* =========================================================
   UNTERSEITEN HERO
   ========================================================= */

.page-hero {
  position:
    relative;

  padding:
    6.5rem 0 4.8rem;

  background:
    linear-gradient(
      100deg,
      rgba(241, 232, 216, .98),
      rgba(241, 232, 216, .8)
    ),
    url("../img/hero.png")
    center 38% / cover;

  border-bottom:
    1px solid var(--line);

  overflow:
    hidden;
}


/* zusätzliche Burg rechts */

.page-hero::after {
  content:
    "";

  position:
    absolute;

  right:
    4%;

  bottom:
    -90px;

  width:
    390px;

  height:
    260px;

  background:
    url("../img/burg-reifenstein.png")
    center / contain
    no-repeat;

  opacity:
    .25;
}


.page-hero .container {
  position:
    relative;

  z-index:
    2;
}


.page-hero h1 {
  font-size:
    clamp(
      2.6rem,
      6vw,
      5rem
    );

  line-height:
    1;

  margin:
    .4rem 0;
}


.breadcrumbs {
  font-size:
    .9rem;

  color:
    var(--muted);
}


/* =========================================================
   PROGRAMM
   ========================================================= */

.program-day {
  border-top:
    3px solid var(--red);

  padding-top:
    1rem;
}


.program-item {
  display:
    grid;

  grid-template-columns:
    105px 1fr;

  gap:
    1rem;

  padding:
    .9rem 0;

  border-bottom:
    1px solid var(--line);
}


.program-item time {
  font-weight:
    700;

  color:
    var(--red);
}


/* =========================================================
   BESUCHERINFOS
   ========================================================= */

.info-list {
  display:
    grid;

  gap:
    .8rem;
}


.info-row {
  display:
    grid;

  grid-template-columns:
    180px 1fr;

  gap:
    1rem;

  padding:
    .85rem 0;

  border-bottom:
    1px solid var(--line);
}


.info-row strong {
  font-family:
    Georgia,
    serif;
}


/* =========================================================
   GALERIE
   ========================================================= */

.gallery {
  display:
    grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap:
    1rem;
}


.gallery figure {
  margin:
    0;

  background:
    #ddd0bb;

  min-height:
    260px;

  position:
    relative;

  overflow:
    hidden;

  border:
    1px solid var(--line);
}


.gallery img {
  width:
    100%;

  height:
    100%;

  object-fit:
    cover;
}


.gallery figcaption {
  position:
    absolute;

  inset:
    auto 0 0;

  padding:
    1rem;

  background:
    linear-gradient(
      transparent,
      rgba(35, 23, 18, .86)
    );

  color:
    white;
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.placeholder {
  display:
    grid;

  place-items:
    center;

  min-height:
    240px;

  text-align:
    center;

  padding:
    2rem;

  background:
    repeating-linear-gradient(
      135deg,
      rgba(127, 36, 37, .04),
      rgba(127, 36, 37, .04) 12px,
      rgba(255, 255, 255, .18) 12px,
      rgba(255, 255, 255, .18) 24px
    );
}


/* =========================================================
   RECHTLICHE SEITEN
   ========================================================= */

.legal-warning {
  border:
    2px solid #b96a24;

  background:
    #fff1d9;

  padding:
    1rem 1.2rem;

  margin:
    1.5rem 0;
}


.legal h2 {
  font-size:
    1.6rem;

  margin-top:
    2rem;
}


.code-note {
  font-family:
    Consolas,
    monospace;

  background:
    #241c18;

  color:
    #f8ead7;

  padding:
    .15rem .35rem;

  border-radius:
    3px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background:
    #241a17;

  color:
    #e9dfd0;

  padding:
    3rem 0 1.5rem;
}


.footer-grid {
  display:
    grid;

  grid-template-columns:
    1.2fr .8fr .8fr;

  gap:
    2rem;
}


.site-footer a {
  color:
    #f0d9b8;
}


.site-footer h3 {
  margin-top:
    0;

  color:
    white;
}


.footer-bottom {
  border-top:
    1px solid rgba(255, 255, 255, .15);

  margin-top:
    2rem;

  padding-top:
    1rem;

  font-size:
    .88rem;

  color:
    #cdbfac;
}


/* =========================================================
   PRINT FLYER
   ========================================================= */

.print-flyer {
  min-height:
    100vh;

  display:
    grid;

  grid-template-columns:
    1fr .86fr;

  align-items:
    center;

  background:
    linear-gradient(
      105deg,
      rgba(241, 232, 216, .97),
      rgba(241, 232, 216, .4)
    ),
    url("../img/hero.png")
    center / cover;

  position:
    relative;

  overflow:
    hidden;

  padding:
    7vw;
}


.print-flyer .flyer-art {
  position:
    absolute;

  right:
    -3%;

  bottom:
    -8%;

  width:
    52%;
}


.flyer-copy {
  position:
    relative;

  z-index:
    2;

  max-width:
    680px;
}


.flyer-copy h1 {
  font-family:
    Georgia,
    serif;

  font-size:
    clamp(
      3.7rem,
      8vw,
      7.2rem
    );

  line-height:
    .87;

  text-transform:
    uppercase;

  margin:
    .5rem 0;
}


.flyer-copy h1 span {
  display:
    block;

  color:
    var(--red);

  font-size:
    .42em;

  letter-spacing:
    .14em;
}


.flyer-date {
  font-family:
    Georgia,
    serif;

  font-weight:
    700;

  font-size:
    clamp(
      2rem,
      4vw,
      3.8rem
    );

  color:
    var(--red);

  margin:
    1rem 0;
}


.qr-box {
  display:
    flex;

  align-items:
    center;

  gap:
    1rem;

  margin-top:
    2rem;
}


.qr-box img {
  width:
    155px;

  background:
    white;

  padding:
    .4rem;
}


.only-screen {
  display:
    block;
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

  .only-screen {
    display:
      none;
  }

  .print-flyer {
    width:
      210mm;

    height:
      297mm;

    min-height:
      297mm;

    padding:
      18mm;

    page-break-after:
      always;
  }

  .flyer-copy h1 {
    font-size:
      27mm;
  }

  .flyer-date {
    font-size:
      14mm;
  }

  .qr-box img {
    width:
      38mm;
  }

}


/* =========================================================
   TABLET / MOBILE NAV
   ========================================================= */

@media(max-width: 980px) {

  .nav-toggle {
    display:
      block;
  }


  .site-nav {
    display:
      none;

    position:
      absolute;

    left:
      0;

    right:
      0;

    top:
      76px;

    background:
      var(--paper);

    padding:
      1rem;

    flex-direction:
      column;

    align-items:
      stretch;

    border-bottom:
      1px solid var(--line);

    box-shadow:
      var(--shadow);
  }


  .site-nav.is-open {
    display:
      flex;
  }


  .language {
    border-left:
      0;

    border-top:
      1px solid var(--line);

    margin:
      .4rem 0 0;

    padding:
      .5rem 0 0;
  }


  .hero {
    min-height:
      760px;
  }


  .hero-content {
    max-width:
      570px;

    padding:
      5rem 0 15rem;
  }


  .hero-castle {
    right:
      -4%;

    bottom:
      -125px;

    width:
      68vw;
  }


  .hero-knight {
    right:
      -85px;

    width:
      48vw;
  }


  .grid-3 {
    grid-template-columns:
      1fr 1fr;
  }


  .timeline {
    grid-template-columns:
      1fr 1fr;
  }


  .footer-grid {
    grid-template-columns:
      1fr 1fr;
  }


  .print-flyer {
    grid-template-columns:
      1fr;
  }


  .print-flyer .flyer-art {
    opacity:
      .42;

    width:
      70%;
  }

}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media(max-width: 680px) {

  .container {
    width:
      min(
        100% - 1.2rem,
        var(--max)
      );
  }


  .brand-text {
    font-size:
      .72rem;
  }


  .brand-text strong {
    font-size:
      .9rem;
  }


  .hero {
    min-height:
      740px;

    background:
      linear-gradient(
        180deg,
        rgba(241, 232, 216, .98),
        rgba(241, 232, 216, .84) 66%,
        rgba(241, 232, 216, .35)
      );
  }


  .hero::before {
    opacity:
      .12;
  }


  .hero-content {
    padding:
      4.2rem 0 18rem;
  }


  .hero h1 {
    font-size:
      3.25rem;
  }


  .hero-castle {
    right:
      -24%;

    bottom:
      -80px;

    width:
      105vw;
  }


  .hero-knight {
    right:
      -80px;

    width:
      64vw;

    bottom:
      -38px;
  }


  .grid-3,
  .grid-2,
  .gallery {
    grid-template-columns:
      1fr;
  }


  .timeline {
    grid-template-columns:
      1fr;
  }


  .cta {
    grid-template-columns:
      1fr;

    padding:
      1.5rem;
  }


  .info-row,
  .program-item {
    grid-template-columns:
      1fr;

    gap:
      .2rem;
  }


  .footer-grid {
    grid-template-columns:
      1fr;
  }


  .section {
    padding:
      3.8rem 0;
  }


  .page-hero {
    padding:
      4.5rem 0 3rem;
  }


  .page-hero::after {
    width:
      280px;
  }


  .print-flyer {
    padding:
      2rem;
  }


  .print-flyer .flyer-art {
    width:
      95%;

    right:
      -25%;

    opacity:
      .35;
  }


  .flyer-copy h1 {
    font-size:
      3.6rem;
  }


  .qr-box {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

}


/* =========================================================
   KONTAKTSEITE – SOCIAL MEDIA
   ========================================================= */

.contact-socials {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-top: 24px;
}


.contact-social-link {
  display: flex;

  align-items: center;

  gap: 16px;

  padding: 14px 16px;

  color: var(--ink);

  text-decoration: none;

  border:
    1px solid var(--line);

  border-radius:
    4px;

  background:
    rgba(255, 250, 241, .45);

  transition:
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}


.contact-social-link:hover {
  color:
    var(--ink);

  background:
    rgba(127, 36, 37, .06);

  border-color:
    var(--red);

  transform:
    translateY(-1px);

  box-shadow:
    0 6px 14px rgba(40, 25, 18, .08);
}


/* Social Icon Kreis */

.contact-social-icon {
  flex:
    0 0 44px;

  width:
    44px !important;

  height:
    44px !important;

  min-width:
    44px !important;

  max-width:
    44px !important;

  min-height:
    44px !important;

  max-height:
    44px !important;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  overflow:
    hidden;

  border-radius:
    50%;

  background:
    var(--red);

  color:
    white;
}


/* Extrem wichtig:
   verhindert wieder die riesigen schwarzen SVGs */

.contact-social-icon svg {
  display:
    block !important;

  width:
    22px !important;

  height:
    22px !important;

  min-width:
    22px !important;

  max-width:
    22px !important;

  min-height:
    22px !important;

  max-height:
    22px !important;

  fill:
    currentColor !important;

  flex:
    none !important;
}


/* Text neben Icon */

.contact-social-text {
  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;

  min-width:
    0;

  line-height:
    1.35;
}


.contact-social-text strong {
  color:
    var(--red);

  font-size:
    1rem;
}


.contact-social-text small {
  color:
    var(--muted);

  font-size:
    .9rem;

  line-height:
    1.4;
}


/* =========================================================
   SOCIAL MEDIA MOBILE
   ========================================================= */

@media(max-width: 600px) {

  .contact-social-link {
    padding:
      12px;

    gap:
      12px;
  }


  .contact-social-icon {
    flex-basis:
      40px;

    width:
      40px !important;

    height:
      40px !important;

    min-width:
      40px !important;

    max-width:
      40px !important;

    min-height:
      40px !important;

    max-height:
      40px !important;
  }


  .contact-social-icon svg {
    width:
      20px !important;

    height:
      20px !important;

    min-width:
      20px !important;

    max-width:
      20px !important;

    min-height:
      20px !important;

    max-height:
      20px !important;
  }


  .contact-social-text small {
    font-size:
      .84rem;
  }

}