
/* ==========================================
   KG FETTNÄPKE 1987 e.V.
   Kartenvorverkauf & Karneval 2027
   ========================================== */

:root {
  --navy: #172c55;
  --navy-dark: #10203f;
  --red: #b90932;
  --red-dark: #970827;
  --gold: #f5c64b;
  --gold-light: #fff0b8;
  --cream: #fff9ed;
  --white: #ffffff;
  --text: #252735;
  --muted: #686878;
  --border: #eddfc6;
  --shadow: 0 12px 40px rgba(23, 44, 85, 0.08);
  --radius: 22px;
}

/* ==========================================
   RESET & GRUNDLAYOUT
   ========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ==========================================
   KONFETTI-HINTERGRUND
   ========================================== */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;

  background-image:
	radial-gradient(circle, #c82348 2px, transparent 3px),
	radial-gradient(circle, #e5ae32 3px, transparent 4px),
	radial-gradient(circle, #172c55 1.5px, transparent 2.5px);

  background-size:
	220px 220px,
	270px 270px,
	330px 330px;

  background-position:
	20px 40px,
	90px 125px,
	160px 70px;
}

.site-header,
.main,
footer {
  position: relative;
  z-index: 1;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  font-family: 'Baloo 2', cursive;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;

  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;

  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: 50%;
  padding: 3px;
}

.header-tag {
  display: inline-flex;
  align-items: center;

  padding: 9px 17px;
  border: 1px solid #f0cb76;
  border-radius: 30px;

  background: var(--gold-light);
  color: var(--navy);

  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ==========================================
   HAUPTBEREICH
   ========================================== */

.main {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 35px 0 75px;
}

/* ==========================================
   HERO / VORVERKAUF
   ========================================== */

.hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 8px 17px;

  background: #fff3d3;
  border: 1px solid #f0d18b;
  border-radius: 30px;

  color: #84500d;
  font-size: 13px;
  font-weight: 800;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.hero h1 {
  margin: 20px 0 12px;

  font-family: 'Baloo 2', cursive;
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;

  color: var(--navy);
}

.hero h1 span {
  color: var(--red);
}

.lead {
  max-width: 600px;
  margin: 0 auto 28px;

  font-size: 18px;
  color: var(--muted);
}

.lead strong {
  color: var(--navy);
}

/* ==========================================
   VORVERKAUFS-KARTE
   ========================================== */

.date-card {
  position: relative;
  max-width: 650px;
  margin: 0 auto;

  padding: 35px 30px 30px;

  background: var(--white);
  border: 2px solid #f0d7a0;
  border-radius: 28px;

  box-shadow:
	0 18px 50px rgba(23, 44, 85, 0.1),
	0 4px 0 rgba(245, 198, 75, 0.25);

  overflow: hidden;
}

.date-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;

  background: linear-gradient(
	90deg,
	var(--red) 0%,
	var(--red) 33%,
	var(--gold) 33%,
	var(--gold) 66%,
	var(--navy) 66%,
	var(--navy) 100%
  );
}

.date-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 55px;
  height: 55px;
  margin: 0 auto 15px;

  background: var(--gold);
  border-radius: 50%;

  font-size: 29px;
  color: var(--navy);
}

.date-label {
  margin: 0 0 8px;

  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.date-big {
  margin: 0;

  font-family: 'Baloo 2', cursive;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.2;

  color: var(--navy);
}

.date-big span {
  color: var(--red);
}

.divider {
  height: 1px;
  margin: 24px auto;
  max-width: 430px;

  background: var(--border);
}

.time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.clock {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  border-radius: 15px;
  background: #fff0db;

  color: var(--red);
  font-size: 30px;
}

.time div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.time strong {
  font-size: 13px;
  color: var(--muted);
}

.time small {
  font-family: 'Baloo 2', cursive;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;

  color: var(--navy);
}

/* ==========================================
   KALENDER-BUTTON
   ========================================== */

.hint {
  margin: 28px auto 18px;
  font-size: 15px;
  color: var(--muted);
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 52px;
  padding: 14px 28px;

  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 40px;

  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;

  box-shadow: 0 9px 20px rgba(185, 9, 50, 0.18);

  transition:
	background 0.2s ease,
	transform 0.2s ease,
	box-shadow 0.2s ease;
}

.home-link:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(185, 9, 50, 0.25);
}

.home-link span {
  font-size: 19px;
}

/* ==========================================
   VERANSTALTUNGEN
   ========================================== */

.events {
  max-width: 1120px;
  margin: 85px auto 0;
  text-align: center;
}

.events-header {
  margin-bottom: 35px;
}

.events h2 {
  margin: 15px 0 8px;

  font-family: 'Baloo 2', cursive;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;

  color: var(--navy);
}

.events h2 span {
  color: var(--red);
}

.events-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================
   VERANSTALTUNGS-KARTEN
   ========================================== */

.event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;

  min-width: 0;
  padding: 24px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
  text-align: left;

  transition:
	transform 0.2s ease,
	box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(23, 44, 85, 0.13);
}

.event-top {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 22px;
}

/* Datum links in der Karte */

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  width: 82px;
  height: 94px;

  background: var(--gold);
  border-radius: 16px;

  color: var(--navy);
}

.event-date span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.event-date strong {
  font-family: 'Baloo 2', cursive;
  font-size: 39px;
  font-weight: 800;
  line-height: 1.05;
}

.event-date small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Titel und Uhrzeit */

.event-info {
  flex: 1;
  min-width: 0;
}

