@import "./calendar-dropdowns.css";
@import "./components/link-card.css";
@import "./components/event-teaser.css";
@import "./components/event-hero.css";

/* Core Stuff */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Regular.woff2") format('woff2');
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Regular.woff2") format('woff2');
  font-weight: 500;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Light.woff2") format('woff2');
  font-weight: 400;
}

:root {
  /* =====================================================
     1. COLORS
     ===================================================== */

  /* Neutral */
  --color-white: #ffffff;
  --color-black: #111111;

  --color-gray-100: #f7f7f7;
  --color-gray-200: #eaeaea;
  --color-gray-400: #999999;
  --color-gray-600: #666666;
  --color-gray-800: #333333;

  /* Saison-Akzent*/
  /* --color-accent: #cc4425; */
  --color-accent: #154789;
  --color-background: #fffdfa;
  --color-accent-hover: #103567;
  --color-accent-soft: #f4e6e6;

  /* =====================================================
     2. SEMANTIC COLORS
     ===================================================== */

  --color-bg-primary: var(--color-background);
  /* --color-accent, 98% lightened */
  --color-bg-secondary: #f9fbfe;

  --color-text-primary: var(--color-black);
  --color-text-secondary: var(--color-gray-600);
  --color-text-muted: var(--color-gray-400);

  --color-border: var(--color-gray-200);

  --color-link: var(--color-accent);
  --color-link-hover: var(--color-accent-hover);

  --color-button-primary-bg: var(--color-accent);
  --color-button-primary-text: #ffffff;

  /* =====================================================
     3. TYPOGRAPHY
     ===================================================== */

  /* Font Families */
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Nunito", system-ui, sans-serif;

  /* Headings */
  --font-size-h1: clamp(2rem, 4vw, 3.5rem);
  --font-size-h2: clamp(1.75rem, 3vw, 2.25rem);
  --font-size-h3: clamp(1.25rem, 2vw, 1.5rem);

  /* Body text */
  --font-size-body: clamp(1rem, 1.2vw, 1.125rem);
  --font-size-meta: clamp(0.9rem, 1vw, 1rem);
  --font-size-caption: clamp(0.8rem, 0.8vw, 0.875rem);

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.7;

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* =====================================================
     4. SPACING SYSTEM (8px grid)
     ===================================================== */

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* =====================================================
     5. LAYOUT
     ===================================================== */

  --container-width: 1200px;
  --container-padding: 24px;

  --grid-gap: var(--space-l);

  /* =====================================================
     6. BORDER RADIUS
     ===================================================== */

  --radius-small: 4px;
  --radius-medium: 6px;
  --radius-large: 12px;

  /* =====================================================
     7. SHADOWS 
     ===================================================== */

  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);

  /* =====================================================
     8. TRANSITIONS
     ===================================================== */

  --transition-fast: 120ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 400ms ease;

  /* =====================================================
     9. Z-INDEX SCALE
     ===================================================== */

  --z-header: 100;
  --z-overlay: 500;
  --z-modal: 1000;

  /* Cards */
  --card-bg: var(--color-white);
  --card-radius: var(--radius-medium);
  --card-shadow: var(--shadow-soft);

  /* Buttons */
  --button-height: 48px;
  --button-padding: 6px 20px;
  --button-padding-large: 10px 20px;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
}

body {
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  line-height: var(--line-height-tight);
  color: var(--color-text-secondary);
  margin-bottom: 0.5em;
}

h2,
h3,
h4 {
  margin-top: 1.75em;
}

h1 {
  font-size: var(--font-size-h1);
  text-align: center;
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-meta);
  margin: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

p {
  max-width: 65ch;
}

p:first-of-type {
  margin-top: 0;
}

ul {
  padding: 0;
}

figure {
  margin: 0;
}

img[data-lightbox] {
  cursor: pointer;
}

