/* ============================================================
   TUNIBERG-WEIN-WANDERPOKAL – Stylesheet
   Ästhetik: Weinrot & Dunkelgrün, elegant & regional
   ============================================================ */

:root { 
  
  --text:       #1A1A1A;
  --text-mid:   #4A4A4A;
  --text-light: #888;
  --white:      #FFFFFF;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.18);
  
  
   /* PRIMARY (Verein) */
  --blue:        #0080BB;
  --blue-dark:   #005F8C;
  --blue-light:  #3AA6D6;

  /* SECONDARY */
  --yellow:      #F8AB2C;
  --yellow-light:#FFD27A;

  /* NEUTRALS */
  --light:       #F4F8FB;
  --light-dark:  #E6EEF5;

  /* UI */
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--light);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

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

/* -------- NAVBAR -------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  /* needed so absolute dropdown is positioned relative to navbar */
  isolation: isolate;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-icon { font-size: 1.4rem; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--yellow-light);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.6rem;
  cursor: pointer;
}

/* -------- HERO -------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 60%, rgba(123,30,46,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(42,74,42,0.5) 0%, transparent 70%),
    linear-gradient(160deg, var(--blue) 0%, #1A2E1A 40%, var(--blue-dark) 100%);
  z-index: 0;
}
/* Subtle vine/texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px,
      transparent 1px, transparent 40px
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(200,160,74,0.2);
  border: 1px solid var(--yellow);
  color: var(--yellow-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.8s ease both;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  animation: fadeDown 0.8s 0.1s ease both;
}
.hero-title em {
  font-style: italic;
  color: var(--yellow-light);
}
.hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 480px;
  animation: fadeDown 0.8s 0.2s ease both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeDown 0.8s 0.3s ease both;
}
.hero-wine-deco {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(6rem, 14vw, 12rem);
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
  animation: floatWine 6s ease-in-out infinite;
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123,30,46,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--yellow-light);
  color: var(--yellow-light);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--yellow);
  color: var(--blue);
  border-color: var(--yellow);
}
.btn-gold:hover {
  background: var(--yellow-light);
  transform: translateY(-2px);
}

/* -------- SECTION BASICS -------- */
.section { padding: 5rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.section-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
}
.label {
  display: inline-block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* -------- INFO CARDS -------- */
.info-section { background: var(--light); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.info-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.info-card h3 {
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.info-card p {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* -------- FUPA WIDGET -------- */
.widget-section { background: var(--blue); }
.widget-section .section-header h2 { color: var(--light); }
.widget-section .section-header p { color: rgba(255,255,255,0.65); }
.fupa-embed-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--yellow);
}
.fupa-embed-wrapper iframe {
  display: block;
  min-height: 520px;
}
.widget-link-row {
  text-align: center;
  margin-top: 2rem;
}

/* -------- ABOUT -------- */
.about-section { background: var(--light-dark); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--blue);
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.about-text .btn-outline {
  border-color: var(--blue);
  color: var(--blue);
}
.about-text .btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.about-deco {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.deco-box {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--yellow);
  transition: transform 0.2s;
}
.deco-box:hover { transform: translateX(6px); }
.deco-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--yellow-light);
  line-height: 1;
}
.deco-label { font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.8); }

/* -------- PAGE HERO (subpages) -------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1A2E1A 60%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px,
    transparent 1px, transparent 40px
  );
}
.page-hero .hero-badge { animation: none; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  animation: none;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  animation: none;
}

/* -------- RULES PAGE -------- */
.rules-section { background: var(--light); }
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.rule-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.rule-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
}
.rule-card h4 { color: var(--blue); margin-bottom: 0.4rem; font-size: 1rem; }
.rule-card p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; }

/* -------- SPONSORS PAGE -------- */
.sponsors-section { background: var(--light); }
.sponsor-tier { margin-bottom: 3.5rem; }
.tier-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sponsor-grid {
  display: grid;
  gap: 1.25rem;
}
.sponsor-grid.tier-main { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sponsor-grid.tier-silver { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sponsor-grid.tier-small { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.sponsor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.sponsor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sponsor-card.gold-card { border-top: 4px solid var(--yellow); }
.sponsor-card.silver-card { border-top: 4px solid #aaa; }
.sponsor-logo-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.sponsor-card.gold-card .sponsor-logo-placeholder { background: rgba(200,160,74,0.15); }
.sponsor-card.silver-card .sponsor-logo-placeholder { background: rgba(170,170,170,0.15); }
.sponsor-card h4 { color: var(--blue); margin-bottom: 0.4rem; }
.sponsor-card p { color: var(--text-mid); font-size: 0.88rem; }
.sponsor-cta { text-align: center; margin-top: 3rem; }
.sponsor-cta p { color: var(--text-mid); margin-bottom: 1rem; font-size: 1.05rem; }

/* -------- CONTACT PAGE -------- */
.contact-section { background: var(--light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { color: var(--blue); font-size: 1.5rem; margin-bottom: 1rem; }
.contact-info p { color: var(--text-mid); line-height: 1.8; margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
}
.contact-item-icon { font-size: 1.5rem; }
.contact-item-text strong { display: block; color: var(--blue); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-item-text span { color: var(--text-mid); font-size: 0.95rem; }
.contact-form-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--blue);
}
.contact-form-box h3 { color: var(--blue); font-size: 1.4rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--light);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* -------- MATCHES PAGE -------- */
.matches-section { background: var(--light); }

/* Tournify Link Card */
.tournify-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--yellow);
  text-align: center;
  margin-bottom: 2rem;
}
.tournify-logo {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.tournify-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--blue);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.tournify-card p {
  color: #4A4A4A;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 1.75rem;
}
.tournify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--blue);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  transition: all 0.25s;
  border: 2px solid var(--blue);
}
.tournify-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,128,187,0.4);
}
.tournify-btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s;
  margin-top: 0.75rem;
}
.tournify-btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.tournify-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.tournify-feature {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: var(--shadow);
}
.tournify-feature .feat-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.tournify-feature h4 { color: var(--blue); font-size: 0.95rem; margin-bottom: 0.4rem; }
.tournify-feature p { color: #4A4A4A; font-size: 0.82rem; line-height: 1.5; }

/* -------- FOOTER -------- */
.footer {
  background: var(--blue);
  border-top: 3px solid var(--yellow);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--yellow-light); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* -------- ANIMATIONS -------- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatWine {
  0%, 100% { transform: translateY(-50%) rotate(-5deg); }
  50%       { transform: translateY(calc(-50% - 20px)) rotate(5deg); }
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue); padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-wine-deco { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rules-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
}
