/*
Theme Name:   Scheffelstrasse
Theme URI:    https://www.scheffelstrasse-erleben.de
Description:  Standalone Theme – Scheffelstraße neu erleben (Singen)
Author:       das Zwölfe / Thurner Gastro Singen GmbH
Author URI:   https://zwoelfe.info
Version:      1.0.0
Text Domain:  scheffelstrasse
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --sf-dark:   #2e2e2e;
  --sf-mid:    #162028;
  --sf-gold:   #c9a84c;
  --sf-gold2:  #e8c96a;
  --sf-cream:  #f5efe6;
  --sf-text:   #d4cfc8;
  --sf-accent: #7fb5a8;
  --sf-radius: 4px;
}

/* ============================================================
   GLOBAL RESET (page-scheffelstrasse template only)
   ============================================================ */
body.home {
  background: var(--sf-dark);
  color: var(--sf-text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body.home * {
  box-sizing: border-box;
}

body.home .site-content {
  padding: 0;
}

body.home .inside-article {
  padding: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.sf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: linear-gradient(to bottom, rgba(13,26,31,0.97) 0%, rgba(13,26,31,0.6) 70%, transparent 100%);
  transition: background 0.3s;
}

.sf-nav.scrolled {
  background: rgba(13,26,31,0.97) !important;
}

.sf-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.sf-nav-logo img {
  height: 50px; width: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(201,168,76,0.4);
}

.sf-nav-logo span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  font-size: 0.85rem;
}

.sf-nav-links {
  display: flex;
  gap: 2.3rem;
  list-style: none;
  margin: 0; padding: 0;
}

.sf-nav-links a {
  color: var(--sf-cream);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.sf-nav-links a:hover {
  opacity: 1;
  color: var(--sf-gold);
}

/* Mobile nav toggle */
.sf-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: var(--sf-radius);
}

/* ============================================================
   HERO
   ============================================================ */
.sf-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.sf-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  will-change: transform;
}

.sf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,26,31,0.4) 0%,
    rgba(13,26,31,0.12) 45%,
    rgba(13,26,31,0.85) 100%
  );
}

.sf-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.sf-eyebrow {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sf-gold);
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

.sf-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: #fff;
  text-shadow: 0 2px 60px rgba(0,0,0,0.7);
  margin: 0 0 0.3rem;
}

.sf-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--sf-gold2);
  display: block;
  font-size: 0.7em;
}

.sf-hero-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 1.5rem 0 2.5rem;
}

.sf-hero-tagline span {
  color: var(--sf-gold);
  margin: 0 0.5rem;
}

.sf-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  animation: sf-pulse 2.5s ease-in-out infinite;
}

.sf-scroll-hint::after {
  content: '';
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
}

@keyframes sf-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.7; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.sf-btn {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  background: var(--sf-gold);
  color: #0d1a1f;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--sf-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.sf-btn:hover {
  background: var(--sf-gold2);
  transform: translateY(-2px);
  color: #0d1a1f;
  text-decoration: none;
}

/* Mobile CTA – fixed bottom bar */
.sf-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--sf-gold);
  text-align: center;
  padding: 1rem;
}

.sf-mobile-cta a {
  color: #0d1a1f;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ============================================================
   PHOTO STRIP
   ============================================================ */
.sf-photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--sf-dark);
}

.sf-photo-panel {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.sf-photo-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.sf-photo-panel:hover img {
  transform: scale(1.03);
}

.sf-photo-panel.sf-old img {
  filter: grayscale(100%) contrast(1.05);
}

.sf-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(to top, rgba(13,26,31,0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sf-photo-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sf-gold);
}

.sf-photo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   SECTIONS – COMMON
   ============================================================ */
.sf-section {
  padding: 7rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sf-section-full {
  padding: 7rem 4rem;
}

.sf-section-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sf-gold);
  margin-bottom: 0.8rem;
  display: block;
}

