/* ============================================================================
   VIA-Abiball – konsolidiertes Frontend-Stylesheet (Editorial-Variante)
   Ivory #FAF6EE · Gold #C8A464 / #B98D45 · Nacht #0A1628
   Cormorant Garamond (Serif kursiv) · Montserrat · Inter
   Ersetzt: styles.css/school.css (Theme), Kartenkauf-CSS, Foto-Inline-CSS,
   Planungstool-Inline-CSS.
   ============================================================================ */

:root {
  --abi-gold:      #C8A464;
  --abi-gold-2:    #B98D45;
  --abi-champagne: #E8D5A8;
  --abi-ivory:     #FAF6EE;
  --abi-ivory-2:   #F3ECDD;
  --abi-night:     #0A1628;
  --abi-ink:       #1A2236;
  --abi-muted:     #44506A;
  --abi-line:      rgba(10, 22, 40, .12);
  --abi-serif:     'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --abi-sans:      'Montserrat', 'Segoe UI', Arial, sans-serif;
  --abi-body:      'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ---------- Fehler-Box (global) ---------- */
.afe-error {
  padding: 14px 18px; background: rgba(180,40,40,.08); border-left: 3px solid #B42828;
  color: #7A1F1F; max-width: 700px; margin: 20px auto; font-family: var(--abi-body);
}

/* ============================================================================
   SCHUL-LEISTE  [abi_strip]
   ============================================================================ */
.abi-strip {
  background: var(--abi-night);
  font-family: var(--abi-body);
}
.abi-strip-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.abi-strip-label {
  color: var(--abi-gold); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-decoration: none; white-space: nowrap;
}
.abi-strip-nav { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.abi-strip-link {
  display: inline-flex; flex-direction: column; padding: 6px 14px;
  text-decoration: none; border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px; transition: border-color 160ms, background 160ms;
}
.abi-strip-link:hover { border-color: var(--abi-gold); background: rgba(200,164,100,.08); }
.abi-strip-code {
  font-family: var(--abi-sans); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; color: var(--abi-gold);
}
.abi-strip-name { font-size: 12px; color: rgba(255,255,255,.85); }
.abi-strip-tail {
  font-size: 11px; color: rgba(255,255,255,.4);
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}

/* ============================================================================
   STUFENSEITEN-HERO  [abi_school_hero]
   ============================================================================ */
.school-hero {
  background: linear-gradient(180deg, var(--abi-ivory) 0%, var(--abi-ivory-2) 100%);
  border-bottom: 1px solid var(--abi-line);
  padding: 80px 24px;
  font-family: var(--abi-body);
  color: var(--abi-ink);
}
.school-hero-inner { max-width: 1100px; margin: 0 auto; }
.school-hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--abi-muted); margin-bottom: 20px;
}
.school-hero-code {
  padding: 3px 10px; border: 1px solid var(--abi-gold); color: var(--abi-gold-2);
  font-family: var(--abi-sans); font-weight: 700; letter-spacing: .12em;
}
.school-hero-title {
  font-family: var(--abi-serif); font-style: italic; font-weight: 500;
  font-size: 56px; line-height: 1.05; color: var(--abi-night); margin: 0 0 12px;
}
.school-hero-year { color: var(--abi-gold-2); }
.school-hero-motto {
  font-family: var(--abi-serif); font-style: italic; font-size: 22px;
  color: var(--abi-muted); margin-bottom: 8px;
}
.school-hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px;
}
.school-hero-meta-l {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--abi-gold-2); margin-bottom: 6px;
}
.school-hero-meta-v { font-size: 17px; font-weight: 600; color: var(--abi-night); }
.school-hero-meta-s { font-size: 13px; color: var(--abi-muted); margin-top: 3px; }
.school-status-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 999px;
  background: var(--abi-gold); margin-right: 8px;
}

/* ============================================================================
   KARTENBEDARF-FORMULAR  [abi_school_form]
   ============================================================================ */
