/*
Theme Name:  Quelle 16
Description: Eigenes Theme für quelle16.ch – schlicht, modern, keine Abhängigkeiten.
Version:     2.0
Author:      Quelle 16
Text Domain: quelle16
*/

/* ─── Custom Properties ─────────────────── */
/* Logo-Farben: Teal #2BBDB5 · Charcoal #3D4451 · Hellgrau #9BA4AE */
:root {
  --teal:   #2BBDB5;   /* Hauptfarbe – Berg-Icon im Logo          */
  --teal-d: #1E9890;   /* Teal dunkel – Hover / dunkle CTA        */
  --dark:   #3D4451;   /* Charcoal – Logo-Schrift "Quelle 16"     */
  --muted:  #7A8595;   /* Mittelgrau – Tagline / Nebentext        */
  --light:  #F4F5F7;   /* Helles Grau – Sektions-Hintergrund      */
  --border: #E2E4E8;
  --white:  #FFFFFF;

  /* Aliases für Block-Klassen (backward compat) */
  --green: var(--teal);
  --gold:  var(--teal-d);

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Cardo', Georgia, serif;

  --max-text: 820px;
  --max-wide: 1160px;
  --header-h: 104px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem);   font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); font-weight: 600; }
h3 { font-size: 1.15rem;                       font-weight: 600; }
h4 { font-size: 1rem;                          font-weight: 600; }
p  { margin-bottom: 1rem; line-height: 1.65; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ─── Layout ────────────────────────────── */
.container {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ─── Header ────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.site-logo__img {
  height: 84px;
  width: auto;
  display: block;
}
/* Fallback text */
.site-logo__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.site-logo__sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-body);
}

/* Nav */
.site-nav ul { display: flex; gap: 0.15rem; }
.site-nav a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 5px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  color: var(--dark);
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-page-ancestor > a {
  color: var(--teal);
  background: var(--light);
}
.site-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  margin-right: 0.75rem;
}
.site-lang-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-lang-switcher__link.is-current {
  border-color: var(--teal);
  color: var(--teal-d);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ─── Main ──────────────────────────────── */
.site-main { min-height: 60vh; }

/* ─── Blocks ────────────────────────────── */

/* Cover */
.wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
.wp-block-cover .wp-block-cover__image-background,
.wp-block-cover video.wp-block-cover__video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.wp-block-cover .wp-block-cover__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.has-background-dim    { opacity: 0.5; }
.has-background-dim-10 { opacity: 0.1; }
.has-background-dim-20 { opacity: 0.2; }
.has-background-dim-30 { opacity: 0.3; }
.has-background-dim-40 { opacity: 0.4; }
.has-background-dim-50 { opacity: 0.5; }
.has-background-dim-60 { opacity: 0.6; }
.has-background-dim-70 { opacity: 0.7; }
.has-background-dim-80 { opacity: 0.8; }
.has-background-dim-90 { opacity: 0.9; }
.wp-block-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  max-width: var(--max-text);
  width: 100%;
  padding-inline: clamp(1rem, 5vw, 3rem);
  padding-block: 4rem;
  text-align: center;
}
.wp-block-cover h1,
.wp-block-cover h2 { color: #fff; }
.wp-block-cover p   { color: rgba(255,255,255,0.88); margin-bottom: 0.75rem; }
.wp-block-cover .wp-block-cover__inner-container > .wp-block-buttons {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Group */
.wp-block-group {
  width: 100%;
}
/* Groups without background: constrain width */
.wp-block-group:not([class*="has-"][class*="background"]):not(.alignfull) {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
/* Groups with background color: full width, constrain inner */
.wp-block-group.has-background,
.wp-block-group[class*="has-"][class*="background-color"] {
  padding-inline: 0;
}
.wp-block-group.has-background > *,
.wp-block-group[class*="has-"][class*="background-color"] > * {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Columns */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}
.wp-block-column { flex: 1; min-width: min(260px, 100%); }

/* Image */
.wp-block-image img { border-radius: 6px; width: 100%; }
.wp-block-image.aligncenter,
.wp-block-image.aligncenter figure { margin-inline: auto; }

/* Bilder in Spalten: einheitliche Höhe */
.wp-block-columns .wp-block-image { overflow: hidden; border-radius: 8px; }
.wp-block-columns .wp-block-image img {
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* ─── Impressionen Gallery ───────────────── */
.q16-gallery {
  margin-block: 4rem;
}
.q16-gallery__title {
  text-align: center;
  margin-bottom: 1.5rem;
}
.q16-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.q16-gallery__grid > br {
  display: none;
}
.q16-gallery__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.q16-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s var(--ease);
}
.q16-gallery__item:hover img { transform: scale(1.05); cursor: zoom-in; }

/* ─── Lightbox ───────────────────────────── */
#q16-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
#q16-lightbox.is-open { display: flex; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lb-caption {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 1.25rem; right: 1.25rem; font-size: 1rem; }
.lb-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* Headings */
.wp-block-heading { font-family: var(--font-heading); }
.has-text-align-center { text-align: center; }
.has-text-align-left   { text-align: left; }
.has-text-align-right  { text-align: right; }

/* Lists */
.wp-block-list { padding-left: 1.5rem; list-style: disc; }
.wp-block-list li { margin-bottom: 0.4rem; line-height: 1.65; }

/* Buttons */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-button__link {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.15s var(--ease), transform 0.12s var(--ease);
  cursor: pointer;
  line-height: 1;
}
.wp-block-button__link:hover { opacity: 0.85; transform: translateY(-1px); }

/* Button colour maps – Logo-Farben */
.has-accent-background-color  { background: var(--teal)   !important; color: var(--white) !important; }
.has-primary-background-color { background: var(--teal-d) !important; color: var(--white) !important; }
.has-dark-background-color    { background: var(--dark)   !important; }
.has-light-background-color   { background: var(--light)  !important; }
.has-white-color   { color: var(--white)  !important; }
.has-primary-color { color: var(--teal-d) !important; }
.has-accent-color  { color: var(--teal)   !important; }
.has-text-color { } /* handled by inline style */

/* Outline button */
.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid currentColor;
}

/* Spacer */
.wp-block-spacer { display: block; }

/* Shortcode / HTML */
.wp-block-html iframe,
iframe {
  max-width: 100%;
  border-radius: 8px;
  display: block;
}

/* ─── Contact Form 7 ────────────────────── */
.wpcf7-form { display: flex; flex-direction: column; gap: 0.9rem; }
.wpcf7-form p { margin-bottom: 0; }
.wpcf7-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s var(--ease);
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,189,181,.1); }
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  width: fit-content;
  padding: 0.75rem 2rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.wpcf7-form input[type="submit"]:hover { opacity: 0.85; }

