:root {
  --orange: #f39318;
  --orange-dark: #e07e0c;
  --orange-light: #fff1e0;
  --grau: #5a5654;
  --text: #1a1a1a;
  --border: #e3ddd2;
  --bg: #faf9f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.install-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.install-header {
  font-size: 28px;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 24px;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 12px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
}

h2 { margin-top: 0; color: var(--orange-dark); }
h3 { color: var(--text); margin-top: 28px; }

.checkliste { list-style: none; padding: 0; }
.checkliste li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.checkliste li.ok .icon { color: #2f8f4e; }
.checkliste li.fehler .icon { color: #c0392b; }
.icon { display: inline-block; width: 20px; font-weight: bold; }

label { display: block; margin: 14px 0; font-weight: 600; font-size: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], input[type="datetime-local"], textarea, select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-top: 18px;
}
.btn:hover { background: var(--orange-dark); }

.hinweis { font-size: 14px; color: var(--grau); }
.fehler-text { color: #c0392b; font-weight: 600; }

.warnung {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  padding: 14px 16px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0;
}

code {
  background: #f1efe8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.festbest-footer {
  max-width: 640px;
  margin: 32px auto 0;
  padding: 16px 4px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--grau);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.festbest-footer a { color: var(--grau); text-decoration: none; }
.festbest-footer a:hover { color: var(--orange-dark); }
.footer-trenner { margin: 0 8px; }
.footer-credit { display: flex; align-items: center; gap: 8px; }
.footer-credit img { display: block; opacity: 0.9; }

/* ---- Öffentliche Ticket-Seite (Offertformular) ---- */
.ticket-wrap { max-width: 560px; margin: 0 auto; padding: 48px 20px 70px; }
.ticket-wrap .logo { height: 52px; display: block; margin-bottom: 26px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange-dark); margin: 0 0 10px;
}
.ticket-wrap h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px; line-height: 1.14; letter-spacing: -0.01em;
  margin: 0 0 14px; color: #37332f;
}
.ticket-wrap h1 span { color: var(--orange); }
.ticket-wrap .sub { font-size: 16px; color: var(--grau); margin: 0 0 30px; max-width: 46ch; line-height: 1.5; }

.ticket {
  position: relative;
  background: #fff;
  border-radius: 18px;
  border-top: 5px solid var(--orange);
  box-shadow: 0 1px 2px rgba(55,51,47,0.04), 0 20px 40px -24px rgba(55,51,47,0.25);
  padding: 34px 36px 30px;
}
.ticket .perf {
  position: relative;
  height: 1px;
  margin: 24px -36px 26px;
  border-top: 2px dashed var(--border);
}
.ticket .perf::before, .ticket .perf::after {
  content: ''; position: absolute; top: -13px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--bg);
}
.ticket .perf::before { left: -13px; }
.ticket .perf::after { right: -13px; }

.ticket form label { font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.ticket form input,
.ticket form textarea,
.ticket form select { border-radius: 8px; border-width: 1.5px; }
.ticket form input:focus,
.ticket form textarea:focus,
.ticket form select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243,147,24,0.15);
}
.row2 { display: flex; gap: 14px; }
.row2 > label { flex: 1; }
@media (max-width: 480px) {
  .row2 { flex-direction: column; gap: 0; }
}

.dsgvo { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400 !important; color: var(--grau); }
.dsgvo input { width: auto; margin: 3px 0 0; }
.dsgvo a { color: var(--orange-dark); }

.ticket .btn { display: block; width: 100%; margin-top: 6px; padding: 15px; border-radius: 9px; font-size: 15px; }

/* ============================================================
   App-Chrome: gemeinsame Navigation & Layout für eingeloggte Bereiche
   ============================================================ */
