:root {
    --blue: #1D86CC;
    --green: #2AA05F;
    --light: #EBEFF1;
    --gray: #666666;
    --black: #333333;
    --white: #FFFFFF;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(51,51,51,.08), 0 4px 14px rgba(51,51,51,.06);
    --shadow-hover: 0 4px 10px rgba(51,51,51,.10), 0 12px 28px rgba(51,51,51,.12);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: var(--black);
    background: #F7F9FA;
    line-height: 1.4;
  }
  a { color: var(--blue); text-decoration: none; }

  /* ===== Demo banner ===== */
  .demo-banner {
    background: var(--black); color: #fff; font-size: 12px;
    text-align: center; padding: 7px 16px; letter-spacing: .3px;
  }
  .demo-banner b { color: #7CC5F0; }

  /* ===== Header ===== */
  header {
    background: #fff; border-bottom: 1px solid #E2E8EC;
    position: sticky; top: 0; z-index: 50;
  }
  .header-inner {
    max-width: 1180px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .logo img { height: 34px; display: block; }
  .header-right { display: flex; align-items: center; gap: 12px; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    border: none; cursor: pointer; font-family: inherit;
    font-size: 14px; font-weight: bold; border-radius: 10px;
    padding: 10px 18px; transition: all .15s ease;
  }
  .btn-primary { background: var(--blue); color: #fff; }
  .btn-primary:hover { background: #1873B0; }
  .btn-green { background: var(--green); color: #fff; }
  .btn-green:hover { background: #238A51; }
  .btn-outline { background: #fff; color: var(--black); border: 1px solid #D4DCE1; }
  .btn-outline:hover { border-color: var(--blue); color: var(--blue); }
  .btn-ghost { background: transparent; color: var(--gray); padding: 8px 10px; }
  .btn-ghost:hover { color: var(--black); }

  .member-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: #E8F5E9; border: 1px solid #BFE3CB; color: #1E7A47;
    font-size: 13px; font-weight: bold; border-radius: 999px; padding: 6px 14px 6px 6px;
  }
  .member-chip .avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--green); color: #fff; display: flex;
    align-items: center; justify-content: center; font-size: 11px;
  }

  /* ===== Hero ===== */
  .hero { background: #fff; padding: 52px 24px 40px; border-bottom: 1px solid #E2E8EC; }
  .hero-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
  .cat-label {
    color: var(--blue); font-size: 12px; font-weight: bold;
    letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px;
  }
  h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.5px; }
  h1 .accent { color: var(--blue); }
  .hero-sub { color: var(--gray); font-size: 17px; margin-top: 12px; max-width: 620px; }

  /* ===== Toolbar ===== */
  .toolbar-wrap { max-width: 1180px; margin: -26px auto 0; padding: 0 24px; position: relative; z-index: 10; }
  .toolbar {
    background: #fff; border: 1px solid #E2E8EC; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 14px;
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  }
  .search-box { flex: 1 1 260px; position: relative; }
  .search-box input {
    width: 100%; padding: 12px 14px 12px 40px; font-size: 14px; font-family: inherit;
    border: 1px solid #D4DCE1; border-radius: 10px; outline: none; transition: border .15s;
  }
  .search-box input:focus { border-color: var(--blue); }
  .search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); }
  select {
    padding: 12px 14px; font-size: 14px; font-family: inherit;
    border: 1px solid #D4DCE1; border-radius: 10px; background: #fff; cursor: pointer; outline: none;
  }
  .filters {
    max-width: 1180px; margin: 14px auto 0; padding: 0 24px;
    display: none; }
  .filters.open { display: block; }
  .filters-inner {
    background: #fff; border: 1px solid #E2E8EC; border-radius: var(--radius);
    padding: 18px; display: flex; gap: 32px; flex-wrap: wrap;
  }
  .filter-group h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; }
  .chip-row { display: flex; gap: 8px; flex-wrap: wrap; max-width: 640px; }
  .chip {
    font-size: 13px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid #D4DCE1; background: #fff; color: var(--black); font-family: inherit;
    transition: all .12s ease; display: inline-flex; align-items: center; gap: 6px;
  }
  .chip .dot { width: 8px; height: 8px; border-radius: 50%; }
  .chip:hover { border-color: var(--blue); }
  .chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
  .chip.active .dot { background: #fff !important; }

  .result-count { max-width: 1180px; margin: 18px auto 0; padding: 0 24px; color: var(--gray); font-size: 13px; }

  /* ===== Sections & grid ===== */
  .section { max-width: 1180px; margin: 0 auto; padding: 10px 24px 8px; }
  .section h2 { font-size: 24px; margin: 26px 0 4px; letter-spacing: -.3px; }
  .section .sec-label { color: var(--blue); font-size: 11px; font-weight: bold; letter-spacing: 3px; text-transform: uppercase; margin-top: 26px; }
  .section .sec-label + h2 { margin-top: 4px; }
  .grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px; margin-top: 18px;
  }

  /* ===== Card ===== */
  .card {
    background: #fff; border: 1px solid #E2E8EC; border-radius: var(--radius);
    padding: 22px; cursor: pointer; transition: all .16s ease;
    display: flex; flex-direction: column; gap: 12px; position: relative;
  }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #C7D3DA; }
  .card-top { display: flex; align-items: center; gap: 14px; }
  .tool-logo {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: bold; font-size: 18px; overflow: hidden;
  }
  .tool-logo.has-img { background: #fff; border: 1px solid #E2E8EC; }
  .tool-logo.has-img img {
    width: 72%; height: 72%; object-fit: contain; display: block;
  }
  .card-title { font-size: 17px; font-weight: bold; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .badge-reco {
    font-size: 10px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase;
    background: var(--green); color: #fff; border-radius: 6px; padding: 3px 8px;
  }
  .stars { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; }
  .stars .cnt { color: var(--gray); font-size: 12px; margin-left: 5px; }
  .star { color: #F5B301; }
  .star.off { color: #D8DEE3; }
  .stars-lock { font-size: 12px; color: var(--gray); display: inline-flex; align-items: center; gap: 6px; }
  .card-desc { font-size: 13.5px; color: #4A4A4A; line-height: 1.5; flex: 1; }
  .card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
  .tag {
    font-size: 10.5px; font-weight: bold; letter-spacing: .8px; text-transform: uppercase;
    background: var(--light); color: #555; border-radius: 6px; padding: 4px 8px;
  }
  .tag.cat { background: transparent; border: 1px solid; padding: 3px 8px; }
  .tag.eu { background: #E8F5E9; color: #1E7A47; }

  /* ===== Modal ===== */
  .overlay {
    position: fixed; inset: 0; background: rgba(30,40,46,.55); z-index: 100;
    display: none; align-items: flex-start; justify-content: center;
    padding: 40px 16px; overflow-y: auto;
  }
  .overlay.open { display: flex; }
  .modal {
    background: #fff; border-radius: 18px; max-width: 720px; width: 100%;
    padding: 34px 36px; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: pop .18s ease;
  }
  @keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal-close {
    position: absolute; top: 16px; right: 16px; background: var(--light); border: none;
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--gray);
  }
  .modal-close:hover { background: #DDE4E8; }
  .modal-head { display: flex; gap: 18px; align-items: center; margin-bottom: 6px; }
  .modal-head .tool-logo { width: 64px; height: 64px; border-radius: 16px; font-size: 24px; }
  .modal h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .modal .card-tags { margin: 14px 0 6px; }
  .modal-section-label {
    color: var(--blue); font-size: 11px; font-weight: bold; letter-spacing: 3px;
    text-transform: uppercase; margin: 24px 0 8px;
  }
  .modal p.body { font-size: 14.5px; line-height: 1.65; color: #444; }
  .visit-row { margin-top: 18px; }

  .praxis-box {
    background: var(--light); border-radius: 12px; padding: 16px 18px;
    font-size: 14px; line-height: 1.6; color: var(--black);
  }
  .dsgvo-box {
    background: #E8F5E9; border-radius: 12px; padding: 16px 18px;
    font-size: 14px; line-height: 1.6; color: #1E5B38;
  }

  /* member-lock area (public view) */
  .locked-zone { position: relative; margin-top: 8px; }
  .locked-blur { filter: blur(6px); pointer-events: none; user-select: none; opacity: .75; }
  .locked-cta {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px;
  }
  .locked-cta .lock-icon {
    width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    box-shadow: 0 6px 18px rgba(29,134,204,.35);
  }
  .locked-cta b { font-size: 15px; }
  .locked-cta span { font-size: 13px; color: var(--gray); max-width: 380px; }

  /* Ratings & comments */
  .rate-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .rate-stars button {
    background: none; border: none; font-size: 26px; cursor: pointer; color: #D8DEE3; padding: 0 2px;
    transition: transform .1s;
  }
  .rate-stars button:hover { transform: scale(1.15); }
  .rate-stars button.sel { color: #F5B301; }
  .comment { border-top: 1px solid #ECF0F2; padding: 14px 0; }
  .comment .meta { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
  .comment .meta b { color: var(--black); }
  .comment .text { font-size: 14px; line-height: 1.55; }
  .comment-input { display: flex; gap: 10px; margin-top: 14px; }
  .comment-input input {
    flex: 1; padding: 11px 14px; border: 1px solid #D4DCE1; border-radius: 10px;
    font-family: inherit; font-size: 14px; outline: none;
  }
  .comment-input input:focus { border-color: var(--blue); }

  /* Suggest form */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-field label { display: block; font-size: 12px; font-weight: bold; color: var(--gray); margin-bottom: 6px; letter-spacing: .5px; }
  .form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 11px 14px; border: 1px solid #D4DCE1; border-radius: 10px;
    font-family: inherit; font-size: 14px; outline: none;
  }
  .form-field textarea { min-height: 90px; resize: vertical; }
  .form-field input:focus, .form-field textarea:focus { border-color: var(--blue); }
  .form-note { font-size: 12px; color: var(--gray); margin-top: 12px; }

  /* Toast */
  .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: var(--black); color: #fff; font-size: 14px; padding: 12px 22px;
    border-radius: 999px; z-index: 200; transition: transform .25s ease; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .toast.show { transform: translateX(-50%) translateY(0); }

  /* CTA band (public) */
  .cta-band {
    max-width: 1180px; margin: 40px auto 0; padding: 0 24px;
  }
  .cta-band-inner {
    background: linear-gradient(120deg, var(--blue), #156BA5); border-radius: 18px;
    color: #fff; padding: 38px 40px; display: flex; justify-content: space-between;
    align-items: center; gap: 24px; flex-wrap: wrap;
  }
  .cta-band-inner h3 { font-size: 24px; margin-bottom: 8px; }
  .cta-band-inner p { opacity: .92; font-size: 14.5px; max-width: 560px; line-height: 1.55; }
  .btn-white { background: #fff; color: var(--blue); }
  .btn-white:hover { background: #EAF4FB; }

  footer {
    margin-top: 56px; border-top: 1px solid #E2E8EC; background: #fff;
  }
  .footer-inner {
    max-width: 1180px; margin: 0 auto; padding: 22px 24px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: var(--gray); font-size: 12.5px;
  }

  .empty { text-align: center; color: var(--gray); padding: 60px 0; font-size: 15px; }

  /* ===== Rechtstext-Seiten (Impressum / Datenschutz) ===== */
  .legal { max-width: 820px; margin: 0 auto; padding: 40px 24px 64px; }
  .legal h1 { font-size: 30px; letter-spacing: -.3px; margin-bottom: 8px; }
  .legal h2 { font-size: 20px; margin: 34px 0 10px; }
  .legal h3 { font-size: 16px; margin: 22px 0 6px; }
  .legal p, .legal li { font-size: 15px; line-height: 1.7; color: #3f3f3f; }
  .legal p { margin: 10px 0; }
  .legal ul { margin: 10px 0 10px 22px; }
  .legal li { margin: 4px 0; }
  .legal a { color: var(--blue); }
  .legal .muted { color: var(--gray); font-size: 13.5px; }
  .legal .updated { color: var(--gray); font-size: 13px; margin-bottom: 26px; }
  .legal address { font-style: normal; line-height: 1.7; }
  .back-link { display: inline-block; margin-bottom: 20px; font-size: 14px; }

  @media (max-width: 640px) {
    h1 { font-size: 30px; }
    .modal { padding: 26px 20px; }
    .form-grid { grid-template-columns: 1fr; }
  }
