/* Manrope – lokal selbst gehostet (DSGVO/CSP-konform, kein Google-CDN) */
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   Kursnest UI · Redesign 2026-07
   Sidebar-Layout, Manrope, weichere Flächen & Schatten.
   Alle bestehenden Klassennamen bleiben kompatibel.
   ============================================================ */

:root {
  --green: #789b90;
  --green-dark: #335c52;
  --green-deep: #2a4a42;
  --green-light: #edf5f1;
  --green-soft: #f2f7f4;
  --orange: #ff8f1f;
  --orange-ink: #c9741a;
  --orange-soft: #fdeee0;
  --ink: #23352f;
  --muted: #6f8078;
  --faint: #9aa8a1;
  --line: #e4efe9;
  --line-strong: #d6e3dd;
  --bg: #f6faf8;
  --card: #ffffff;
  --shadow-sm: 0 4px 18px rgba(51,92,82,.04);
  --shadow-md: 0 10px 26px rgba(51,92,82,.10);
  --radius: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

h1 { font-size: 27px; font-weight: 800; letter-spacing: -.4px; margin: 6px 0 2px; }
h2 { font-size: 17px; font-weight: 800; margin: 30px 0 12px; color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid var(--bg); }

/* ============ App-Shell: Sidebar + Main ============ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 256px; flex: none;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 120;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 22px 22px 16px; }
.side-brand .logo {
  width: 36px; height: 36px; border-radius: 11px; background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px; flex: none;
}
.brand { font-size: 20px; font-weight: 700; color: var(--green-dark); letter-spacing: .2px; text-decoration: none; }
.brand b { font-weight: 800; }
.brand.big { font-size: 30px; }
.studio-chip {
  display: inline-block; margin: 0 22px 6px; font-size: 12px; font-weight: 700; color: var(--green-dark);
  background: var(--green-light); border: 1px solid var(--line);
  padding: 3px 11px; border-radius: 20px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 44px);
}

.side-nav { flex: 1; overflow-y: auto; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 20px; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-label {
  font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  color: var(--faint); padding: 0 10px 7px;
}
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; color: #3f5850; text-decoration: none;
  transition: background .15s, color .15s;
}
.side-nav a .ic { width: 20px; text-align: center; opacity: .75; flex: none; }
.side-nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.side-nav a.active { background: var(--green-dark); color: #fff; font-weight: 700; }
.side-nav a.active .ic { opacity: 1; }

.side-foot { border-top: 1px solid var(--line); padding: 12px 14px; }
.side-foot a.side-link {
  display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: #3f5850; text-decoration: none;
  transition: background .15s;
}
.side-foot a.side-link .ic { width: 20px; text-align: center; opacity: .75; }
.side-foot a.side-link:hover { background: var(--green-soft); }
.side-foot a.side-link.active { background: var(--green-dark); color: #fff; }
.side-user { display: flex; align-items: center; gap: 11px; padding: 9px 11px; margin-top: 2px; }
.side-user .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #dbeae3; color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none;
}
.side-user .who { min-width: 0; }
.side-user .who .name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who .sub { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .logout { margin-left: auto; color: #c0928c; font-size: 16px; text-decoration: none; padding: 4px; }
.side-user .logout:hover { color: #c0453f; }

.main { flex: 1; min-width: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 30px 32px 60px; }
.wrap.narrow { max-width: 720px; }

/* Mobile Topbar (nur < 900px sichtbar) */
.mobilebar {
  display: none; position: sticky; top: 0; z-index: 110;
  align-items: center; gap: 12px; padding: 12px 18px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.burger {
  background: none; border: 1px solid var(--line-strong); border-radius: 9px;
  font-size: 19px; line-height: 1; padding: 6px 11px; color: var(--green-dark); cursor: pointer;
}
.scrim {
  display: none; position: fixed; inset: 0; z-index: 115;
  background: rgba(35,53,47,.4);
}
body.nav-open .scrim { display: block; }

/* ============ Betreiber-Panel (Super-Admin) ============ */
.admin-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 26px; background: var(--ink); color: #fff;
}
.admin-brand { font-size: 19px; color: #fff; }
.admin-brand b { font-weight: 800; }
.admin-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; background: var(--orange);
  color: #fff; padding: 2px 8px; border-radius: 6px; vertical-align: middle; margin-left: 4px; }
.admin-bar nav { display: flex; gap: 6px; align-items: center; }
.admin-bar nav a { color: #dfe7e3; text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 7px 12px; border-radius: 9px; transition: background .15s, color .15s; }
.admin-bar nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-bar nav a.logout { color: #f4b8b8; }

/* ============ Login ============ */
.login-card {
  max-width: 380px; margin: 8vh auto 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: 0 10px 30px rgba(51,92,82,.07); text-align: center;
}
.login-card form { margin-top: 18px; text-align: left; }
.login-card label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.login-card input {
  width: 100%; margin-top: 5px; padding: 11px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fcfefd;
}
.login-card input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(120,155,144,.18); }
button[type="submit"] {
  width: 100%; margin-top: 6px; padding: 12px; font-size: 15px; font-weight: 700; font-family: inherit;
  color: #fff; background: var(--green-dark); border: none; border-radius: 10px; cursor: pointer;
  transition: background .15s;
}
button[type="submit"]:hover { background: var(--green-deep); }
.error {
  background: #fdecec; color: #a33; border: 1px solid #f3c9c9;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 6px;
}
.ok-banner {
  background: #e3f3ea; color: #2f7d52; border: 1px solid #bfe3ce;
  padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 12px 0;
}

/* ============ Cards ============ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm);
}
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .num { font-size: 28px; font-weight: 800; color: var(--green-dark); letter-spacing: -.5px; }
.card .lbl { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.card.accent { background: var(--green-dark); border-color: var(--green-dark); }
.card.accent .num, .card.accent .lbl { color: #fff; }

/* ============ Tabellen ============ */
table.list {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.list th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--faint); background: #fbfdfc; padding: 12px 16px;
  font-weight: 800; border-bottom: 1px solid var(--line);
}
table.list td { padding: 12px 16px; border-top: 1px solid #f0f4f2; font-size: 14px; }
table.list tbody tr:first-child td { border-top: none; }
table.list tbody tr:hover { background: #f9fcfa; }

/* ============ Pagehead & Buttons ============ */
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pagehead-actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 17px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; font-family: inherit;
  background: var(--green-dark); color: #fff; text-decoration: none; border: none; cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 6px 16px rgba(51,92,82,.14);
}
.btn:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(51,92,82,.2); }
.btn.ghost { background: #fff; color: var(--green-dark); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.ghost:hover { border-color: var(--green); box-shadow: 0 4px 12px rgba(51,92,82,.08); }
.btn.small { padding: 6px 12px; font-size: 13px; box-shadow: none; }
table.list td.right a, td .link { color: var(--green-dark); font-weight: 700; text-decoration: none; }
table.list td.right a:hover { color: var(--orange); }
.actions-cell { white-space: normal; }
.actions-cell > a, .actions-cell form.inline { display: inline-block; margin: 2px 0; }
.tag { font-size: 11px; font-weight: 600; background: #eef1f0; color: #778; padding: 1px 8px; border-radius: 8px; margin-left: 6px; }
.tag.green { background: var(--green-light); color: var(--green-dark); }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: middle; margin-right: 4px; }

/* ============ Tabs ============ */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0; border-bottom: 1px solid var(--line-strong); }
.tabs a, .tabs button.tab {
  padding: 9px 15px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px;
  border: none; background: none; border-bottom: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: color .15s, border-color .15s;
}
.tabs a.active, .tabs button.tab.active { color: var(--green-dark); border-bottom-color: var(--orange); }
.tabs a:hover, .tabs button.tab:hover { color: var(--green-dark); }
.tabpanel { display: none; }
.tabpanel.shown { display: block; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============ Suche ============ */
.searchbar { display: flex; gap: 8px; margin: 16px 0; }
.searchbar input {
  flex: 1; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font-size: 15px; font-family: inherit;
}
.searchbar input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(120,155,144,.18); }
.searchbar button {
  padding: 10px 17px; border: none; border-radius: var(--radius-sm); font-family: inherit;
  background: var(--green-dark); color: #fff; font-weight: 700; cursor: pointer;
}
.searchbar .clear { align-self: center; color: var(--muted); text-decoration: none; font-size: 22px; padding: 0 6px; }

/* ============ Formulare ============ */
.card.form { margin-top: 18px; max-width: 680px; padding: 24px; }
.form label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 15px; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fcfefd; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(120,155,144,.18);
}
#public-fields, .series-box {
  background: var(--green-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 16px 4px; margin-bottom: 15px;
}
.series-box { background: #fafcfb; }
#public-fields .hint, .series-box + .hint { margin-bottom: 4px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form label.checkbox { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.form label.checkbox input { width: auto; margin-top: 0; }
.form .actions { margin-top: 8px; }
.form .actions button {
  padding: 11px 22px; border: none; border-radius: var(--radius-sm); background: var(--green-dark);
  color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit;
}
.form .actions button:hover { background: var(--green-deep); }
.hint { font-size: 12px; color: var(--muted); margin: -6px 0 10px; }

/* Manuelle Rechnung – Positions-Tabelle */
.form.manual-inv { max-width: none; }
.items-wrap { overflow-x: auto; }
.items-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.items-table th { text-align: left; font-size: 11.5px; color: var(--faint); font-weight: 800; padding: 6px 8px; text-transform: uppercase; letter-spacing: .3px; }
.items-table th.right, .items-table td.right { text-align: right; }
.items-table td { padding: 5px 8px; vertical-align: middle; }
.items-table input { margin-top: 0; }
.items-table td:first-child { min-width: 200px; }
.items-table .qty, .items-table .rate { width: 68px; }
.items-table input[name="unit"] { width: 82px; }
.items-table .price { width: 120px; }
.line-sum { white-space: nowrap; font-weight: 700; color: var(--green-dark); }
.items-table .del { color: #b23; font-weight: 700; padding: 0 6px; }
.total-line { margin: 16px 0 4px; font-size: 16px; }
.total-line b { color: var(--green-dark); font-size: 18px; }

/* ============ Badges ============ */
.badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: #eef1f0; color: #667; white-space: nowrap; }
.badge.green { background: #e6f4ec; color: #2f8a5b; }
.badge.blue { background: #e6eef8; color: #35659c; }
.badge.red { background: #fdecec; color: #c0453f; }
.badge.grey { background: #eee; color: #777; }

/* ============ Monatsnavigation ============ */
.monthnav { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.monthlabel { font-size: 17px; font-weight: 800; color: var(--green-dark); min-width: 150px; text-align: center; }
.cal-link { margin-left: auto; color: var(--green-dark); text-decoration: none; font-weight: 700; font-size: 14px; }
.cal-link:hover { color: var(--orange); }

/* ============ Buchungsliste ============ */
tr.muted-row td { color: #aab; }
form.inline { display: inline; }
.linkbtn { background: none; border: none; color: var(--green-dark); font-weight: 700; cursor: pointer; padding: 0 0 0 10px; font-size: 14px; font-family: inherit; }
.linkbtn:hover { color: var(--orange); }

/* ============ Kalender ============ */
table.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: visible; }
table.calendar th { background: var(--green-dark); color: #fff; font-size: 12px; padding: 8px; text-transform: uppercase; letter-spacing: .4px; }
table.calendar td { border: 1px solid var(--line); vertical-align: top; height: 96px; padding: 4px; }
table.calendar td.out { background: #fafcfb; }
table.calendar td.today { background: var(--green-light); }
.daynum { display: inline-block; font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: none; padding: 2px 6px; border-radius: 6px; background: none; border: none; font-family: inherit; cursor: pointer; }
.daynum:hover { background: var(--green-dark); color: #fff; }
td.today .daynum { color: var(--green-dark); }
.evt { display: block; font-size: 11px; background: #f4f8f6; border-left: 3px solid var(--green); border-radius: 4px; padding: 2px 5px; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; color: inherit; }
a.evt:hover { background: var(--green-light); }
.cal-day { position: relative; }
.day-head { position: relative; display: inline-block; }
.day-pop {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; min-width: 156px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: 0 14px 34px rgba(51,92,82,.18);
}
.day-head:hover .day-pop, .day-head.open .day-pop { display: block; animation: pop .12s ease-out; }
.dp-date { font-size: 12px; font-weight: 800; color: var(--green-dark); padding: 2px 8px 7px; border-bottom: 1px solid var(--line); margin-bottom: 4px; white-space: nowrap; }
.day-pop a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.day-pop a:hover { background: var(--green-light); color: var(--green-dark); }

/* ============ Dashboard ============ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.kpi {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-ic {
  width: 38px; height: 38px; border-radius: 11px; background: #eef5f1;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.kpi-ic.warm { background: var(--orange-soft); }
.kpi-note { font-size: 12px; font-weight: 700; color: var(--faint); }
.kpi-note.warm { color: var(--orange-ink); }
.kpi-num { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-top: 14px; }
.kpi-lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi.accent { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 10px 26px rgba(51,92,82,.22); }
.kpi.accent .kpi-num { color: #fff; }
.kpi.accent .kpi-lbl { color: #cbe0d8; }
.kpi.accent .kpi-ic { background: rgba(255,255,255,.14); }
.kpi.accent .kpi-note { color: #ffd9ad; }

.dash-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; margin-top: 24px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.panel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; }
.panel-head .ttl { font-size: 15px; font-weight: 800; }
.panel-head .sub { font-size: 12.5px; font-weight: 600; color: var(--faint); }
.panel-head .link { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--green-dark); text-decoration: none; }
.panel-head .link:hover { color: var(--orange); }
.panel-head .p-ic {
  width: 32px; height: 32px; border-radius: 9px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none;
}
.panel.warn { border-color: #f2dcc0; }
.panel.warn .p-ic { background: var(--orange-soft); }

.p-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #f0f4f2; }
.p-row .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #dbeae3; color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: none;
}
.p-row .grow { min-width: 0; flex: 1; }
.p-row b { font-size: 14px; }
.p-row .dim { font-size: 12.5px; color: var(--faint); }
.p-row .sum { margin-left: auto; font-weight: 800; font-size: 14px; white-space: nowrap; }

/* Termin-Zeilen */
.appt { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid #f0f4f2; }
.appt:first-of-type { border-top: none; }
.appt-when { text-align: center; width: 52px; flex: none; }
.appt-when .d { font-size: 11px; font-weight: 800; color: var(--faint); text-transform: uppercase; }
.appt-when .d.today { color: var(--orange-ink); }
.appt-when .t { font-size: 18px; font-weight: 800; line-height: 1.1; }
.appt-bar { width: 3px; height: 36px; border-radius: 3px; background: var(--green); flex: none; }
.appt-bar.solo { background: var(--orange); }
.appt-info { min-width: 0; flex: 1; }
.appt-info .who { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-info .meta { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-time { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* Buchungslink-Karte */
.share-card {
  background: linear-gradient(160deg, #3a6459, var(--green-deep));
  border-radius: var(--radius); padding: 20px; color: #fff;
  box-shadow: 0 10px 26px rgba(51,92,82,.2);
}
.share-card .ttl { font-size: 14px; font-weight: 800; }
.share-card .sub { font-size: 12.5px; color: #cbe0d8; margin-top: 4px; line-height: 1.5; }
.share-row {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  background: rgba(255,255,255,.12); border-radius: 10px; padding: 8px 8px 8px 12px;
}
.share-row code {
  font-size: 13px; font-family: 'SF Mono', ui-monospace, Menlo, monospace; color: #fff;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.share-row .copy, .share-row a.open {
  background: #fff; color: var(--green-dark); border: none; border-radius: 8px;
  padding: 6px 11px; font-weight: 700; font-size: 12.5px; cursor: pointer;
  font-family: inherit; text-decoration: none; flex: none;
}
.share-row .copy:hover, .share-row a.open:hover { background: var(--green-light); }

/* Schnellaktionen */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.qa {
  display: flex; flex-direction: column; gap: 6px; padding: 13px;
  border: 1px solid var(--line); border-radius: 12px; color: #3f5850; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.qa:hover { border-color: var(--green); background: #f7fbf9; }
.qa .ic { font-size: 18px; }
.qa .lbl { font-size: 13px; font-weight: 700; }

/* Erinnerungs-Box (Fallback für alte Templates) */
.reminder { background: #fff8ef; border: 1px solid #f5d9ad; border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.reminder h2 { color: #a5600a; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 10px; }
.section-head h2 { margin: 0; }
.section-head .link { font-size: 14px; color: var(--green-dark); text-decoration: none; font-weight: 700; }
.section-head .link:hover { color: var(--orange); }

/* Legacy-Dashboard-Klassen (falls noch referenziert) */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 6px; }
.stat {
  display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 18px; text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green); }
.stat-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--green-light); }
.stat-body { display: flex; flex-direction: column; line-height: 1.1; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--green-dark); }
.stat-lbl { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stat.accent { background: linear-gradient(135deg, var(--green-dark), var(--green)); border-color: transparent; }
.stat.accent .stat-num, .stat.accent .stat-lbl { color: #fff; }
.stat.accent .stat-ic { background: rgba(255,255,255,.18); }
.share-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--green-light); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 15px; font-size: 13.5px; color: var(--ink); margin-top: 4px;
}
.share-strip code { background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
.share-strip .link { margin-left: auto; color: var(--green-dark); font-weight: 700; text-decoration: none; }
.share-strip .link:hover { color: var(--orange); }

/* ============ Öffentliche Buchungsseite ============ */
body.public { background: var(--bg); }
.public-head { text-align: center; padding: 34px 20px 10px; }
.public-head .brand.big { color: var(--green-dark); }
.public-foot { max-width: 720px; margin: 34px auto; padding: 16px 24px 44px; text-align: center; font-size: 13px; color: var(--muted); }
.public-foot details { margin-bottom: 10px; text-align: left; }
.public-foot summary { cursor: pointer; color: var(--green-dark); }
.impressum { white-space: pre-wrap; font-family: inherit; font-size: 13px; color: var(--muted); background: #fff; padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.back { display: inline-block; margin-bottom: 8px; color: var(--green-dark); text-decoration: none; font-weight: 700; }
.back:hover { color: var(--orange); }

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #fff; padding: 46px 20px 40px; text-align: center;
  border-radius: 0 0 26px 26px; box-shadow: 0 12px 30px rgba(51,92,82,.16);
}
.hero .brand.big { color: #fff; font-size: 32px; }
.hero-sub { margin-top: 8px; font-size: 15px; color: #eaf4ef; opacity: .95; }
.hero-account {
  position: absolute; top: 14px; right: 16px; color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 700; background: rgba(255,255,255,.16);
  padding: 7px 14px; border-radius: 20px; transition: background .15s;
}
.hero-account:hover { background: rgba(255,255,255,.28); }
.public-intro { text-align: center; color: var(--muted); margin: 22px 0 4px; }

.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.course-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green); }
.course-card.is-full { opacity: .72; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cc-head .ctitle { font-size: 18px; font-weight: 800; color: var(--green-dark); margin: 0; line-height: 1.25; }
.ctitle { font-size: 17px; font-weight: 800; color: var(--green-dark); }
.cmeta { font-size: 14px; color: var(--muted); margin-top: 3px; }
.cprice { font-weight: 700; margin-top: 6px; }
.cprice-pill {
  flex: none; font-size: 15px; font-weight: 800; color: var(--green-dark);
  background: var(--green-light); border: 1px solid var(--line); padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}
.cc-meta { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 5px; }
.cc-meta li { font-size: 14px; color: var(--ink); }
.cc-meta li .ic { display: inline-block; width: 20px; opacity: .8; }
.cc-desc { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cfree { display: inline-block; font-size: 13px; font-weight: 700; color: #2f8a5b; background: #e6f4ec; padding: 3px 11px; border-radius: 20px; }
.cfree.full { color: #c0453f; background: #fdecec; }
.course-card .btn { padding: 10px 18px; margin-top: 0; }

.empty-state { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 24px; margin-top: 22px; color: var(--muted); }
.empty-state .em { font-size: 40px; display: block; margin-bottom: 8px; }

.course-summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 6px;
  border-left: 5px solid var(--green);
}
.course-summary h1 { margin: 0 0 8px; }
.course-summary .cc-meta { margin-top: 4px; }
.book-card { margin-top: 18px; }
.book-card h2 { margin-top: 0; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; background: var(--green-light); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink); margin-top: 4px; }
.pay-note.cash { background: #fff8ef; border-color: #f5d9ad; }
.pay-note .ic { font-size: 18px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done-card { text-align: center; margin-top: 26px; padding: 34px 26px; }
.done-emoji { font-size: 52px; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .kpi-grid, .cards, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .mobilebar { display: flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh;
    transform: translateX(-105%); transition: transform .22s ease;
    box-shadow: 0 20px 60px rgba(35,53,47,.25);
  }
  body.nav-open .sidebar { transform: none; }
  .wrap { padding: 24px 18px 60px; }
}

@media (max-width: 720px) {
  .kpi-grid, .cards, .stat-grid, .course-grid { grid-template-columns: 1fr; }
  .form .row2, .form .row3 { grid-template-columns: 1fr; }
  table.calendar td { height: 64px; }
  table.list { display: block; overflow-x: auto; white-space: nowrap; }
  .hero { padding: 36px 18px 32px; }
  .hero .brand.big { font-size: 27px; }
  .share-strip .link { margin-left: 0; }
  .pagehead-actions { width: 100%; }
  .pagehead-actions .btn { flex: 1; justify-content: center; }
}

/* ============ Feedback-Widget (unten rechts, nur eingeloggt) ============ */
.fb-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--green-dark); color: #fff; font-size: 22px; line-height: 1;
  box-shadow: 0 8px 24px rgba(51,92,82,.32); transition: transform .15s, background .15s;
}
.fb-fab:hover { background: var(--green-deep); transform: translateY(-2px) scale(1.04); }
/* Offen = Blase wird zum dezenten Zuklapp-Knopf, damit sie das Panel nicht erschlägt. */
.fb-fab.is-open { background: var(--green); font-size: 20px; }
.fb-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 201; width: 340px; max-width: calc(100vw - 40px);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(35,53,47,.2); padding: 16px 18px 14px;
  animation: pop .14s ease-out;
}
.fb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fb-head b { font-size: 15px; font-weight: 800; }
.fb-x { background: none; border: none; color: var(--faint); font-size: 15px; cursor: pointer; padding: 2px 4px; }
.fb-x:hover { color: var(--ink); }
.fb-kinds { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fb-kinds label {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer;
}
.fb-kinds input { accent-color: var(--green-dark); }
.fb-panel textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; padding: 10px 12px; resize: vertical;
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fcfefd; color: var(--ink);
}
.fb-panel textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(120,155,144,.18); }
.fb-msg { color: #c0453f; font-size: 12.5px; font-weight: 600; min-height: 16px; margin-top: 4px; }
.fb-send {
  width: 100%; margin-top: 4px; padding: 10px 0; border: none; border-radius: 10px;
  background: var(--green-dark); color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.fb-send:hover { background: var(--green-deep); }
.fb-send:disabled { opacity: .6; cursor: default; }
.fb-hint { font-size: 11.5px; color: var(--faint); margin: 8px 0 0; }
.fb-done { text-align: center; padding: 16px 0 10px; }
.fb-done .fb-em { font-size: 34px; display: block; margin-bottom: 6px; }
.fb-done p { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }
@media (max-width: 720px) {
  .fb-fab { right: 14px; bottom: 14px; width: 46px; height: 46px; font-size: 19px; }
  .fb-panel { right: 14px; bottom: 68px; }
}

/* ============ Onboarding-Hinweis (fehlende Pflichtangaben) ============ */
.setup-card {
  display: flex; align-items: center; gap: 16px; margin-top: 22px;
  background: var(--orange-soft); border: 1px solid #f2dcc0; border-radius: var(--radius);
  padding: 18px 20px;
}
.setup-card .setup-ic {
  width: 42px; height: 42px; border-radius: 12px; background: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.setup-card .setup-body { flex: 1; min-width: 0; }
.setup-card .setup-ttl { font-weight: 800; font-size: 15px; color: #8a5200; }
.setup-card .setup-sub { font-size: 13.5px; color: #96662a; margin-top: 2px; }
.setup-card .btn { flex: none; }
@media (max-width: 720px) {
  .setup-card { flex-direction: column; align-items: flex-start; }
  .setup-card .btn { width: 100%; justify-content: center; }
}

/* Rechtlicher Hinweis (Impressum/Datenschutz fehlt) – ernster als der orange Setup-Hinweis. */
.setup-card.warn-legal { background: #fdecec; border-color: #f2cfcd; }
.setup-card.warn-legal .setup-ttl { color: #a3332c; }
.setup-card.warn-legal .setup-sub { color: #b05048; }

/* ============ Erste-Schritte-Leitfaden (Onboarding) ============ */
.guide-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 32, 26, .42);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 40px; overflow-y: auto;
  animation: guideFade .18s ease;
}
.guide-overlay[hidden] { display: none; }
body.guide-lock { overflow: hidden; }
@keyframes guideFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes guidePop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.guide {
  background: linear-gradient(160deg, #f2f7f4, #fff);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.guide-overlay .guide {
  width: 100%; max-width: 560px; margin: auto 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .30);
  animation: guidePop .2s ease;
}
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.guide-ttl { font-size: 17px; font-weight: 800; }
.guide-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.guide-x { background: none; border: none; color: var(--faint); font-size: 15px; cursor: pointer; padding: 2px 6px; }
.guide-x:hover { color: var(--ink); }
.guide-bar { height: 7px; background: var(--line); border-radius: 20px; overflow: hidden; margin: 14px 0 6px; }
.guide-bar span { display: block; height: 100%; background: var(--green-dark); border-radius: 20px; transition: width .3s; }
.guide-count { font-size: 12.5px; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; }
.guide-steps { display: flex; flex-direction: column; gap: 8px; }
.guide-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.guide-step.is-done { opacity: .72; }
.guide-step > summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; }
.guide-step > summary::-webkit-details-marker { display: none; }
.guide-check {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center;
  justify-content: center; font-size: 15px; background: var(--green-soft); border: 1px solid var(--line);
}
.guide-step.is-done .guide-check { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.guide-step-ttl { flex: 1; font-weight: 700; font-size: 14.5px; }
.guide-step.is-done .guide-step-ttl { text-decoration: line-through; color: var(--muted); }
.guide-opt { font-size: 11px; font-weight: 700; color: var(--faint); background: #eef1f0; padding: 1px 7px; border-radius: 10px; margin-left: 4px; }
.guide-caret { color: var(--faint); font-size: 12px; transition: transform .15s; }
.guide-step[open] .guide-caret { transform: rotate(180deg); }
.guide-body { padding: 0 16px 16px 56px; }
.guide-body p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.guide-doneflag { color: var(--green-dark); font-weight: 700; font-size: 13.5px; }
@media (max-width: 720px) { .guide-body { padding-left: 16px; } }

/* ============ Team: Rollen ============ */
.rolehelp { background: #f5f9f7; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 4px 0 2px; font-size: 13px; color: var(--muted); }
.rolehelp div + div { margin-top: 5px; }
.rolehelp b { color: var(--ink); }
.rolepick { font-size: 13px; padding: 4px 8px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); }

/* Uhrzeit-Auswahl (nur volle/halbe Stunden) */
.timepick { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: inherit; font-size: 13px; background: #fff; color: var(--ink); }

/* Einbettungscode zum Kopieren */
.embedcode { background: #1e2b26; color: #d7e8e0; border-radius: 10px; padding: 14px 16px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px;
  line-height: 1.6; overflow-x: auto; margin: 0; white-space: pre; }