.app-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.app-header .logo { height: 72px; display: block; }
.app-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.app-nav a {
  color: var(--grau); text-decoration: none; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.app-nav a.aktiv, .app-nav a:hover { color: var(--orange-dark); border-bottom-color: var(--orange); }
.app-nav-dropdown { position: relative; }
.app-nav-dropdown-btn {
  background: none; border: none; font: inherit; font-weight: 600; color: var(--grau); cursor: pointer;
  padding: 4px 0; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 3px;
}
.app-nav-dropdown-btn:hover, .app-nav-dropdown-btn.aktiv { color: var(--orange-dark); border-bottom-color: var(--orange); }
.app-nav-caret { font-size: 10px; transition: transform .15s; }
.app-nav-dropdown.offen .app-nav-caret { transform: rotate(180deg); }
.app-nav-dropdown-panel {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(40,40,38,.1);
  min-width: 190px; padding: 6px; flex-direction: column; gap: 0; z-index: 20;
  max-height: min(70vh, 480px); overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.app-nav-dropdown.offen .app-nav-dropdown-panel { display: flex; }
.app-nav-dropdown-panel a {
  padding: 9px 10px; border-radius: 6px; border-bottom: none !important; font-size: 13.5px;
}
.app-nav-dropdown-panel a:hover, .app-nav-dropdown-panel a.aktiv { background: var(--bg); color: var(--orange-dark); }
.app-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grau); }
.app-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.app-user a { color: var(--grau); text-decoration: none; }
.app-user a:hover { color: var(--orange-dark); }
.app-burger {
  display: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.app-burger span, .app-burger span::before, .app-burger span::after {
  content: ''; display: block; width: 16px; height: 2px; background: var(--text);
  position: relative; transition: 0.15s;
}
.app-burger span::before { position: absolute; top: -5px; }
.app-burger span::after { position: absolute; top: 5px; }

@media (max-width: 720px) {
  .app-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 6px 20px 14px;
    max-height: calc(100vh - 70px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .app-nav.offen { display: flex; }
  .app-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .app-nav a:last-child { border-bottom: none; }
  .app-burger { display: flex; }
  .app-user span.app-user-name { display: none; }
  .app-nav-dropdown-btn { width: 100%; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .app-nav-dropdown-panel {
    display: flex; position: static; box-shadow: none; border: none; margin: 0; padding: 0 0 0 14px;
  }
  .app-nav-dropdown:not(.offen) .app-nav-dropdown-panel { display: none; }
  .app-nav-dropdown-panel a { border-bottom: 1px solid var(--border) !important; border-radius: 0; padding: 9px 0; }
  .app-nav-dropdown-panel a:last-child { border-bottom: none !important; }
}

.app-main { max-width: 1440px; margin: 0 auto; padding: 32px 20px 70px; }
.app-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-dark); margin: 0 0 6px;
}
.app-title {
  font-family: 'Archivo Black', sans-serif; font-size: 26px; letter-spacing: -0.01em;
  margin: 0 0 26px; color: #37332f;
}

.panel {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 28px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(55,51,47,0.03);
}
.panel h2 { margin-top: 0; font-size: 18px; }
.panel-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 4px;
}

/* Einklappbare Panels (Auftrag/Kunde): Klick auf die Ueberschrift blendet den Inhalt ein/aus.
   Wird gezielt per festbestPanelsEinklappbarMachen() aktiviert, nicht global fuer alle .panel. */
.panel.js-einklappbar > h2 {
  cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between;
}
.panel.js-einklappbar > h2::after {
  content: '▾'; font-size: 14px; color: var(--grau); margin-left: 10px; transition: transform 0.15s ease;
}
.panel.js-einklappbar.eingeklappt > h2::after { transform: rotate(-90deg); }
.panel.js-einklappbar.eingeklappt > :not(h2) { display: none !important; }
.panel.js-einklappbar.eingeklappt { padding-bottom: 20px; }