.school-form-section {
  background: var(--abi-ivory-2);
  padding: 80px 24px;
  font-family: var(--abi-body);
  color: var(--abi-ink);
}
.school-form-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start;
}
.school-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--abi-gold-2); margin-bottom: 14px;
}
.school-h2 {
  font-family: var(--abi-serif); font-style: italic; font-weight: 500;
  font-size: 44px; line-height: 1.08; color: var(--abi-night); margin: 0 0 20px;
}
.school-prose-p { font-size: 16px; line-height: 1.7; color: var(--abi-muted); }
.school-form-meta { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.school-form-meta li { display: flex; gap: 10px; font-size: 14px; color: var(--abi-muted); }
.school-form-meta i { font-style: normal; color: var(--abi-gold); font-weight: 700; }

.school-form {
  background: #fff; border: 1px solid var(--abi-line); padding: 36px;
}
.school-form-h {
  font-family: var(--abi-serif); font-style: italic; font-weight: 500;
  font-size: 26px; color: var(--abi-night); margin: 0 0 20px;
}
.school-form-fieldset { border: 0; padding: 0; margin: 0; }
.school-form-fieldset[disabled] { opacity: .5; pointer-events: none; }
.school-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.school-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.school-field span {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--abi-muted);
}
.school-field input {
  width: 100%; font-family: var(--abi-body); font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--abi-line); border-radius: 0;
  outline: none; transition: border-color 160ms;
}
.school-field input:focus { border-color: var(--abi-gold); }
.school-anzahl { display: flex; gap: 8px; }
.school-anzahl button {
  width: 46px; border: 1px solid var(--abi-line); background: #fff;
  font-size: 20px; cursor: pointer; color: var(--abi-muted); transition: all 160ms;
}
.school-anzahl button:hover { border-color: var(--abi-gold); color: var(--abi-gold-2); }
.school-anzahl input { flex: 1; text-align: center; font-weight: 700; }
.school-form-submit {
  width: 100%; padding: 15px; margin-top: 8px;
  background: var(--abi-gold); color: var(--abi-night); border: 0;
  font-family: var(--abi-body); font-size: 14px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background 160ms;
}
.school-form-submit:hover { background: var(--abi-gold-2); color: #fff; }
.school-form-hint { font-size: 11px; color: var(--abi-muted); opacity: .7; margin: 12px 0 0; text-align: center; }

.school-form-success { text-align: center; padding: 24px 8px; }
.school-form-success-mark {
  width: 56px; height: 56px; border-radius: 999px; background: var(--abi-gold);
  color: var(--abi-night); display: inline-flex; align-items: center;
  justify-content: center; font-size: 26px; font-weight: 700; margin-bottom: 16px;
}
.school-form-success h3 {
  font-family: var(--abi-serif); font-style: italic; font-weight: 500;
  font-size: 28px; color: var(--abi-night); margin: 0 0 10px;
}
.school-form-success p { color: var(--abi-muted); }

.school-form-locked {
  text-align: center; padding: 18px; background: var(--abi-ivory);
  border: 1px dashed var(--abi-gold); margin-bottom: 18px;
}
.school-form-locked-mark {
  width: 40px; height: 40px; border-radius: 999px; background: var(--abi-champagne);
  color: var(--abi-night); display: inline-flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 700; margin-bottom: 10px;
}
.school-form-locked h3 {
  font-family: var(--abi-serif); font-style: italic; font-size: 22px;
  color: var(--abi-night); margin: 0 0 6px;
}
.school-form-locked p { color: var(--abi-muted); font-size: 14px; margin: 0; }
.school-form-error {
  padding: 12px 16px; background: rgba(180,40,40,.08);
  border-left: 3px solid #B42828; color: #7A1F1F; font-size: 14px; margin-bottom: 16px;
}
.school-form-hinweis {
  padding: 12px 16px; background: rgba(200,164,100,.1);
  border-left: 3px solid var(--abi-gold); color: var(--abi-muted);
  font-size: 13px; margin-bottom: 16px;
}

/* ============================================================================
   KARTENKAUF  [abiball_kartenkauf]
   ============================================================================ */
.abiball-card-form-container {
  background: #fff;
  border: 1px solid var(--abi-line);
  box-shadow: 0 10px 40px rgba(10, 22, 40, .08);
  max-width: 500px; width: 100%; padding: 40px; margin: 20px auto;
  font-family: var(--abi-body); color: var(--abi-ink);
}
.abiball-card-form-header { margin-bottom: 28px; text-align: center; }
.abiball-card-form-header h1 {
  font-family: var(--abi-serif); font-style: italic; font-weight: 500;
  font-size: 30px; color: var(--abi-night); margin: 0 0 8px;
}
.abiball-card-form-header p { color: var(--abi-muted); font-size: 14px; margin: 0; }
.abiball-card-form-loading { text-align: center; padding: 20px; color: var(--abi-muted); }
.abiball-card-form-loading::after {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 6px;
  background: currentColor; border-radius: 50%; animation: abiball-dots 1.5s infinite;
}
@keyframes abiball-dots {
  0%, 20% { opacity: 1; } 50% { opacity: .4; } 100% { opacity: 1; }
}
.abiball-card-form-group { margin-bottom: 22px; }
.abiball-card-form-label {
  display: block; margin-bottom: 8px; font-weight: 600;
  color: var(--abi-night); font-size: 13px; letter-spacing: .04em;
}
.abiball-card-product-info {
  background: var(--abi-ivory); border: 1px solid var(--abi-line);
  padding: 16px; margin-bottom: 20px;
}
.abiball-card-product-name { font-weight: 600; color: var(--abi-night); margin-bottom: 6px; font-size: 15px; }
.abiball-card-product-price {
  font-family: var(--abi-sans); font-size: 24px; font-weight: 700; color: var(--abi-gold-2);
}
.abiball-card-name-input {
  width: 100%; height: 44px; border: 1px solid var(--abi-line); border-radius: 0;
  padding: 8px 12px; font-size: 14px; font-family: inherit; transition: all 160ms;
}
.abiball-card-name-input:focus {
  outline: none; border-color: var(--abi-gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 100, .12);
}
.abiball-card-quantity-control { display: flex; align-items: center; gap: 10px; }
.abiball-card-quantity-btn {
  width: 44px; height: 44px; border: 1px solid var(--abi-line); background: #fff;
  cursor: pointer; font-size: 18px; color: var(--abi-muted); font-weight: 700; transition: all 160ms;
}
.abiball-card-quantity-btn:hover { border-color: var(--abi-gold); color: var(--abi-gold-2); }
.abiball-card-quantity-input {
  flex: 1; height: 44px; border: 1px solid var(--abi-line); text-align: center;
  font-size: 16px; font-weight: 700; color: var(--abi-night);
}
.abiball-card-quantity-input:focus { outline: none; border-color: var(--abi-gold); }
.abiball-card-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--abi-line); border-bottom: 1px solid var(--abi-line);
  margin-bottom: 20px;
}
.abiball-card-price-label { color: var(--abi-muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.abiball-card-total-price {
  font-family: var(--abi-sans); font-size: 22px; font-weight: 700; color: var(--abi-gold-2);
}
.abiball-card-submit-btn {
  width: 100%; height: 50px; background: var(--abi-gold); color: var(--abi-night);
  border: 0; font-size: 14px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; transition: all 200ms;
}
.abiball-card-submit-btn:hover { background: var(--abi-gold-2); color: #fff; }
.abiball-card-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.abiball-card-error {
  background: rgba(180,40,40,.08); color: #7A1F1F; padding: 12px;
  border-left: 3px solid #B42828; font-size: 14px;
}

/* ============================================================================
   FOTOS  [abi_foto]
   ============================================================================ */
.afe-wrap { max-width: 1200px; margin: 40px auto; padding: 0 24px; font-family: var(--abi-body); color: var(--abi-night); }
.afe-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--abi-gold); margin-bottom: 14px; }
.afe-h2 { font-family: var(--abi-serif); font-style: italic; font-weight: 500; font-size: 48px; line-height: 1.05; margin: 0 0 12px; color: var(--abi-night); }
.afe-sub { font-size: 16px; line-height: 1.65; color: var(--abi-muted); max-width: 660px; margin: 0 0 32px; }
.afe-empty { padding: 80px 20px; text-align: center; color: var(--abi-muted); background: var(--abi-ivory-2); border: 1px dashed var(--abi-line); }

.afe-dropzone { border: 2px dashed rgba(200,164,100,.6); background: rgba(200,164,100,.06); padding: 56px 24px; text-align: center; cursor: pointer; transition: all 200ms; }
.afe-dropzone:hover, .afe-dropzone.is-drag { background: rgba(200,164,100,.16); border-color: var(--abi-gold); }
.afe-icon { font-size: 56px; margin-bottom: 14px; line-height: 1; }
.afe-dropzone-text { font-size: 18px; line-height: 1.5; }
.afe-dropzone-text strong { font-weight: 600; }
.afe-file-label { color: var(--abi-gold); font-weight: 600; text-decoration: underline; }
.afe-meta-info { font-size: 12px; color: var(--abi-muted); margin-top: 14px; }

.afe-queue { display: grid; gap: 8px; margin-top: 22px; }
.afe-queue-item { display: grid; grid-template-columns: 1fr 220px; gap: 14px; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--abi-line); font-size: 13px; }
.afe-queue-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.afe-queue-progress { height: 6px; background: #f0f0f0; overflow: hidden; }
.afe-queue-bar { height: 100%; width: 0%; background: var(--abi-gold); transition: width 200ms; }
.afe-queue-status { grid-column: 1/-1; font-size: 11px; color: var(--abi-muted); }
.afe-queue-item.is-ok { border-color: #4caf50; background: #f6fbf6; }
.afe-queue-item.is-ok .afe-queue-bar { background: #4caf50; }
.afe-queue-item.is-err { border-color: #d32f2f; background: #fdf2f2; }
.afe-queue-item.is-err .afe-queue-status { color: #d32f2f; font-weight: 600; }

.afe-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; padding: 14px 18px; background: rgba(200,164,100,.08); border-left: 3px solid var(--abi-gold); }
.afe-zip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; background: var(--abi-gold); color: var(--abi-night); text-decoration: none; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; transition: background 180ms; }
.afe-zip-btn:hover { background: var(--abi-gold-2); color: #fff; }
.afe-toolbar-meta { font-size: 13px; color: var(--abi-muted); }

.afe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.afe-tile { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #f0f0f0; cursor: zoom-in; }
.afe-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms; }
.afe-tile:hover img { transform: scale(1.04); }
.afe-dl { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; background: rgba(255,255,255,.92); color: var(--abi-night); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; border-radius: 999px; opacity: 0; transition: opacity 200ms; cursor: pointer; }
.afe-tile:hover .afe-dl, .afe-tile:focus .afe-dl { opacity: 1; }

.afe-lightbox { position: fixed; inset: 0; background: rgba(10,22,40,.95); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 40px; }
.afe-lightbox[hidden] { display: none !important; }
.afe-lb-img { max-width: 100%; max-height: 88vh; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.afe-lb-close, .afe-lb-prev, .afe-lb-next { position: absolute; background: transparent; border: 0; color: white; cursor: pointer; padding: 12px 20px; line-height: 1; }
.afe-lb-close { top: 16px; right: 16px; font-size: 42px; }
.afe-lb-prev, .afe-lb-next { top: 50%; transform: translateY(-50%); font-size: 56px; }
.afe-lb-prev { left: 16px; } .afe-lb-next { right: 16px; }
.afe-lb-dl { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 28px; background: var(--abi-gold); color: var(--abi-night); text-decoration: none; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.afe-lb-dl:hover { background: var(--abi-gold-2); color: white; }

.afe-upload-toggle { margin-top: 40px; padding: 18px 22px; background: var(--abi-ivory-2); border-left: 3px solid var(--abi-gold); }
.afe-upload-toggle summary { cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--abi-gold-2); }
.afe-upload-toggle .afe-wrap { margin: 16px 0 0; padding: 0; }

/* ============================================================================
   PLANUNGSTOOL  [abi_planung]
   ============================================================================ */
.vp-wrap { max-width: 1200px; margin: 24px auto; padding: 0 16px; font-family: var(--abi-body); color: var(--abi-ink); }
.vp-wrap * { box-sizing: border-box; }
.vp-pill { display: inline-block; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; border: 1px solid var(--abi-gold); color: var(--abi-gold); font-family: var(--abi-sans); }
.vp-muted { color: var(--abi-muted); font-size: 13px; }
.vp-tiny { font-size: 11px; }
.vp-title { font-family: var(--abi-serif); font-style: italic; font-weight: 500; font-size: 36px; line-height: 1.1; margin: 8px 0; color: var(--abi-night); }
.vp-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--abi-line); }
.vp-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vp-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vp-stat { display: inline-block; padding: 6px 12px; background: #fff; border: 1px solid var(--abi-line); border-radius: 3px; font-size: 13px; }
.vp-stat-ok { background: rgba(47,158,102,.1); border-color: #2F9E66; color: #2F9E66; }
.vp-stat-warn { background: rgba(177,62,62,.08); border-color: #b13e3e; color: #b13e3e; }
.vp-filterbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.vp-tab { padding: 6px 14px; font-size: 13px; text-decoration: none; color: var(--abi-muted); border: 1px solid var(--abi-line); border-radius: 3px; background: #fff; }
.vp-tab.active { background: var(--abi-night); color: #fff; border-color: var(--abi-night); }
.vp-kategorie-select { padding: 6px 10px; border: 1px solid var(--abi-line); border-radius: 3px; font-size: 13px; background: #fff; }
.vp-add-btn { margin-left: auto; }
.vp-btn { display: inline-block; padding: 8px 14px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--abi-line); color: var(--abi-ink); cursor: pointer; text-decoration: none; border-radius: 3px; }
.vp-btn:hover { background: var(--abi-ivory); }
.vp-btn-primary { background: var(--abi-gold); border-color: var(--abi-gold); color: var(--abi-night); }
.vp-btn-primary:hover { background: var(--abi-gold-2); border-color: var(--abi-gold-2); }
.vp-btn-danger { background: #fff; border-color: #b13e3e; color: #b13e3e; }
.vp-form { display: none; background: #fff; border: 1px solid var(--abi-line); padding: 18px; border-radius: 4px; margin-bottom: 18px; }
.vp-form.open { display: block; }
.vp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.vp-form-grid label, .vp-form .vp-full label { display: block; font-size: 12px; color: var(--abi-muted); font-weight: 600; }
.vp-form input, .vp-form select, .vp-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--abi-line); border-radius: 3px; font-size: 14px; font-family: inherit; margin-top: 3px; }
.vp-form .vp-full { grid-column: 1/-1; }
.vp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.vp-card { background: #fff; border: 1px solid var(--abi-line); border-radius: 4px; overflow: hidden; transition: transform .12s; position: relative; }
.vp-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(10,22,40,.08); }
.vp-card::before { content: ''; display: block; height: 4px; background: var(--abi-gold); }
.vp-card.vp-done::before { background: #2F9E66; }
.vp-card.vp-warn::before { background: #b13e3e; }
.vp-card.vp-done .vp-card-title { text-decoration: line-through; color: var(--abi-muted); }
.vp-card-body { display: block; padding: 14px; text-decoration: none; color: inherit; }
.vp-card-head { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.vp-prio { padding: 2px 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; }
.vp-prio-niedrig { background: #e8eef3; color: var(--abi-muted); }
.vp-prio-mittel { background: rgba(200,164,100,.18); color: var(--abi-gold-2); }
.vp-prio-hoch { background: rgba(177,62,62,.15); color: #b13e3e; }
.vp-cat { padding: 2px 8px; font-size: 11px; background: var(--abi-ivory); color: var(--abi-night); border-radius: 2px; }
.vp-card-title { font-family: var(--abi-serif); font-style: italic; font-weight: 500; font-size: 20px; line-height: 1.2; margin: 0 0 8px; color: var(--abi-night); }
.vp-resp { font-size: 13px; color: var(--abi-muted); margin-bottom: 6px; }
.vp-frist { font-size: 12px; color: var(--abi-muted); }
.vp-frist-rel { font-weight: 600; }
.vp-card.vp-warn .vp-frist-rel { color: #b13e3e; }
.vp-card-action { border-top: 1px solid var(--abi-line); }
.vp-status { width: 100%; padding: 10px; border: 0; background: #f7fafc; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--abi-muted); font-family: inherit; }
.vp-status:hover { background: var(--abi-ivory); }
.vp-status-offen { color: var(--abi-muted); }
.vp-status-in_arbeit { background: rgba(200,164,100,.12); color: var(--abi-gold-2); }
.vp-status-erledigt { background: rgba(47,158,102,.1); color: #2F9E66; }
.vp-status-display { padding: 4px 10px; border-radius: 2px; font-size: 12px; font-weight: 600; }
.vp-empty { text-align: center; padding: 48px 16px; color: var(--abi-muted); background: #fff; border: 1px dashed var(--abi-line); border-radius: 4px; }
.vp-flash { padding: 10px 14px; border-radius: 3px; margin-bottom: 12px; font-size: 13px; }
.vp-ok { background: rgba(47,158,102,.1); border-left: 3px solid #2F9E66; color: #2F9E66; }
.vp-error { padding: 10px 14px; background: rgba(177,62,62,.08); border-left: 3px solid #b13e3e; color: #b13e3e; margin-bottom: 12px; font-size: 13px; border-radius: 3px; }
.vp-login { max-width: 420px; margin: 60px auto; background: #fff; border: 1px solid var(--abi-line); border-radius: 4px; padding: 32px; }
.vp-login-head { text-align: center; margin-bottom: 20px; }
.vp-login-head h2 { font-family: var(--abi-serif); font-style: italic; font-size: 28px; margin: 12px 0 4px; color: var(--abi-night); }
.vp-login label { display: block; font-size: 12px; font-weight: 600; color: var(--abi-muted); margin: 12px 0 4px; }
.vp-login input { width: 100%; padding: 10px 12px; border: 1px solid var(--abi-line); border-radius: 3px; font-size: 14px; }
.vp-login button { width: 100%; padding: 12px; margin-top: 18px; }
.vp-school-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.vp-school-tile { display: flex; flex-direction: column; padding: 18px; background: #fff; border: 1px solid var(--abi-line); text-decoration: none; color: var(--abi-ink); border-radius: 4px; transition: transform .12s; }
.vp-school-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(10,22,40,.08); }
.vp-school-code { color: var(--abi-gold); font-weight: 700; font-size: 11px; letter-spacing: .12em; font-family: var(--abi-sans); margin-bottom: 6px; }
.vp-school-name { font-family: var(--abi-serif); font-style: italic; font-size: 22px; color: var(--abi-night); margin-bottom: 4px; }
.vp-school-meta { color: var(--abi-muted); font-size: 13px; }
.vp-modal-bg { position: fixed; inset: 0; background: rgba(10,22,40,.6); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vp-modal { background: #fff; border-radius: 6px; max-width: 680px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px; position: relative; }
.vp-modal-head { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--abi-line); }
.vp-modal label { display: block; font-size: 12px; font-weight: 600; color: var(--abi-muted); margin-top: 10px; }
.vp-modal input, .vp-modal select, .vp-modal textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--abi-line); border-radius: 3px; font-size: 14px; margin-top: 3px; font-family: inherit; }
.vp-close { margin-left: auto; font-size: 24px; line-height: 1; text-decoration: none; color: var(--abi-muted); padding: 0 4px; }
.vp-close:hover { color: #b13e3e; }
.vp-comment-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.vp-comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--abi-line); border-radius: 3px; font-size: 14px; font-family: inherit; resize: vertical; }
.vp-comment-form button { align-self: flex-end; }
.vp-activity { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.vp-activity li { padding: 10px 0; border-bottom: 1px solid var(--abi-line); }
.vp-act-meta { font-size: 12px; color: var(--abi-muted); }
.vp-act-text { margin-top: 4px; font-size: 14px; color: var(--abi-ink); }
.vp-act-kommentar { background: var(--abi-ivory); padding: 10px 12px; border-radius: 3px; border-bottom: none !important; margin-bottom: 8px; }

/* ============================================================================
   RESPONSIVE + PRINT
   ============================================================================ */
@media (max-width: 900px) {
  .school-hero-title { font-size: 38px; }
  .school-hero-meta { grid-template-columns: 1fr; gap: 20px; }
  .school-form-grid { grid-template-columns: 1fr; gap: 40px; }
  .school-form { padding: 24px; }
  .school-form-row-2 { grid-template-columns: 1fr; }
  .afe-h2 { font-size: 34px; }
  .abiball-card-form-container { padding: 24px; }
}
@media (max-width: 640px) {
  .vp-title { font-size: 26px; }
  .vp-header-actions { width: 100%; }
  .vp-stats .vp-stat { flex: 1; text-align: center; min-width: 0; }
  .vp-add-btn { margin-left: 0; width: 100%; }
  .vp-cards { grid-template-columns: 1fr; }
  .vp-modal { padding: 16px; }
}
@media print {
  .vp-header-actions, .vp-filterbar, .vp-add-btn, .vp-card-action, .vp-flash, body header, body footer { display: none !important; }
  .vp-cards { display: block !important; }
  .vp-card { break-inside: avoid; margin-bottom: 10px; }
}
