 :root{
      --bg: #f7f7f9;
      --surface: #ffffff;
      --ink: #0f172a;
      --muted: #6b7280;
      --ring: #e5e7eb;
      --soft: #f3f4f6;
      --radius: 18px;
      --shadow: 0 10px 24px rgba(2, 6, 23, .05);

      /* Button-Farben */
      --btn-bg:#e5e7eb;
      --btn-bg-hover:#dfe3e8;
      --btn-border:#d1d5db;
      --btn-ink:#374151;
    }

    *,*::before,*::after{ box-sizing: border-box; }
    html,body{ margin:0; background:var(--bg); color:var(--ink); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif; }

    /* Material Symbols Standard-Klasse */
    .material-symbols-outlined{
      font-family: 'Material Symbols Outlined';
      font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
      -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
      line-height: 1;
      white-space: nowrap; overflow: hidden;
    }

    /* Bildschirmleser-only (semantische Überschrift beibehalten) */
    .sr-only{
      position:absolute !important;
      width:1px; height:1px;
      padding:0; margin:-1px;
      overflow:hidden; clip:rect(0,0,0,0);
      white-space:nowrap; border:0;
    }

    /* ---------- Section Wrapper ---------- */
    .amenities-wrap{
      max-width: 1200px;
      margin: 0 auto;
      padding: clamp(16px, 2.8vw, 36px);
    }
    .amenities-card{
      background: var(--surface);
      overflow: hidden;
    }

    /* ---------- Header + Button ---------- */
    .amenities-head-wrap{
      border-bottom:1px solid var(--ring);
      padding: 12px clamp(16px, 2.4vw, 24px);
      display:flex;
  justify-content:center;   /* horizontal zentriert */
  align-items:center;       /* falls Höhe größer wäre */
    }

    /* Kompakter, grauer Button */
    .amenities-head{
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      background: var(--btn-bg);
      border: 1px solid var(--btn-border);
      color: var(--btn-ink);
      border-radius: 9999px;
      font-weight: 700;
      font-size: 14px;
      line-height: 1;
      cursor: pointer;
      width: auto;
      transition: background .2s ease, border-color .2s ease, transform .08s ease;
      overflow: hidden; /* für Ripple */
    }
    .amenities-head:hover{ background: var(--btn-bg-hover); border-color:#cbd5e1; }
    .amenities-head:active{ transform: translateY(1px); }
    .amenities-head:focus{ outline: none; }
    .amenities-head:focus-visible{ box-shadow: 0 0 0 3px rgba(59,130,246,.35); }

    /* kleines Icon im Button */
    .lead-icon{
      font-family: 'Material Symbols Outlined';
      width: 22px; height: 22px; flex:0 0 22px;
      display:grid; place-items:center;
      border-radius: 6px;
      background: #f1f3f5;
      border: 1px solid #e5e7eb;
      font-size: 16px;
      color: var(--ink);
      -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
      line-height: 1; white-space: nowrap; overflow: hidden;
    }

    .caret{
      font-size: 18px;
      font-variation-settings: 'FILL' 0,'wght' 600,'GRAD' 0,'opsz' 24;
      transition: transform .25s ease;
    }
    #amenities-trigger[aria-expanded="true"] .caret{ transform: rotate(180deg); }

    /* ---------- Collapsible ---------- */
    .amenities-collapsible{
      display:grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows .45s cubic-bezier(.22,1,.36,1);
    }
    .amenities-collapsible[data-open="true"]{ grid-template-rows: 1fr; }
    .amenities-inner{ overflow: hidden; }

    /* ---------- Grid (Masonry) ---------- */
    .amenities-grid{
      padding: clamp(14px, 2.2vw, 22px);
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: clamp(14px, 2vw, 20px);
      grid-auto-rows: 8px;      /* Rasterhöhe für die Spannen-Berechnung */
      align-items: start;       /* Karten oben ausrichten */
    }

    /* Einzelne Kategorie-Liste (Karte) */
    .amenity-col{
      background: #fff;
      border: 1px solid var(--ring);
      border-radius: 16px;
      padding: 16px 16px 6px;
      transition: box-shadow .2s ease, border-color .2s ease;
    }
    .amenity-col:hover{
      box-shadow: 0 8px 18px rgba(2,6,23,.05);
      border-color:#e3e6eb;
    }

    .amenity-title{
      margin: 2px 0 10px;
      font-weight: 800; letter-spacing:.2px;
      font-size: 18px;
    }

    .amenity-list{ list-style:none; margin:0; padding:0; }
    .amenity-item{
      display:flex; gap:10px; align-items:flex-start;
      padding: 8px 4px;
      border-radius: 10px;
      line-height:1.35;
    }
    .amenity-item:hover{ background: #fafafa; }

    /* Icons über CSS-Pseudo-Element anhand data-mi */
    .amenity-item::before{
      content: attr(data-mi);
      font-family: 'Material Symbols Outlined';
      font-feature-settings: "liga" 1;
      font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
      white-space: nowrap; overflow: hidden; line-height: 1;
      -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;

      width: 24px; height: 24px; flex:0 0 24px;
      display:grid; place-items:center;
      border-radius: 8px;
      background: var(--soft);
      border:1px solid var(--ring);
      font-size: 18px;
      color: var(--ink);
      transform: translateY(1px);
    }

    /* Cooler Effekt: gestaffeltes Fade/Slide der Karten beim Öffnen */
    @keyframes amenityIn{
      from{ opacity: 0; transform: translateY(6px) scale(.98); }
      to{   opacity: 1; transform: translateY(0) scale(1); }
    }
    .amenities-collapsible[data-open="true"] .amenities-grid .amenity-col{
      animation: amenityIn .5s cubic-bezier(.22,1,.36,1) both;
      animation-delay: calc(var(--i) * 40ms);
    }

    /* Ripple im Button */
    .ripple{
      position: absolute;
      left: 0; top: 0;
      width: 0; height: 0;
      border-radius: 9999px;
      pointer-events: none;
      background: rgba(0,0,0,.12);
      transform: translate(-50%,-50%);
      animation: ripple .6s ease-out;
    }
    @keyframes ripple{
      from{ width: 0; height: 0; opacity: .35; }
      to  { width: 360px; height: 360px; opacity: 0; }
    }

    @media (max-width: 720px){
      .amenities-grid{ gap: 12px; padding: 12px; }
      .amenity-col{ padding: 14px 14px 4px; }
    }

    /* Nutzer mit reduzierten Bewegungen */
    @media (prefers-reduced-motion: reduce){
      .amenities-collapsible{ transition: none; }
      .amenities-collapsible[data-open="true"] .amenity-col{ animation: none; }
      .amenities-head{ transition: none; }
    }