/* ─── Conversion Sections ────────────────── */
.q16-section {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding: 4rem clamp(1rem, 4vw, 2.5rem);
}
.q16-section--alt {
  background: linear-gradient(180deg, #f7faf9 0%, #eef5f4 100%);
}
.q16-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-d);
  font-weight: 700;
}
.q16-lead {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 2rem;
}
.q16-facts,
.q16-testimonials,
.q16-panels,
.q16-faq {
  display: grid;
  gap: 1rem;
}
.q16-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}
.q16-fact,
.q16-testimonial,
.q16-panel,
.q16-faq__item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  padding: 1.25rem;
  box-shadow: 0 12px 30px rgba(61, 68, 81, 0.06);
}
.q16-fact strong,
.q16-panel strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.q16-fact span,
.q16-panel span,
.q16-testimonial cite {
  color: var(--muted);
  font-style: normal;
}
.q16-testimonials {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.q16-testimonial p {
  font-size: 1.02rem;
}
.q16-testimonial cite {
  display: block;
  margin-top: 0.9rem;
}
.q16-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.75rem;
}
.q16-panel a {
  color: var(--teal-d);
  font-weight: 600;
}
.q16-faq {
  margin-top: 1.75rem;
}
.q16-faq__item h3 {
  margin-bottom: 0.5rem;
}

/* ─── Homepage ──────────────────────────── */
.q16-home {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding: 4.5rem clamp(1rem, 4vw, 2.5rem);
}
.q16-home--soft {
  background: linear-gradient(180deg, #f8fbfb 0%, #eff5f4 100%);
}
.q16-home__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-d);
}
.q16-home__intro {
  max-width: 760px;
  margin-bottom: 2.5rem;
}
.q16-home__intro p {
  color: var(--muted);
  font-size: 1.05rem;
}
.q16-home__facts,
.q16-home__grid {
  display: grid;
  gap: 1rem;
}
.q16-home__facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.q16-home__fact,
.q16-home__card,
.q16-home__cta {
  border: 1px solid rgba(61, 68, 81, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(61, 68, 81, 0.06);
}
.q16-home__fact {
  padding: 1.15rem 1.2rem;
}
.q16-home__fact strong,
.q16-home__card h3 {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--dark);
}
.q16-home__fact span,
.q16-home__card p {
  color: var(--muted);
}
.q16-home__split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: center;
}
.q16-home__split-copy {
  max-width: 620px;
}
.q16-home__split-copy ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.q16-home__split-copy li {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(61, 68, 81, 0.08);
}
.q16-home__split-copy li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.q16-home__split-copy strong {
  display: block;
  margin-bottom: 0.2rem;
}
.q16-home__visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 44px rgba(61, 68, 81, 0.12);
}
.q16-home__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.q16-home__card {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}
.q16-home__card p {
  margin-bottom: 0;
}
.q16-home__cta {
  max-width: 760px;
  margin-inline: auto;
  padding: 1.6rem;
  text-align: center;
}
.q16-home__cta p {
  color: var(--muted);
  margin: 0.75rem auto 1.25rem;
  max-width: 560px;
}

/* ─── Season Badges ─────────────────────── */
.q16-season-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}
.q16-season-badge--summer { background: #e8f4ec; color: #2d6a40; }
.q16-season-badge--winter { background: #e3eef8; color: #1a5a8a; }
.q16-season-badge--year   { background: #f0eefa; color: #5b3fa0; }

/* ─── Footer ────────────────────────────── */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--white);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3.5rem;
  align-items: flex-start;
}
.site-footer__address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.9;
  flex: 1 1 200px;
}
.site-footer__address strong {
  display: block;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.site-footer__links,
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.15rem;
}
.site-footer__links a,
.site-footer__legal a {
  color: var(--muted);
  transition: color 0.15s var(--ease);
}
.site-footer__links a:hover,
.site-footer__legal a:hover { color: var(--teal); }
.site-footer__legal { border-left: 1px solid var(--border); padding-left: 1.5rem; }
.site-footer__copy {
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0 !important;
}

/* ─── Responsive ────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-lang-switcher {
    margin-left: 0;
    margin-right: 0.5rem;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.7rem 1rem; border-radius: 5px; }

  .wp-block-columns { flex-direction: column; }
  .wp-block-column  { min-width: 100%; }

  .q16-gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .q16-home__facts,
  .q16-home__grid,
  .q16-home__split,
  .q16-facts,
  .q16-testimonials,
  .q16-panels {
    grid-template-columns: 1fr;
  }
  .site-footer__inner {
    flex-direction: column;
    gap: 1.25rem;
  }
  .site-footer__legal {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .q16-home__visual img {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 480px) {
  .q16-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
