/* Custom global styles extracted from base.html */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/static/fonts/montserrat-v31-latin-300.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/montserrat-v31-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/montserrat-v31-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/montserrat-v31-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/montserrat-v31-latin-700.woff2") format("woff2");
}

:root {
  --pine-900: #0a1f14;
  --pine-700: #0f2e1f;
  --pine-500: #174f36;
  --pine-400: #1f5f42;
  --berry: #d7263d;
  --berry-dark: #b11f32;
  --gold: #f4c16c;
  --snow: #f6fff4;
  --hero-lights-image: url("/static/images/lichterkette.svg");
  --hero-lights-filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  --hero-lights-opacity: 0.9;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #2a7a5a;
  background-image: linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%);
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  color: var(--snow);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: scroll-position;
}

@supports (background-blend-mode: overlay) {
  body {
    background-image: url("/static/images/snowflakes_tile.svg"),
      radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
      linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%);
    background-size: auto, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat;
    background-position: center, center, center;
    background-blend-mode: overlay;
  }
}

body.modal-open {
  overflow: hidden;
  transform: none;
  -webkit-transform: none;
  will-change: auto;
}

header {
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 79, 54, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header a {
  color: var(--pine-500);
}

nav a {
  color: var(--snow);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

nav a:hover {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(244, 193, 108, 0.6);
}

.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(23, 79, 54, 0.2);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
  min-width: 0;
}

article.card,
section.card {
  width: 100%;
  max-width: 100%;
}

.card.border-t-0,
.hero-card {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  position: relative;
}

.hero-card {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 30px,
    rgba(255, 255, 255, 0.95) 60px,
    rgba(255, 255, 255, 0.85) 100%
  );
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 44px;
  background-image: var(--hero-lights-image);
  background-repeat: repeat-x;
  background-position: top left;
  background-size: 573px 44px;
  pointer-events: none;
  z-index: 1;
  opacity: var(--hero-lights-opacity, 0.9);
  filter: var(--hero-lights-filter, none);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(23, 79, 54, 0.15);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--berry) 0%, #e63c4d 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(215, 38, 61, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(215, 38, 61, 0.3);
  background: linear-gradient(135deg, var(--berry-dark) 0%, var(--berry) 100%);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(244, 193, 108, 0.5);
  color: var(--gold);
  border-radius: 1rem;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  transition: border 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(244, 193, 108, 0.85);
  color: #fff;
}

.input-field {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(23, 79, 54, 0.3);
  border-radius: 1rem;
  color: #1a1a1a;
  padding: 0.85rem 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--pine-500);
  box-shadow: 0 0 0 3px rgba(23, 79, 54, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

[class*="bg-slate-900"] {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #1a1a1a !important;
}

[class*="bg-slate-950"] {
  background-color: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #1a1a1a !important;
}

[class*="border-slate-800"] {
  border-color: rgba(23, 79, 54, 0.2) !important;
}

[class*="border-slate-700"] {
  border-color: rgba(23, 79, 54, 0.3) !important;
}

[class*="text-slate-400"],
[class*="text-slate-300"] {
  color: #666666 !important;
}

[class*="text-slate-500"] {
  color: #888888 !important;
}

.flash-success {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(23, 79, 54, 0.4);
  color: #174f36;
}

.flash-error {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(215, 38, 61, 0.4);
  color: #d7263d;
}

.flash-info {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 50, 65, 0.4);
  color: #143241;
}

footer {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
}

footer a:hover {
  color: var(--gold);
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 100px;
}

.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}

/* Seasonal background modifiers */
.theme-winter {
  background-image: url("/static/images/snowflakes_tile.svg"),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%);
}

.theme-spring {
  background-image: url("/static/images/snowflakes_tile.svg"),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%);
}

.theme-summer {
  background-image: url("/static/images/snowflakes_tile.svg"),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%);
}

.theme-autumn {
  background-image: url("/static/images/snowflakes_tile.svg"),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%);
}

.theme-christmas {
  background-image: url("/static/images/snowflakes_tile.svg"),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%);
}

.theme-newyear {
  background-image: url("/static/images/snowflakes_tile.svg"),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%);
}

.theme-valentine {
  background-image: url("/static/images/snowflakes_tile.svg"),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%);
}

.theme-easter {
  background-image: url("/static/images/snowflakes_tile.svg"),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, #1f5f42 0%, #2a7a5a 45%, #3a9a6f 100%);
}

/* Hero lights seasonal tint */
body.theme-winter {
  --hero-lights-image: url("/static/images/lichterkette.svg");
  --hero-lights-filter: drop-shadow(0 0 8px rgba(173, 216, 230, 0.85))
    hue-rotate(180deg) saturate(1.2);
}

body.theme-spring {
  --hero-lights-image: url("/static/images/lichterkette.svg");
  --hero-lights-filter: drop-shadow(0 0 8px rgba(123, 198, 125, 0.9))
    hue-rotate(70deg) saturate(1.25);
}

body.theme-summer {
  --hero-lights-image: url("/static/images/lichterkette.svg");
  --hero-lights-filter: drop-shadow(0 0 10px rgba(73, 197, 212, 0.9))
    hue-rotate(130deg) saturate(1.35);
}

body.theme-autumn {
  --hero-lights-image: url("/static/images/lichterkette.svg");
  --hero-lights-filter: drop-shadow(0 0 8px rgba(216, 138, 68, 0.85))
    hue-rotate(30deg) saturate(1.3);
}

body.theme-christmas {
  --hero-lights-image: url("/static/images/lichterkette.svg");
  --hero-lights-filter: drop-shadow(0 0 10px rgba(244, 193, 108, 0.95))
    saturate(1.4);
  --hero-lights-opacity: 1;
}

body.theme-newyear {
  --hero-lights-image: url("/static/images/lichterkette.svg");
  --hero-lights-filter: drop-shadow(0 0 12px rgba(168, 202, 255, 0.95))
    hue-rotate(220deg) saturate(1.5);
  --hero-lights-opacity: 1;
}

body.theme-valentine {
  --hero-lights-image: url("/static/images/lichterkette.svg");
  --hero-lights-filter: drop-shadow(0 0 10px rgba(230, 60, 77, 0.9))
    hue-rotate(320deg) saturate(1.4);
}

body.theme-easter {
  --hero-lights-image: url("/static/images/lichterkette.svg");
  --hero-lights-filter: drop-shadow(0 0 10px rgba(248, 177, 149, 0.85))
    hue-rotate(25deg) saturate(1.25);
}

