/* Eltern-Portal (Bootstrap 5) */
body { background: #f4f5f7; color: #333; font-size: 15px; }
.ep-page { background: #fff; max-width: 1140px; margin: 16px auto; padding: 18px 22px 10px; box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.ep-brand { display: block; font-size: 1.85rem; font-weight: 700; color: #333; text-decoration: none; line-height: 1.05; }
.ep-brand:hover { color: #333; }
.ep-school { color: #707070; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.ep-tool { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; background: #fff; border: 1px solid #ccc; border-radius: 3px;
  color: #222; box-shadow: 0 1px 3px rgba(0,0,0,.12); text-decoration: none; }
.ep-tool:hover { background: #f1f1f1; color: #222; }
.ep-tool-off { border-color: #d42a3c; color: #d42a3c; } .ep-tool-off:hover { color: #d42a3c; }
.ep-head-squares { grid-template-columns: repeat(3, 13px); gap: 4px; margin-top: 0; }
.ep-head-squares span { width: 13px; height: 13px; }
.ep-meta { font-size: .72rem; color: #111; margin-top: 2px; }
.ep-header { border-bottom: 1px solid #e3e3e3; padding-bottom: 6px; margin-bottom: 8px; }
.ep-childbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ep-child { background: #eee; border: 0; border-radius: 3px; min-width: 170px; height: 34px; padding: 0 10px; font-size: .85rem; color: #333; }
.ep-child:disabled { opacity: 1; color: #333; -webkit-appearance: none; appearance: none; }
.ep-nav { display: flex; flex-wrap: wrap; border-bottom: 1px solid #e3e3e3; padding: 4px 0 6px; margin-bottom: 14px; }
.ep-nav-item { flex: 1 1 0; min-width: 150px; }
.ep-navlink { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 0; color: #444 !important; text-decoration: none; font-weight: 600; font-size: .9rem; border-radius: 3px; }
.ep-navlink:hover, .ep-navlink.active { background: #f5f5f5; }
.ep-navlink.active .ep-navlabel { text-decoration: underline; text-underline-offset: 4px; }
.ep-navicon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #eee; border-radius: 3px; font-size: 1.55rem; flex: none; }
.ep-navcount { background: #f3d4d4; color: #8a2a2a; border-radius: 10px; font-size: .75rem; padding: 0 7px; font-weight: 600; }
@media (max-width: 767px) { .ep-nav-item { flex: 1 1 33%; min-width: 0; } .ep-navlink { gap: 6px; font-size: .8rem; } }
.ep-title { font-size: 1.35rem; font-weight: 400; margin: 6px 0 14px; }
.ep-tiles { max-width: 720px; margin: 20px auto; }
.ep-tile { display: flex; flex-direction: column; align-items: center; justify-content: space-between; aspect-ratio: 1.15; color: #fff !important; text-decoration: none;
  border-radius: 3px; box-shadow: 0 3px 6px rgba(0,0,0,.25); padding: 10px; position: relative; transition: transform .1s; }
.ep-tile:hover { transform: translateY(-2px); }
.ep-tile .label { font-size: .95rem; }
.ep-tile i { font-size: 4.2rem; line-height: 1; margin-bottom: 14px; }
.ep-tile .count { position: absolute; right: 10px; bottom: 8px; background: #fff; color: #333; border-radius: 10px; font-size: .75rem; padding: 0 7px; font-weight: 700; }
.ep-footer { border-top: 1px solid #e3e3e3; margin-top: 30px; padding: 8px 0; text-align: center; font-size: .8rem; color: #777; }
.ep-footer a { color: #777; }
/* Anmeldung, Registrierung, Hilfe/Impressum/Datenschutz ohne Anmeldung */
body:has(.ep-auth) { background: #eee; }
.ep-auth { max-width: 400px; margin: 16px auto; background: #fff; padding: 34px 15px 20px; border-radius: 5px; box-shadow: 0 1px 6px rgba(0,0,0,.14); }
.ep-auth-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid #e6e6e6; }
.ep-auth-brand { display: block; font-size: 1.85rem; font-weight: 700; color: #333; text-decoration: none; line-height: 1.05; letter-spacing: -.2px; }
.ep-auth-brand:hover { color: #333; }
.ep-auth-school { color: #707070; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.ep-auth-squares { grid-template-columns: repeat(3, 13px); gap: 4px; margin-top: 2px; }
.ep-auth-squares span { width: 13px; height: 13px; }
.ep-auth .form-label { font-weight: 700; font-size: .9rem; margin: 0 0 6px; }
.ep-auth .ep-input { background: #eee; border: 0; border-radius: 3px; padding: 11px 16px; font-size: 1.05rem; }
.ep-auth .ep-input:focus { background: #e8e8e8; box-shadow: 0 0 0 2px rgba(31,95,191,.35); }
.ep-auth .ep-submit { border: 1px solid #1f5fbf; color: #1f5fbf; background: #fff; font-weight: 700; font-size: 1.1rem; padding: 9px; border-radius: 4px; }
.ep-auth .ep-submit:hover { background: #1f5fbf; color: #fff; }
.ep-auth .ep-eye { cursor: pointer; text-decoration: none; filter: grayscale(.2); }
.ep-auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 20px 0; border-top: 1px solid #e6e6e6; }
.ep-auth-links:last-child { padding-bottom: 0; }
.ep-auth-links a { border: 1px solid #ccc; border-radius: 3px; padding: 5px 10px; font-size: .78rem; color: #333; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ep-auth-links a:hover { background: #f3f3f3; }
.ep-squares { display: grid; grid-template-columns: repeat(3, 12px); gap: 3px; margin-top: 8px; }
.ep-squares span { width: 12px; height: 12px; }
.ep-squares span:nth-child(1) { background: #1f5fbf; } .ep-squares span:nth-child(2) { background: #e8590c; } .ep-squares span:nth-child(3) { background: #d42a3c; }
.ep-squares span:nth-child(4) { background: #8c8c14; } .ep-squares span:nth-child(5) { background: #e0a800; } .ep-squares span:nth-child(6) { background: #9467c4; }
.ep-notice { background: #fbdd9f; border-radius: 3px; padding: 14px 18px; margin-bottom: 14px; }
.ep-notice .when { font-size: .85rem; color: #555; }
.ep-plan th, .ep-plan td { font-size: .85rem; vertical-align: top; }
.ep-plan .chg { background: #fde2e1; }
.ep-plan .free { color: #aaa; }
.ep-week td { height: 90px; width: 14%; font-size: .8rem; vertical-align: top; }
.ep-week .today { background: #fff8d6; }
.ep-ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 2px; padding: 2px 4px; margin-bottom: 3px; font-size: inherit; line-height: 1.25; cursor: pointer; }
.ep-ev:hover, .ep-ev:focus-visible { filter: brightness(.95); outline: 1px solid #888; }
.ep-ev.school { background: #dbe7fb; } .ep-ev.sa { background: #f8d4d4; } .ep-ev.ka { background: #fde8c4; } .ep-ev.ferien { background: #d4efd9; }
.table:not(.ep-week) .ep-ev { display: inline-block; width: auto; }
.ep-week.ep-month td { height: 92px; font-size: .75rem; } .ep-month .day { font-weight: 600; color: #555; } .ep-month td.other { background: #f6f6f6; color: #aaa; }
.ep-month td.other .ep-ev { opacity: .6; }
.ep-week .ep-ev { overflow: hidden; text-overflow: ellipsis; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.form-label.col-form-label { font-weight: 600; text-align: right; }
@media (max-width: 767px) { .form-label.col-form-label { text-align: left; } .ep-brand { font-size: 1.6rem; } }
@media print { .ep-nav, .ep-tools, .ep-footer, .noprint { display: none !important; } .ep-page { box-shadow: none; } }
.ep-auth .ep-input::placeholder { color: #999; }
