/* ===== Schrift: Bai Jamjuree (lokal, Ordner /fonts) ===== */
@font-face { font-family:'Bai Jamjuree'; src:url('../fonts/BaiJamjuree-Regular.ttf') format('truetype');  font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Bai Jamjuree'; src:url('../fonts/BaiJamjuree-Medium.ttf') format('truetype');   font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Bai Jamjuree'; src:url('../fonts/BaiJamjuree-SemiBold.ttf') format('truetype'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Bai Jamjuree'; src:url('../fonts/BaiJamjuree-Bold.ttf') format('truetype');     font-weight:700 900; font-style:normal; font-display:swap; }

html { scroll-behavior: smooth; }
body { -webkit-tap-highlight-color: transparent; }
summary::-webkit-details-marker { display: none; }

/* Platinen-Muster für dunkle Flächen (wie bei Technik-Seiten üblich) */
.circuit {
  background-color: #033560;
  background-image:
    radial-gradient(ellipse at 85% 0%, rgba(31,179,232,.22), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='2'%3E%3Cpath d='M0 40h60l20 20h60M140 60v60l20 20h80M20 240v-60l30-30h40M90 150h50l20-20M180 0v30l-20 20M240 190h-50l-20 20v30M60 100h30'/%3E%3Ccircle cx='60' cy='40' r='4'/%3E%3Ccircle cx='140' cy='60' r='4'/%3E%3Ccircle cx='90' cy='150' r='4'/%3E%3Ccircle cx='160' cy='130' r='4'/%3E%3Ccircle cx='180' cy='30' r='4'/%3E%3Ccircle cx='190' cy='190' r='4'/%3E%3Ccircle cx='90' cy='100' r='4'/%3E%3Crect x='196' y='126' width='18' height='18' rx='2'/%3E%3Crect x='14' y='84' width='14' height='14' rx='2'/%3E%3C/svg%3E");
}
.circuit-dark { background-color:#021a30; }

/* Logo-Streifen (rote Akzente) */
.stripes { display:flex; gap:6px; }
.stripes span { display:inline-block; width:5px; height:16px; background:#DC2D1E; transform:skewX(-14deg); border-radius:1px; }

/* Desktop-Untermenüs */
.mega { opacity:0; visibility:hidden; transform:translateY(6px); transition:all .15s ease; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity:1; visibility:visible; transform:none; }

/* Menü-Balken: grau beim Darüberfahren, blau auf der aktiven Seite */
.nav-link { position:relative; }
.nav-link::after {
  content:''; position:absolute; left:50%; top:calc(50% + 0.85rem); width:2.25rem; height:3px; border-radius:3px;
  background:#cbd5e1; transform:translateX(-50%) scaleX(0); transform-origin:center;
  transition:transform .25s ease, background-color .2s ease;
}
.nav-link:hover::after, .nav-item:hover > .nav-link::after { transform:translateX(-50%) scaleX(1); }
.nav-link.aktiv::after { transform:translateX(-50%) scaleX(1); background:#1FB3E8; }

/* Select-Pfeil */
select.rm-select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23033560' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 1rem center; background-size:1.1rem; -webkit-appearance:none; appearance:none; padding-right:2.75rem; }

/* Mobiles Menü */
#rm-drawer { transition: transform .28s ease; }

/* Platzhalter in Rechtstexten */
mark { background:#fef08a; padding:0 .25rem; border-radius:.25rem; }
.rechtstext h1 { color:#033560; font-weight:700; font-size:1.5rem; line-height:1.3; margin-bottom:1rem; }
.rechtstext a { color:#033560; text-decoration:underline; word-break:break-word; }
.rechtstext h2 { color:#033560; font-weight:700; font-size:1.25rem; margin-top:2.25rem; margin-bottom:.5rem; }
.rechtstext h3 { color:#033560; font-weight:700; margin-top:1.25rem; margin-bottom:.25rem; }
.rechtstext p  { margin-bottom:.75rem; line-height:1.75; }
.rechtstext ul, .rechtstext ol { padding-left:1.25rem; margin-bottom:.75rem; line-height:1.75; }
.rechtstext ul { list-style:disc; } .rechtstext ol { list-style:decimal; }
.rechtstext table { width:100%; border-collapse:collapse; margin-bottom:1rem; font-size:.925rem; line-height:1.55; }
.rechtstext th { text-align:left; color:#033560; border-bottom:2px solid #033560; padding:.5rem .75rem .5rem 0; }
.rechtstext td { vertical-align:top; border-bottom:1px solid #e2e8f0; padding:.6rem .75rem .6rem 0; }
@media (max-width:640px) { /* Tabelle am Handy untereinander */
  .rechtstext thead { display:none; }
  .rechtstext tr, .rechtstext td { display:block; }
  .rechtstext tr { border-bottom:1px solid #e2e8f0; padding:.6rem 0; }
  .rechtstext td { border:0; padding:.15rem 0; }
  .rechtstext td:first-child { font-weight:600; color:#033560; }
  .rechtstext td[data-label]::before { content:attr(data-label) ": "; font-weight:600; }
}

/* Formularfelder einheitlich */
.rm-input { width:100%; border:1px solid #cbd5e1; border-radius:.75rem; padding:.8rem 1rem; outline:none; background:#fff; color:#0f172a; transition:border-color .15s, box-shadow .15s; }
.rm-input:focus { border-color:#1FB3E8; box-shadow:0 0 0 3px rgba(31,179,232,.18); }
.rm-label { display:block; font-size:.875rem; font-weight:600; color:#033560; margin-bottom:.3rem; }

/* Entsperrmuster */
#muster-feld { touch-action:none; user-select:none; -webkit-user-select:none; }


/* WhatsApp-Button (leicht 3D) und Chatfenster */
.wa-knopf { position:fixed; right:1.25rem; bottom:1.25rem; z-index:40; display:flex; align-items:center; gap:.5rem; padding:.875rem 1.25rem; border-radius:999px; font-weight:700; color:#25D366;
  background:linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%); border:1px solid rgba(15,23,42,.08); border-bottom:3px solid #d5dde6;
  box-shadow:0 1px 0 #fff inset, 0 2px 4px rgba(15,23,42,.10), 0 10px 24px rgba(15,23,42,.18), 0 18px 40px -12px rgba(37,211,102,.45);
  transition:transform .18s, box-shadow .18s; }
.wa-knopf:hover { transform:translateY(-2px); box-shadow:0 1px 0 #fff inset, 0 4px 8px rgba(15,23,42,.12), 0 16px 32px rgba(15,23,42,.20), 0 22px 48px -12px rgba(37,211,102,.55); }
.wa-knopf:active { transform:translateY(1px); border-bottom-width:1px; }
.wa-punkt { position:absolute; top:-2px; right:-2px; width:12px; height:12px; border-radius:999px; background:#ef4444; box-shadow:0 0 0 2px #fff; }
.wa-chat { position:fixed; right:1.25rem; bottom:5.5rem; z-index:41; width:min(360px, calc(100vw - 2rem)); overflow:hidden; border-radius:1.25rem; background:#efeae2;
  box-shadow:0 24px 60px -12px rgba(3,53,96,.45), 0 8px 20px rgba(15,23,42,.15); animation:wa-auf .22s ease-out; }
.wa-chat[hidden] { display:none; }
.wa-verlauf { height:min(340px, calc(100vh - 16rem)); overflow-y:auto; padding:1rem; background-color:#efeae2;
  background-image:radial-gradient(rgba(0,0,0,.045) 1px, transparent 1px); background-size:16px 16px; }
.wa-blase { position:relative; max-width:90%; width:fit-content; padding:.6rem .85rem; border-radius:0 .9rem .9rem .9rem; background:#fff; color:#1f2937; font-size:.925rem; line-height:1.45; box-shadow:0 1px 1px rgba(0,0,0,.1); animation:wa-auf .2s ease-out; }
.wa-blase[hidden] { display:none; }
.wa-tippt { display:flex; gap:4px; padding:.85rem 1rem; }
.wa-tippt i { width:7px; height:7px; border-radius:999px; background:#94a3b8; animation:wa-punkte 1.2s infinite; }
.wa-tippt i:nth-child(2) { animation-delay:.15s; } .wa-tippt i:nth-child(3) { animation-delay:.3s; }
@keyframes wa-punkte { 0%, 60%, 100% { transform:translateY(0); opacity:.5; } 30% { transform:translateY(-4px); opacity:1; } }
@keyframes wa-auf { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:none; } }

/* Von Netlify eingeblendetes "Powered by Netlify"-Badge ausblenden */
#nl-badge-frame, .nl-wrap, #nl-badge, #nl-card { display:none !important; }