.sf-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.sf-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.25), transparent);
  margin: 0 4rem;
}

/* ============================================================
   GESCHICHTE
   ============================================================ */
.sf-history-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.sf-history-num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(201,168,76,0.1);
  line-height: 1;
  margin-bottom: -1.5rem;
}

.sf-history-text p {
  line-height: 1.85;
  font-weight: 300;
  color: var(--sf-text);
  font-size: 1rem;
}

.sf-history-text p + p {
  margin-top: 1.2rem;
}

.sf-logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: var(--sf-cream);
  border-radius: var(--sf-radius);
}

.sf-logo-display img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 50%;
}

/* ============================================================
   AKTIONEN
   ============================================================ */
.sf-aktionen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.sf-aktion-card {
  background: var(--sf-mid);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--sf-radius);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.sf-aktion-card:hover {
  border-color: var(--sf-gold);
  transform: translateY(-3px);
}

.sf-aktion-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sf-dark);
  background: var(--sf-gold);
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.sf-aktion-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.sf-aktion-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--sf-text);
  font-weight: 300;
}

.sf-aktion-date {
  font-size: 0.75rem;
  color: var(--sf-gold);
  margin-top: 1rem;
  letter-spacing: 0.1em;
  display: block;
}

/* ============================================================
   GEWINNSPIEL
   ============================================================ */
.sf-gewinnspiel-bg {
  background: var(--sf-mid);
}

.sf-gewinnspiel-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.sf-gewinnspiel-inner p.sf-lead {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--sf-text);
}

.sf-prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.sf-prize-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.sf-prize-icon {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}

.sf-prize-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.sf-prize-card p {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--sf-text);
}

.sf-sponsor {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sf-gold);
}

.sf-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: left;
}

.sf-step-card {
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 1.6rem;
}

.sf-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sf-gold);
  color: var(--sf-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.sf-step-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--sf-text);
  font-weight: 300;
}

/* Contact Form 7 overrides */
.sf-gewinnspiel-form .wpcf7 {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.sf-gewinnspiel-form .wpcf7 input[type="text"],
.sf-gewinnspiel-form .wpcf7 input[type="email"],
.sf-gewinnspiel-form .wpcf7 input[type="tel"] {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 0.85rem 1.2rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 0.8rem;
}

.sf-gewinnspiel-form .wpcf7 input:focus {
  border-color: var(--sf-gold);
}

.sf-gewinnspiel-form .wpcf7 input::placeholder {
  color: rgba(255,255,255,0.35);
}

.sf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.sf-form-row.single {
  grid-template-columns: 1fr;
}

.sf-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 1rem 0 1.5rem;
}

.sf-checkbox-row input {
  margin-top: 2px;
  accent-color: var(--sf-gold);
  flex-shrink: 0;
}

.sf-checkbox-row a { color: var(--sf-gold); }

.sf-gewinnspiel-form .wpcf7 input[type="submit"] {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  background: var(--sf-gold);
  color: #0d1a1f;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--sf-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.sf-gewinnspiel-form .wpcf7 input[type="submit"]:hover {
  background: var(--sf-gold2);
  transform: translateY(-2px);
}

.wpcf7-not-valid-tip {
  color: #f08080 !important;
  font-size: 0.78rem !important;
}

.wpcf7-response-output {
  border: 1px solid var(--sf-accent) !important;
  background: rgba(127,181,168,0.12) !important;
  color: var(--sf-accent) !important;
  border-radius: 4px !important;
  padding: 1rem !important;
  font-size: 0.9rem !important;
  margin-top: 1rem !important;
}

.sf-cycle-note {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 1.5rem;
  text-align: center;
}

/* ============================================================
   GEWINNER-ARCHIV
   ============================================================ */
.sf-archiv-list {
  list-style: none;
  margin: 2rem auto 0;
  max-width: 700px;
  padding: 0;
}

