/* ============================================
   LOKALE WEBFONTS
   ============================================
   Variable Fonts, selbst gehostet statt von Google
   Fonts geladen — vermeidet die externe Verbindung zu
   fonts.googleapis.com / fonts.gstatic.com und die damit
   verbundene Übertragung der Besucher-IP an Google.
   ============================================ */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Variable.woff2') format('woff2-variations'),
       url('fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces-Variable.woff2') format('woff2-variations'),
       url('fonts/Fraunces-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   TOKENS
   ============================================ */
   :root {
    --ink: #1A1D1B;
    --ink-soft: #2B2F2D;
    --cream: #F7F5F0;
    --cream-dim: #EFEBE3;
    --mint: #4FBA8F;
    --mint-deep: #357A5E;
    --grey: #6B6B6B;
    --white: #FFFFFF;
  
    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
  
    --wrap: 1120px;
    --radius: 4px;
  }
  
  * { box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  img { max-width: 100%; display: block; }
  
  a { color: inherit; }
  
  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    margin: 0;
    line-height: 1.15;
  }
  
  p { margin: 0; }
  
  .wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px;
  }
  
  .section { padding: 88px 0; }
  
  /* ============================================
     BUTTONS
     ============================================ */
  .btn {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius);
    transition: transform 0.15s ease, background 0.15s ease;
  }
  
  .btn-primary {
    background: var(--mint);
    color: var(--ink);
  }
  
  .btn-primary:hover {
    background: #5FCBA0;
    transform: translateY(-1px);
  }
  
  .btn-small {
    background: transparent;
    border: 1.5px solid var(--mint);
    color: var(--cream);
    padding: 9px 18px;
    font-size: 0.85rem;
  }
  
  .btn-small:hover {
    background: var(--mint);
    color: var(--ink);
  }
  
  :focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
  }
  
  /* ============================================
     HEADER
     ============================================ */
  .site-header {
    background: var(--ink);
    padding: 18px 0;
    position: relative;
    z-index: 100;
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .brand {
    font-family: var(--font-display);
    color: var(--cream);
    font-size: 1.15rem;
    text-decoration: none;
    letter-spacing: 0.01em;
  }
  
  /* ============================================
     HERO
     ============================================ */
  .hero {
    background: var(--ink);
    color: var(--cream);
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
  }
  
  .eyebrow {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 18px;
  }
  
  .hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    color: var(--white);
    margin-bottom: 22px;
  }
  
  .hero-lede {
    font-size: 1.08rem;
    color: #C9CDC9;
    max-width: 480px;
    margin-bottom: 32px;
  }
  
  .hero-actions { margin-bottom: 18px; }
  
  .hero-contact {
    font-size: 0.88rem;
    color: #9A9F9A;
  }
  
  .hero-contact a {
    color: var(--mint);
    text-decoration: none;
  }
  
  .hero-figure {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  
  .figure-blocks {
    position: absolute;
    top: -20px;
    right: 8%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 0;
  }
  
  .figure-blocks span {
    display: block;
    height: 10px;
    border-radius: 2px;
    background: var(--mint-deep);
    opacity: 0.6;
  }
  .figure-blocks span:nth-child(1) { width: 64px; }
  .figure-blocks span:nth-child(2) { width: 40px; background: var(--mint); opacity: 0.85; }
  .figure-blocks span:nth-child(3) { width: 52px; }
  
  .figure-photo {
    position: relative;
    width: 260px;
    aspect-ratio: 1 / 1.05;
    z-index: 1;
    overflow: hidden;
    border-radius: 6px;
  }

  .figure-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid var(--mint-deep);
    transition: transform 0.2s ease;
  }

  .figure-photo:hover img {
    transform: scale(1.05);
  }

  .badge-link {
    position: relative;
    z-index: 1;
  }

  .badge-link img {
    width: 104px;
    height: 104px;
    display: block;
    border-radius: 6px;
    transition: transform 0.15s ease;
  }

  .badge-link a:hover img {
    transform: translateY(-2px);
  }
  
  .photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background:
      linear-gradient(160deg, rgba(79,186,143,0.25), rgba(26,29,27,0));
    border: 1.5px solid var(--mint-deep);
    background-color: #30352F;
    background-image:
      radial-gradient(circle at 50% 38%, #4A4F49 0 22%, transparent 23%),
      linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.25) 100%);
  }
  
  /* Replace .photo-frame with an <img> in production —
     this is a placeholder silhouette so the layout works without an image asset. */

  /* ---- Real image variant (meetups.html) ---- */
  .hero-photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1.05;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid var(--mint-deep);
    background-color: #30352F;
  }
  
  /* ============================================
     CREDENTIAL STRIP
     ============================================ */
  .credential-strip {
    background: var(--mint-deep);
    padding: 16px 0;
  }
  
  .credential-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    color: var(--cream);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
  }
  
  .credential-inner .dot { color: rgba(247,245,240,0.5); }
  
  /* ============================================
     OFFER
     ============================================ */
  .offer h2, .about h2, .testimonials h2, .cta-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 40px;
  }
  
  .offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  
  .offer-card {
    background: var(--white);
    border: 1px solid var(--cream-dim);
    border-left: 3px solid var(--mint);
    padding: 26px 28px;
    border-radius: var(--radius);
  }
  
  .offer-num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 8px;
  }
  
  .offer-card p:last-child {
    color: var(--grey);
    font-size: 0.95rem;
  }
  
  /* ============================================
     ABOUT
     ============================================ */
  .about { background: var(--cream-dim); }
  
  .about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
  
  .about p { margin-bottom: 16px; color: var(--ink-soft); }
  .about p:last-child { margin-bottom: 0; }
  
  .about-list p {
    font-size: 0.95rem;
    color: var(--grey);
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #DCD7CC;
  }
  .about-list p:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .about-list strong { color: var(--ink); font-family: var(--font-display); font-weight: 500; }
  
  /* ============================================
     TESTIMONIALS
     ============================================ */
  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  blockquote {
    margin: 0;
    background: var(--white);
    padding: 28px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--cream-dim);
  }
  
  blockquote p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 16px;
  }
  
  blockquote cite {
    font-size: 0.82rem;
    color: var(--mint-deep);
    font-style: normal;
    font-weight: 600;
  }

  .reviews-summary {
    margin-top: 32px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--ink-soft);
  }

  .reviews-stars {
    color: var(--mint-deep);
    letter-spacing: 1px;
    margin-right: 6px;
  }

  .reviews-summary a {
    color: var(--mint-deep);
    font-weight: 600;
    text-decoration: none;
  }

  .reviews-summary a:hover {
    text-decoration: underline;
  }
  
  /* ============================================
     CTA
     ============================================ */
  .cta-section {
    background: var(--ink);
    color: var(--cream);
    text-align: center;
  }
  
  .cta-inner h2 { color: var(--white); margin-bottom: 14px; }
  
  .cta-inner p {
    color: #C9CDC9;
    max-width: 520px;
    margin: 0 auto 28px;
  }
  
  /* ============================================
     FOOTER
     ============================================ */
  .site-footer {
    background: var(--ink);
    border-top: 1px solid rgba(247,245,240,0.1);
    padding: 26px 0 36px;
  }
  
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }
  
  .footer-inner p {
    color: #8A8F8A;
    font-size: 0.82rem;
  }
  
  .footer-links { display: flex; gap: 20px; }
  
  .footer-links a {
    color: #8A8F8A;
    font-size: 0.82rem;
    text-decoration: none;
  }
  
  .footer-links a:hover { color: var(--mint); }

  .footer-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
  }

  .footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .footer-social a {
    color: #8A8F8A;
    display: inline-flex;
    transition: color 0.15s ease;
  }

  .footer-social svg {
    width: 18px;
    height: 18px;
  }

  .footer-social a:hover {
    color: var(--mint);
  }
  
  /* ============================================
     RESPONSIVE
     ============================================ */
  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-figure { order: -1; }
    .figure-blocks { display: none; }
    .figure-photo { width: 180px; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .offer-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .hero { padding: 56px 0 64px; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
  }

  /* ============================================
     HEADER NAV (templates.html)
     ============================================ */
  .header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .site-nav-mount {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  /* ---- Mobile burger toggle ---- */
  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cream);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: #9A9F9A;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .header-nav-link:hover,
  .header-nav-link.is-active {
    color: var(--mint);
  }

  /* ============================================
     PLACEHOLDER PAGES (meetups.html, kontakt.html)
     ============================================ */
  .placeholder-note {
    color: var(--grey);
    font-size: 1rem;
    max-width: 560px;
  }

  /* ============================================
     COMPASS SIGNATURE (hero-figure on templates.html)
     ============================================ */
  .compass-svg {
    width: 100%;
    max-width: 260px;
    height: auto;
    animation: compass-settle 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes compass-settle {
    0%   { transform: rotate(-34deg); opacity: 0; }
    60%  { opacity: 1; }
    100% { transform: rotate(0deg); opacity: 1; }
  }

  .compass-ring {
    fill: none;
    stroke: var(--mint-deep);
    stroke-width: 1.5;
    opacity: 0.55;
  }

  .compass-ring-dim { opacity: 0.3; }

  .compass-tick {
    stroke: var(--mint);
    stroke-width: 2;
    opacity: 0.7;
  }

  .compass-needle {
    fill: var(--mint);
    opacity: 0.92;
  }

  .compass-pivot { fill: var(--cream); }

  @media (prefers-reduced-motion: reduce) {
    .compass-svg { animation: none; }
  }

  /* ============================================
     PHILOSOPHY LEAD (about section on templates.html)
     ============================================ */
  .philosophy-lead {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
  }

  .cta-inline {
    margin-top: 24px;
  }

  /* ============================================
     CATALOG (offer section on templates.html)
     ============================================ */
  .catalog-head {
    max-width: 560px;
    margin-bottom: 36px;
  }

  .catalog-sub {
    color: var(--grey);
    font-size: 1rem;
    margin-top: 10px;
  }

  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--cream-dim);
  }

  .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--white);
    border: 1px solid var(--cream-dim);
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }

  .filter-mark {
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--mint-deep);
    width: 16px;
    text-align: center;
  }

  .filter-btn:hover { border-color: var(--mint); }

  .filter-btn.is-active {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
  }

  .filter-btn.is-active .filter-mark { color: var(--mint); }

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

  .catalog-card {
    display: flex;
    flex-direction: column;
  }

  .catalog-card.is-hidden { display: none; }

  .card-cat {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mint-deep);
    margin-bottom: 10px;
  }

  .catalog-card p:not(.offer-num):not(.card-cat) {
    color: var(--grey);
    font-size: 0.92rem;
    margin-bottom: 18px;
    flex-grow: 1;
  }

  .card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--cream-dim);
  }

  .price {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
  }

  .price-free { color: var(--mint-deep); }

  .card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .card-link:hover { color: var(--mint-deep); }

  .card-link-row {
    margin-top: 16px;
  }

  .catalog-note {
    margin-top: 32px;
    font-size: 0.82rem;
    color: var(--grey);
  }

  /* ============================================
     FAQ ACCORDION (faq.html)
     ============================================ */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .faq-item {
    background: var(--white);
    border: 1px solid var(--cream-dim);
    border-left: 3px solid var(--mint);
    border-radius: var(--radius);
    padding: 4px 28px;
  }

  .faq-item.is-hidden {
    display: none;
  }

  .faq-question {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--ink);
  }

  .faq-question::-webkit-details-marker {
    display: none;
  }

  .faq-icon {
    flex-shrink: 0;
    position: relative;
    width: 18px;
    height: 18px;
  }

  .faq-icon::before,
  .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--mint-deep);
    transition: transform 0.2s ease;
  }

  .faq-icon::before {
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
  }

  .faq-icon::after {
    top: 0;
    left: 8px;
    width: 2px;
    height: 18px;
  }

  .faq-item[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
  }

  .faq-answer {
    padding: 0 0 22px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .faq-answer p {
    margin-bottom: 12px;
  }

  .faq-answer p:last-child {
    margin-bottom: 0;
  }

  .faq-answer ul {
    margin: 0 0 12px;
    padding-left: 20px;
  }

  .faq-answer li {
    margin-bottom: 6px;
  }

  .faq-answer a {
    color: var(--mint-deep);
    font-weight: 600;
    text-decoration: none;
  }

  .faq-answer a:hover {
    text-decoration: underline;
  }

  /* ============================================
     LEGAL PAGES (agb.html)
     ============================================ */
  .hero-compact {
    padding: 56px 0 48px;
  }

  .hero-compact h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    color: var(--white);
    margin-top: 14px;
  }

  .legal-content {
    background: var(--cream);
  }

  .legal-wrap {
    max-width: 720px;
  }

  .legal-meta {
    color: var(--grey);
    font-size: 0.92rem;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cream-dim);
  }

  .legal-meta a {
    color: var(--mint-deep);
    text-decoration: none;
  }

  .legal-content h2 {
    font-size: 1.15rem;
    margin-top: 40px;
    margin-bottom: 14px;
  }

  .legal-content h2:first-of-type {
    margin-top: 0;
  }

  .legal-content p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 12px;
  }

  /* ============================================
     BLOG OVERVIEW (blog.html)
     ============================================ */
  .filter-bar-topics {
    margin-top: -16px;
  }

  .empty-state-hidden {
    display: none;
  }

  /* ============================================
     BLOG ARTICLE TEMPLATE (blog-artikel-vorlage.html)
     ============================================ */
  .article-meta {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #9A9F9A;
  }

  .article-body {
    max-width: 680px;
  }

  .article-lede {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 28px;
  }

  .article-list {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .article-list li {
    margin-bottom: 8px;
  }

  .article-cta {
    margin-top: 40px;
    padding: 28px;
    background: var(--cream-dim);
    border-radius: var(--radius);
    text-align: center;
  }

  .article-cta p {
    margin-bottom: 16px;
    color: var(--ink);
    font-weight: 500;
  }

  /* ============================================
     RESPONSIVE — templates.html additions
     ============================================ */
  @media (max-width: 860px) {
    .catalog-grid { grid-template-columns: 1fr; }
    .compass-svg { max-width: 160px; }

    .nav-toggle {
      display: flex;
    }

    .header-nav {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: var(--ink);
      border-top: 1px solid rgba(247,245,240,0.1);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.25s ease;
    }

    .header-nav.is-open {
      max-height: 320px;
    }

    .site-nav-mount {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
    }

    .header-nav-link {
      padding: 14px 28px;
      border-bottom: 1px solid rgba(247,245,240,0.08);
    }

    .header-nav .btn-small {
      margin: 16px 28px;
    }
  }

  @media (max-width: 600px) {
    .filter-bar {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding-bottom: 18px;
      -webkit-overflow-scrolling: touch;
    }
    .filter-btn { flex-shrink: 0; }
  }