input,
textarea {
  display: block;
  padding: 7px;
  border: 1px solid var(--color-text-primary);
  border-radius: 2px;
  background: transparent;
  height: 45px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

input.button {
  border: none;
}

footer {
  background-color: var(--color-bg-secondary);
  padding: 3.5rem;
  margin-top: 4rem;
}

footer p {
  margin: 0;
}

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Utility Classes */
.wrapper {
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.wrapper-narrow {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.wrapper img,
.wrapper-narrow img {
  max-width: 100%;
}

.padding {
  padding: 3rem 1rem;
}

.left {
  float: left;
}

.right {
  float: right;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: 25px;
  padding: var(--button-padding);
  margin-top: 12px;
  text-shadow: none !important;
}

.button:hover {
  color: var(--color-white);
  background-color: var(--color-accent-hover);
  cursor: pointer;
}

.button-secondary {
  background-color: var(--color-background);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.button-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.button-large {
  padding: var(--button-padding-large);
}

.button-square {
  border-radius: 5px;
}

.icon {
  margin-top: 2px;
  display: inline-block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-s);
}

/* Content Styling */

/*
 Gallery
*/

.gallery {
  display: grid;
}

/* Columns (Desktop) */
.gallery.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Gaps */
.gallery.gap-sm {
  gap: 0.5rem;
}

.gallery.gap-md {
  gap: 1rem;
}

.gallery.gap-lg {
  gap: 2rem;
}

/* Tablet */
@media (max-width: 1200px) {

  .gallery,
  .gallery.cols-2,
  .gallery.cols-3,
  .gallery.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {

  .gallery,
  .gallery.cols-2,
  .gallery.cols-3,
  .gallery.cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Image styling */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Optional: consistent ratio */
.gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Caption */
.gallery-item figcaption {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #666;
}

/*
  Events
*/

.event-teaser-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) and (min-width: 544px) {
  .event-teaser-container {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }
}

@media (max-width: 544px) {
  .event-teaser-container {
    grid-template-columns: 1fr;
  }
}

.lite-light-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lite-light-caption {
  margin-top: 0.5rem;
  color: white;
  font-size: 1.2rem;
  text-align: center;
  max-width: 80%;
}

.solar--arrow-left-line-duotone {
  display: inline-block;
  width: 24px;
  height: 24px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none'%3E%3Cpath fill='%23000' d='M20 12.75a.75.75 0 0 0 0-1.5zm0-1.5H4v1.5h16z' opacity='0.5'/%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m10 6l-6 6l6 6'/%3E%3C/g%3E%3C/svg%3E");
  background-color: currentColor;
  mask-image: var(--svg);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.solar--square-top-down-line-duotone {
  display: inline-block;
  width: 24px;
  height: 24px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.5'%3E%3Cpath stroke-linejoin='round' d='m13 11l9-9m0 0h-5.344M22 2v5.344'/%3E%3Cpath d='M22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12s0-7.071 1.464-8.536C4.93 2 7.286 2 12 2' opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
  background-color: currentColor;
  mask-image: var(--svg);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}


.solar--point-on-map-line-duotone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23686868' stroke-width='1.5'%3E%3Cpath d='m18 8l.949.316c.99.33 1.485.495 1.768.888s.283.915.283 1.958v5.667c0 1.29 0 1.936-.34 2.351c-.115.14-.255.26-.413.35c-.465.267-1.102.16-2.375-.051c-1.256-.21-1.884-.314-2.507-.262q-.329.027-.65.097c-.61.134-1.185.421-2.334.996c-1.5.75-2.25 1.125-3.048 1.24q-.36.052-.726.052c-.807-.002-1.595-.265-3.172-.79l-.384-.128c-.99-.33-1.485-.495-1.768-.888S3 18.88 3 17.838v-4.93c0-1.659 0-2.488.488-2.934a1.5 1.5 0 0 1 .281-.203c.578-.322 1.365-.06 2.938.465' opacity='0.5'/%3E%3Cpath d='M6 7.7C6 4.552 8.686 2 12 2s6 2.552 6 5.7c0 3.124-1.915 6.769-4.903 8.072a2.76 2.76 0 0 1-2.194 0C7.915 14.47 6 10.824 6 7.7Z'/%3E%3Ccircle cx='12' cy='8' r='2'/%3E%3C/g%3E%3C/svg%3E");
}