.sf-archiv-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  font-size: 0.92rem;
  color: var(--sf-text);
}

.sf-archiv-empty {
  color: rgba(212,207,200,0.5);
  font-style: italic;
  justify-content: flex-start !important;
}

.sf-archiv-date {
  color: var(--sf-gold);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ============================================================
   TEILNAHMEBEDINGUNGEN
   ============================================================ */
.sf-bedingungen-box {
  background: var(--sf-mid);
  border-radius: 6px;
  padding: 0.5rem 2rem;
  margin-top: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.sf-bedingungen-box details summary {
  font-weight: 700;
  cursor: pointer;
  padding: 1.2rem 0;
  color: #fff;
  font-size: 0.95rem;
  list-style: none;
}

.sf-bedingungen-box details summary::before {
  content: '+ ';
  color: var(--sf-gold);
}

.sf-bedingungen-box details[open] summary::before {
  content: '− ';
}

.sf-bedingungen-box details ol {
  margin: 0 0 1.5rem 1.2rem;
}

.sf-bedingungen-box details li {
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--sf-text);
  font-weight: 300;
}

.sf-bedingungen-box details a {
  color: var(--sf-gold);
}

/* ============================================================
   HÄNDLER
   ============================================================ */
.sf-haendler-intro {
  max-width: 550px;
  margin-bottom: 3.5rem;
}

.sf-haendler-intro p {
  line-height: 1.85;
  font-weight: 300;
  color: var(--sf-text);
}

.sf-haendler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.sf-haendler-card {
  background: var(--sf-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--sf-radius);
  padding: 1.8rem 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}

.sf-haendler-card:hover {
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.sf-haendler-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.sf-haendler-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sf-gold);
  margin-bottom: 0.4rem;
}

.sf-haendler-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.sf-haendler-desc {
  font-size: 0.82rem;
  color: rgba(212,207,200,0.6);
  line-height: 1.6;
  flex: 1;
  font-weight: 300;
}

.sf-haendler-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-gold);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.sf-cta-band {
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(127,181,168,0.06) 100%);
  border-top: 1px solid rgba(201,168,76,0.18);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  padding: 5rem 4rem;
  text-align: center;
}

.sf-cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
}

.sf-cta-band p {
  max-width: 500px;
  margin: 0 auto 2rem;
  font-weight: 300;
  color: var(--sf-text);
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.sf-footer {
  padding: 3rem 4rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.sf-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sf-footer-logo img {
  height: 40px; width: 40px;
  border-radius: 50%;
  opacity: 0.7;
}

.sf-footer a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}

.sf-footer a:hover {
  color: var(--sf-gold);
}

/* ============================================================
   SCROLL ANIMATIONS – Progressive Enhancement
   Elements are always visible by default.
   When JS adds 'sf-js-ready' to body, they start hidden and animate in.
   ============================================================ */
.sf-fade-up {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.sf-js-ready .sf-fade-up {
  opacity: 0;
  transform: translateY(24px);
}

body.sf-js-ready .sf-fade-up.sf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .sf-nav { padding: 1rem 1.5rem; }
  .sf-nav-links { display: none; }
  .sf-nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,26,31,0.98); padding: 1.5rem; gap: 1.2rem; }
  .sf-nav-toggle { display: block; }

  .sf-section, .sf-section-full { padding: 4rem 1.5rem; }
  .sf-divider { margin: 0 1.5rem; }

  .sf-photo-strip { grid-template-columns: 1fr; }
  .sf-photo-panel { aspect-ratio: 4/3; }

  .sf-history-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .sf-steps-grid { grid-template-columns: 1fr; }
  .sf-form-row { grid-template-columns: 1fr; }

  .sf-cta-band { padding: 3.5rem 1.5rem; }

  .sf-footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }

  .sf-mobile-cta { display: block; }
}

@media (max-width: 480px) {
  .sf-prizes-grid { grid-template-columns: 1fr; }
}