.event-info h3 {
  margin: 0 0 9px;

  font-family: 'Baloo 2', cursive;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;

  color: var(--navy);
}

.event-info p {
  margin: 0 0 10px;

  font-size: 13px;
  color: var(--muted);
}

.event-time {
  display: inline-flex;
  align-items: center;

  padding: 6px 12px;

  background: #ffedf0;
  border-radius: 30px;

  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================
   VERANSTALTUNGSORT
   ========================================== */

.event-location {
  display: flex;
  flex-direction: column;
  flex: 1;

  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.event-location > strong {
  display: block;
  margin-bottom: 12px;

  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin-bottom: 20px;
}

.location-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border-radius: 10px;
  background: #fff4d8;
  color: #a66a0c;

  font-size: 17px;
}

.event-location .location-address p {
  margin: 0;

  font-size: 13px;
  line-height: 1.7;
  color: #5b5c68;
}

.location-address b {
  color: var(--text);
}

/* ==========================================
   ROUTEN-BUTTON
   ========================================== */

.route-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  width: 100%;
  min-height: 43px;
  margin-top: auto;
  padding: 10px 15px;

  background: #fff4e0;
  border: 1px solid #f0d3a0;
  border-radius: 12px;

  color: #955019;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;

  transition:
	background 0.2s ease,
	color 0.2s ease;
}

.route-link:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ==========================================
   KARTENABHOLUNG
   ========================================== */

.pickup-info {
  display: flex;
  align-items: center;
  gap: 22px;

  max-width: 850px;
  margin: 38px auto 0;
  padding: 25px 30px;

  background: var(--navy);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(23, 44, 85, 0.14);

  color: var(--white);
  text-align: left;
}

.pickup-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  width: 62px;
  height: 62px;

  background: rgba(245, 198, 75, 0.15);
  border: 1px solid rgba(245, 198, 75, 0.35);
  border-radius: 18px;

  font-size: 30px;
}

.pickup-content {
  min-width: 0;
}

.pickup-info h3 {
  margin: 0 0 5px;

  font-family: 'Baloo 2', cursive;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;

  color: var(--gold);
}

.pickup-info p {
  margin: 0;

  color: #f0f2f7;
  font-size: 14px;
  line-height: 1.8;
}

.pickup-info p strong {
  color: var(--white);
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 25px 20px 35px;

  border-top: 1px solid var(--border);

  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

footer a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

footer a:hover {
  color: var(--red);
  text-decoration: underline;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1050px) {
  .event-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card:last-child {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 550px;
	justify-self: center;
  }
}

/* ==========================================
   SMARTPHONE
   ========================================== */

@media (max-width: 700px) {
  .site-header {
	padding: 18px 16px;
	gap: 10px;
  }

  .brand {
	gap: 9px;
	font-size: 16px;
  }

  .brand img {
	width: 46px;
	height: 46px;
  }

  .header-tag {
	padding: 7px 10px;
	font-size: 10px;
  }

  .main {
	width: calc(100% - 28px);
	padding: 25px 0 55px;
  }

  .hero h1 {
	font-size: clamp(43px, 11vw, 65px);
	letter-spacing: -1px;
  }

  .lead {
	font-size: 15px;
	padding: 0 10px;
  }

  .date-card {
	padding: 30px 16px 25px;
	border-radius: 23px;
  }

  .date-big {
	font-size: clamp(29px, 7vw, 42px);
  }

  .date-label {
	font-size: 13px;
  }

  .hint {
	font-size: 13px;
	padding: 0 15px;
  }

  .home-link {
	font-size: 13px;
	padding: 13px 20px;
  }

  .events {
	margin-top: 65px;
  }

  .events-header {
	margin-bottom: 25px;
  }

  .events h2 {
	font-size: 36px;
  }

  .events-subtitle {
	font-size: 13px;
  }

  .event-list {
	grid-template-columns: 1fr;
	gap: 18px;
  }

  .event-card,
  .event-card:last-child {
	grid-column: auto;
	width: 100%;
	max-width: none;
	padding: 20px;
  }

  .event-top {
	gap: 15px;
	margin-bottom: 17px;
  }

  .event-date {
	width: 76px;
	height: 88px;
  }

  .event-date strong {
	font-size: 36px;
  }

  .event-info h3 {
	font-size: 20px;
  }

  .event-location {
	padding-top: 16px;
  }

  .pickup-info {
	margin-top: 25px;
	padding: 20px;
	gap: 15px;
  }

  .pickup-icon {
	width: 48px;
	height: 48px;
	font-size: 24px;
  }

  .pickup-info h3 {
	font-size: 20px;
  }

  .pickup-info p {
	font-size: 13px;
  }
}

/* ==========================================
   KLEINE SMARTPHONES
   ========================================== */

@media (max-width: 380px) {
  .site-header {
	flex-wrap: wrap;
	justify-content: center;
  }

  .brand {
	font-size: 16px;
  }

  .header-tag {
	font-size: 11px;
  }

  .event-card {
	padding: 16px;
  }

  .event-date {
	width: 65px;
	height: 82px;
  }

  .event-date strong {
	font-size: 31px;
  }

  .event-info h3 {
	font-size: 18px;
  }

  .pickup-info {
	align-items: flex-start;
  }

  .pickup-icon {
	display: none;
  }
}

/* ==========================================
   BEWEGUNGEN REDUZIEREN
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  html {
	scroll-behavior: auto;
  }

  .event-card,
  .home-link,
  .route-link {
	transition: none;
  }

  .event-card:hover,
  .home-link:hover {
	transform: none;
  }
}