.panel.vertrag-versendet > h2 { background: #f39318; color: #fff; margin: -26px -28px 14px; padding: 14px 28px; border-radius: 12px 12px 0 0; }
.panel.vertrag-unterschrieben > h2 { background: #2f8f4e; color: #fff; margin: -26px -28px 14px; padding: 14px 28px; border-radius: 12px 12px 0 0; }
.panel.vertrag-versendet > h2::after, .panel.vertrag-unterschrieben > h2::after { color: #fff; }
.panel.vertrag-versendet.eingeklappt > h2, .panel.vertrag-unterschrieben.eingeklappt > h2 { margin-bottom: -26px; border-radius: 13px; }
details.pos-hinzufuegen-details > summary.btn-hinzufuegen {
  display: inline-block; cursor: pointer; list-style: none; background: #f39318; color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: 0; text-transform: none; padding: 8px 16px; border-radius: 8px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
details.pos-hinzufuegen-details > summary.btn-hinzufuegen::-webkit-details-marker { display: none; }
details.pos-hinzufuegen-details > summary.btn-hinzufuegen:hover { background: #c77310; }
details.pos-hinzufuegen-details[open] > summary.btn-hinzufuegen { background: #c77310; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }

/* Kennzahlen-Karten und offene-Punkte-Listen (Startseite, Statistik) - urspruenglich lokal auf
   index.php, jetzt zentral, damit andere Seiten (z. B. Statistik) sie auch nutzen koennen. */
.ueberfaellig-summe-karten { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.ueberfaellig-summe-karte { flex: 1 1 200px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.ueberfaellig-summe-karte.rot { background: #fdf1ef; border-color: #f0cec8; }
.ueberfaellig-summe-label { font-size: 11px; color: var(--grau); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; margin-bottom: 6px; }
.ueberfaellig-summe-zahl { font-size: 24px; font-weight: 800; }
.ueberfaellig-summe-zahl.rot { color: #c0392b; }
.ueberfaellig-summe-unterzeile { font-size: 12px; color: var(--grau); margin-top: 4px; }

.ueberfaellig-spalten { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ueberfaellig-spalte { flex: 1 1 320px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.ueberfaellig-spalte-titel { font-size: 14px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.ueberfaellig-spalte-titel .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ueberfaellig-spalte-titel.kunde .dot { background: var(--orange-dark); }
.ueberfaellig-spalte-titel.festbest .dot { background: #c0392b; }
.ueberfaellig-spalte-hinweis { font-size: 11.5px; color: var(--grau); margin-bottom: 12px; }
.ueberfaellig-eintrag { border-top: 1px solid var(--border); padding: 10px 0; }
.ueberfaellig-eintrag:first-of-type { border-top: none; }
.ueberfaellig-eintrag-titel { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.ueberfaellig-eintrag-titel a { color: var(--text); text-decoration: none; }
.ueberfaellig-eintrag-titel a:hover { text-decoration: underline; }
.ueberfaellig-eintrag-detail { font-size: 12px; color: var(--grau); }
.ueberfaellig-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 6px; background: #fdf1ef; color: #c0392b; }

/* Wiederverwendbare Tab-Leiste (z. B. Adressen bei Kunde, Stammdaten/Benutzer bei Meine Daten). */
.adress-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 18px; }
.adress-tab { padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--grau); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; background: none; border-top: none; border-left: none; border-right: none; white-space: nowrap; }
.adress-tab.aktiv { color: var(--orange-dark); border-bottom-color: var(--orange-dark); }
.adress-inhalt { display: none; max-width: 100%; overflow-x: auto; }
.adress-inhalt.aktiv { display: block; }
@media (max-width: 480px) {
  .adress-tab { padding: 8px 10px; font-size: 12px; }
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.data-table th {
  text-align: left; background: #faf7f2; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--grau); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fdf9f4; }

.btn-secondary {
  background: #fff; border: 1px solid var(--border); color: var(--text); padding: 10px 18px;
  border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-text-danger { background: none; border: none; color: #c0392b; font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline; }
.btn-text-danger:hover { color: #96271c; }

.auth-wrap { max-width: 420px; margin: 0 auto; padding: 64px 20px; }
.auth-wrap .logo { height: 72px; display: block; margin: 0 0 30px 0; }
.auth-wrap .panel { text-align: left; }

.legal-wrap { max-width: 700px; margin: 0 auto; padding: 48px 20px 70px; }
.legal-wrap .logo { height: 72px; display: block; margin: 0 0 26px 0; }
.legal-wrap h3 { margin-top: 26px; }
.legal-wrap ul { margin: 6px 0 12px; padding-left: 22px; }
.legal-wrap li { margin-bottom: 6px; line-height: 1.5; }

/* ---- Offertformular: schlanke Sektionen (angelehnt an bestehende Website) ---- */
.offerte-topbar { border-bottom: 1px solid var(--border); }
.offerte-topbar-inner { max-width: 1440px; margin: 0 auto; padding: 20px 32px; }
.offerte-topbar img { height: 72px; display: inline-block; }
.offerte-wrap { max-width: 680px; margin: 0 auto; padding: 44px 24px 70px; }
.offerte-wrap h1 { font-size: 22px; font-weight: 600; letter-spacing: 0.01em; margin: 0 0 8px; text-transform: uppercase; color: var(--text); }
.offerte-wrap .intro { color: var(--grau); font-size: 14px; margin: 0 0 30px; }
.offerte-wrap .section-title { font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.offerte-wrap .section-underline { width: 128px; height: 4px; background: var(--orange); margin-bottom: 26px; }
.offerte-wrap .spacer { height: 30px; }
.offerte-wrap label .req { color: var(--orange-dark); }
.offerte-wrap .row2 { display: flex; gap: 16px; }
.offerte-wrap .row2 > label { flex: 1; }
@media (max-width: 480px) {
  .offerte-wrap .row2 { flex-direction: column; gap: 0; }
}
.phone-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.phone-prefix { padding: 10px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; background: var(--bg); white-space: nowrap; max-width: 180px; margin-top: 0 !important; }
.phone-wrap input { margin-top: 0 !important; }

.offerte-wrap .section-link { display: inline-block; font-size: 12px; color: var(--orange-dark); margin: -12px 0 20px; text-decoration: none; }
.offerte-wrap .indent-block { border-left: 2px solid #f1e9db; padding-left: 16px; margin: -4px 0 20px; }
.offerte-wrap .checkline { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 13px; margin-bottom: 10px; margin-right: 22px; }
.offerte-wrap .checkline input { width: auto; margin: 0 8px 0 0; }
.offerte-wrap .checkgrid { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 18px; }
.offerte-wrap .checkgrid .checkline { margin-bottom: 6px; margin-right: 0; }
.offerte-wrap .dropzone { border: 1.5px dashed var(--border); border-radius: 8px; padding: 22px 16px; text-align: center; font-size: 13px; color: var(--grau); margin-top: 6px; }
.offerte-wrap input[type="file"] { border: none; padding: 0; background: none; }
.offerte-wrap .hint { font-size: 12px; color: var(--grau); margin-top: -12px; margin-bottom: 16px; }
.offerte-wrap .warn { font-size: 12px; color: #c0392b; margin-top: -12px; margin-bottom: 16px; }
.offerte-wrap input[readonly] { background: #f3f1ec; color: var(--grau); }
.verstecken { display: none !important; }

/* ---- Breite Desktop-Version des Offertformulars (kein Spaltenlayout) ---- */
/* ---- Einheitliche Desktop-Inhaltsbreite (1440px) für alle Seiten ----
   Neue Seiten sollten dieselbe max-width hier ergänzen, damit die Breite
   konsistent bleibt. Ausnahme: Login/Passwort-Seiten (.auth-wrap) bleiben
   bewusst schmal, da sie eine zentrierte Karte statt einer Inhaltsseite sind. */
@media (min-width: 1200px) {
  .offerte-wrap { max-width: 1440px; padding: 56px 64px 90px; }
  .offerte-topbar-inner { padding: 20px 64px; }
  .legal-wrap { max-width: 1440px; padding: 56px 64px 90px; }
}
.phone-wrap input { margin-top: 0 !important; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill-entwurf, .pill-abgelaufen { background: #ecebe7; color: var(--grau); }
.pill-versendet { background: var(--orange-light); color: var(--orange-dark); }
.pill-akzeptiert { background: #e6f5ea; color: #2f8f4e; }
.pill-abgelehnt { background: #fbe4e1; color: #c0392b; }
.pill-storniert { background: #fbe4e1; color: #c0392b; }

/* ---- Schnellzugriff-Kacheln (Dashboard) ---- */
.kachel-grid { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 28px; margin-top: 16px; }
.kachel {
  flex: 0 0 calc(25% - 10.5px); box-sizing: border-box;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 12px; text-decoration: none; display: flex; flex-direction: column;
  align-items: center; gap: 2px; text-align: center; transition: border-color .15s;
}
.kachel:hover { border-color: var(--orange); }
.kachel { position: relative; cursor: default; }
.kachel-griff {
  position: absolute; top: 6px; right: 8px; font-size: 13px; color: #c9c2b4;
  cursor: grab; padding: 2px 4px; line-height: 1; user-select: none;
}
.kachel-griff:hover { color: var(--orange); }
.kachel.kachel-dragging { opacity: .4; }
.kachel.kachel-drop-ziel { border-color: var(--orange); border-style: dashed; background: var(--orange-light); }
.kachel-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--orange-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.kachel-icon svg { width: 30px; height: 30px; stroke: var(--orange-dark); }
.kachel-label { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
@media (max-width: 620px) {
  .kachel { flex: 0 0 calc(50% - 7px); }
}

/* ---- Angebots-Detailansicht ---- */
.panel .zeile { display: flex; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.panel .zeile:last-child { border-bottom: none; }
.panel .zeile .label { flex: 0 0 220px; color: var(--grau); font-weight: 600; }
@media (max-width: 640px) {
  .panel .zeile { flex-direction: column; gap: 2px; padding: 8px 0; }
  .panel .zeile .label { flex: none; margin-bottom: 0; }
}


/* Kalendereintraege im Auftrag: Bezeichnung | Datum | Buttons */
.kal-liste { margin-top: 4px; }
.kal-zeile { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.kal-zeile:last-child { border-bottom: none; }
.kal-label { font-size: 13px; color: #5a5654; font-weight: 600; }
.kal-datum { font-size: 15px; font-weight: 600; color: #282626; }
.kal-datum.kal-leer { font-size: 13px; font-weight: 400; color: #8a8580; }
.kal-aktionen { display: flex; gap: 8px; justify-content: flex-end; }
.kal-google { background: #f39318; color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 8px; white-space: nowrap; }
.kal-google:hover { background: #c77310; }
.kal-ics { background: #fff; color: #5a5654; text-decoration: none; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); }
.kal-ics:hover { background: #faf6ee; }
@media (max-width: 640px) {
  .kal-zeile { grid-template-columns: 1fr auto; row-gap: 6px; }
  .kal-label { grid-column: 1 / -1; }
}

/* Orange Aktions-Button (gleiches Design wie "+ Position / Option / Notiz hinzufügen") */
.btn-orange {
  display: inline-block; cursor: pointer; background: #f39318; color: #fff; border: none; font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 0; text-transform: none; text-decoration: none; padding: 8px 16px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.btn-orange:hover { background: #c77310; color: #fff; }
/* Der "+ ... hinzufügen"-Button verschwindet, sobald das Formular offen ist */
details.pos-hinzufuegen-details[open] > summary.btn-hinzufuegen { display: none; }
