/* ============================================================
   IGVN Website-Check – Oberfläche
   ============================================================ */

.center { text-align: center; }
.error { color: var(--bad); font-size: 14px; margin: 0; }

input[type="text"], input[type="password"], input[type="url"], input[type="number"]:not(.settings-form *), input:not([type]) {
  width: 100%;
  font: 400 16px/1.4 var(--sans);
  color: var(--espresso);
  padding: 13px 14px;
  border: 1px solid var(--sand);
  border-radius: 10px;
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(99, 90, 81, .15); }
label { display: block; font-size: 13px; font-weight: 500; color: var(--taupe); margin-bottom: 6px; }
label span { font-weight: 400; color: var(--stein); }
.btn.full { width: 100%; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: 100%; max-width: 380px;
  background: var(--white);
  border: 1px solid var(--leinen);
  border-radius: 16px;
  padding: 36px 28px 28px;
  box-shadow: 0 14px 40px rgba(43, 38, 34, .08);
}
.login-logo { width: 190px; margin: 0 auto 18px; }
.login-card .label { margin: 0 0 26px; }
.login-card form { display: grid; gap: 12px; }
.login-card label { margin-bottom: -4px; }

/* ---------- Kopf ---------- */
.app-head {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 980px; margin: 0 auto;
  padding: 22px 16px;
  border-bottom: 1px solid var(--sand);
}
.app-logo { height: 26px; width: auto; }
.logout-form { margin: 0; }
.logout { font: inherit; font-size: 14px; color: var(--stein); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.logout:hover { color: var(--espresso); }

.app { max-width: 980px; margin: 0 auto; padding: 0 16px 80px; }

.intro { padding: 48px 0 28px; }
.intro .label { margin: 0 0 12px; }
.intro h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.12;
  margin: 0 0 14px;
}
.lead { font-size: 17px; color: var(--taupe); max-width: 620px; margin: 0; }

/* ---------- Formular ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--leinen);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(43, 38, 34, .06);
}
.check-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 26px;
}
.field.wide { grid-column: 1 / -1; }
.field.wide input { font-size: 19px; padding: 16px; }
.form-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap;
}
.form-foot .error { margin-right: auto; }

/* ---------- Verlauf ---------- */
.history { margin-top: 48px; }
.history-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--sand);
}
.history h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0; }
.count {
  font-family: var(--label); font-size: 12px; color: var(--taupe);
  background: var(--leinen); border-radius: 999px; padding: 2px 10px;
}
.empty { color: var(--stein); margin: 18px 0; }

/* Suche in den Berichten */
.history-head { flex-wrap: wrap; }
.report-search { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.report-search input[type=search] {
  width: 260px; margin: 0; padding: 9px 12px; font-size: 15px;
}
.report-search .btn { padding: 9px 16px; }
.search-reset { font-size: 14px; color: var(--taupe); }
.search-info { margin: 14px 0 0; font-size: 14px; color: var(--taupe); }
@media (max-width: 640px) {
  .report-search { margin-left: 0; width: 100%; }
  .report-search input[type=search] { flex: 1; width: auto; min-width: 0; }
}

.reports { list-style: none; margin: 0; padding: 0; }
.reports li { border-bottom: 1px solid var(--leinen); }
.reports a {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 4px;
  text-decoration: none;
  transition: background .15s;
}
.reports a:hover { background: rgba(233, 227, 218, .5); }
.score-pill {
  flex: 0 0 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--serif); font-size: 18px;
  border: 2px solid currentColor;
}
.p-good { color: var(--good); }
.p-warn { color: #A88440; }
.p-bad  { color: var(--bad); }
.rep-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rep-main strong { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-main small { color: var(--stein); font-size: 13px; }
.arrow { color: var(--sand); font-size: 18px; }
.reports a:hover .arrow { color: var(--taupe); }

/* ---------- Fortschritt ---------- */
.progress {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(43, 38, 34, .55);
  backdrop-filter: blur(6px);
}
.progress[hidden] { display: none; }
.progress-card {
  width: 100%; max-width: 420px;
  background: var(--elfenbein);
  border-radius: 18px;
  padding: 30px 28px 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.progress-logo { width: 140px; margin: 0 auto 16px; }
.progress-card .label { margin: 0 0 6px; }
.progress-domain {
  font-family: var(--serif); font-size: 24px; text-align: center; margin: 0 0 20px;
  overflow-wrap: anywhere;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li {
  position: relative;
  padding: 9px 0 9px 32px;
  font-size: 15px;
  color: var(--sand);
  transition: color .3s;
}
.steps li::before {
  content: ""; position: absolute; left: 4px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  box-sizing: border-box;
}
.steps li.active { color: var(--espresso); font-weight: 500; }
.steps li.active::before {
  border-color: var(--taupe); border-top-color: transparent;
  animation: spin .8s linear infinite;
}
.steps li.done { color: var(--taupe); }
.steps li.done::before {
  background: var(--good); border-color: var(--good);
}
.steps li.done::after {
  content: ""; position: absolute; left: 9px; top: 50%;
  width: 4px; height: 7px; margin-top: -5px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.progress-note { font-size: 13px; color: var(--stein); text-align: center; margin: 18px 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .check-form { grid-template-columns: 1fr; padding: 20px; }
  .form-foot .btn { width: 100%; }
  .intro { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .steps li.active::before { animation: none; }
}

/* ---------- Navigation im Konto ---------- */
.app-head { flex-wrap: wrap; gap: 12px 24px; }
.app-logo-link { display: inline-flex; }
.app-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 14px; }
.app-nav a { color: var(--stein); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.app-nav a:hover { color: var(--espresso); }
.app-nav a.on { color: var(--espresso); border-bottom-color: var(--taupe); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 600; }

.flash { margin: 20px 0 0; }
.notice { padding: 16px 20px; margin: 16px 0; }
.notice p { margin: 0; color: var(--taupe); line-height: 1.6; }
.copyable { user-select: all; overflow-wrap: anywhere; font-size: 13px; background: var(--leinen); padding: 2px 6px; border-radius: 6px; }

.quota-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 18px; font-size: 14px; color: var(--taupe); }
.quota-track { flex: 1 1 160px; max-width: 280px; height: 6px; border-radius: 99px; background: var(--leinen); overflow: hidden; }
.quota-track i { display: block; height: 100%; background: var(--taupe); border-radius: 99px; }
.quota-exp { color: var(--stein); }

.scope-switch { margin-left: auto; display: flex; gap: 14px; font-size: 13px; }
.scope-switch a { color: var(--stein); text-decoration: none; }
.scope-switch a.on { color: var(--espresso); font-weight: 600; }
.owner-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--taupe); background: var(--leinen); padding: 1px 7px; border-radius: 99px; margin-right: 6px; }

/* ---------- Backend ---------- */
.admin h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 28px 0 14px; }
.admin h2.sub { font-size: 20px; margin-top: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; border-bottom: 1px solid var(--sand); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--stein); font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--espresso); border-bottom-color: var(--taupe); font-weight: 500; }
.item { padding: 20px 22px; margin: 0 0 16px; }
.item h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.meta { margin: 2px 0; font-size: 14px; color: var(--stein); overflow-wrap: anywhere; }
.meta a { color: var(--taupe); }
blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--sand); background: var(--elfenbein); color: var(--taupe); font-size: 14px; line-height: 1.6; }
.settings-form fieldset { border: 1px solid var(--leinen); border-radius: 12px; padding: 12px 16px 14px; margin: 14px 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; align-items: center; }
.settings-form legend { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stein); padding: 0 6px; }
.settings-form label { margin: 0; font-size: 14px; color: var(--taupe); }
.settings-form input[type=number], .settings-form input[type=date], .settings-form select {
  font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--sand); border-radius: 8px; background: #fff; color: var(--espresso); margin-left: 6px; max-width: 180px;
}
.settings-form input[type=number] { width: 90px; }
.settings-form small { color: var(--stein); }
.item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.check-label.inline { margin: 0; }
.pill { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.pill-good { background: #E6EEDF; color: #3F5634; }
.pill-warn { background: #F3E6CF; color: #7A5B1F; }
.pill-bad  { background: #F5E1DB; color: #8A3B2C; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--stein); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--sand); }
.table td { padding: 10px; border-bottom: 1px solid var(--leinen); vertical-align: top; color: var(--espresso); }
.table a { color: var(--taupe); }
.inline-form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--bad); cursor: pointer; text-decoration: underline; }

/* ---------- Branding-Formular ---------- */
.brand-form { padding: 24px; display: grid; gap: 8px; }
.brand-form fieldset { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.brand-form legend { font-family: var(--serif); font-size: 21px; color: var(--espresso); margin-bottom: 10px; }
.brand-form label { margin-top: 8px; }
.brand-form textarea, .stack-form textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--espresso); padding: 12px 14px; border: 1px solid var(--sand); border-radius: 10px; background: #fff; resize: vertical;
}
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.brand-logo-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.brand-logo-preview { width: 220px; height: 90px; border: 1px dashed var(--sand); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 10px; }
.brand-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-logo-preview span { color: var(--stein); font-size: 13px; }
.color-row { display: flex; align-items: center; gap: 12px; }
.color-row input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--sand); border-radius: 8px; background: #fff; }
.color-hint { font-size: 13px; color: var(--stein); }
input[type="email"], input[type="tel"] {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--espresso); padding: 13px 14px; border: 1px solid var(--sand); border-radius: 10px; background: var(--white); outline: none;
}
input[type="file"] { font-size: 14px; }
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
  .scope-switch { margin-left: 0; width: 100%; }
}

/* ---------- Einstellungen ---------- */
input[type="email"] { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--espresso); padding: 13px 14px; border: 1px solid var(--sand); border-radius: 10px; background: #fff; }
input[type="email"]:focus { outline: none; border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(99, 90, 81, .15); }
.set-form { margin-top: 18px; }
.set-form .two-col, .set-form .three-col { margin-top: 2px; }
.set-form input[type="number"] { max-width: 160px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; }
.set-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--stein); }
.set-hint a { color: var(--taupe); }
.set-hint code { font-size: 12px; background: var(--leinen); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.set-narrow { max-width: 620px; }
.set-first { background: var(--leinen); border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.55; color: var(--taupe); margin-bottom: 8px; }
.set-first strong { display: block; color: var(--espresso); margin-bottom: 2px; }
.step-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 2.2fr); gap: 4px 14px; align-items: end; }
.step-no { width: 28px; height: 28px; border: 1px solid var(--taupe); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--taupe); margin-bottom: 12px; }
.flash-error div + div { margin-top: 4px; }

/* ---------- Übersicht ---------- */
.dash h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0; }
.dash-todo { padding: 18px 22px; margin: 18px 0 0; border-color: var(--warn); }
.dash-todo ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.dash-todo a { display: block; padding: 8px 0; color: var(--espresso); text-decoration: none; border-bottom: 1px solid var(--leinen); font-size: 15px; }
.dash-todo li:last-child a { border-bottom: 0; }
.dash-todo a span { color: var(--stein); }
.dash-todo a:hover { color: var(--taupe); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; text-decoration: none; color: inherit; transition: border-color .15s; }
.kpi:hover { border-color: var(--sand); }
.kpi-label { font-size: 13px; color: var(--stein); }
.kpi-num { font-family: var(--serif); font-size: 44px; line-height: 1.05; color: var(--espresso); }
.kpi-sub { font-size: 13px; color: var(--taupe); line-height: 1.45; }
.kpi-alert { border-color: var(--warn); }
.kpi-alert .kpi-num { color: #9A7430; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.dash-head a { font-size: 14px; color: var(--taupe); }
.dash-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13px; color: var(--stein); }
.dash-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-public { background: var(--taupe); }
.lg-partner { background: var(--sand); }
.lg-admin { background: var(--good); }
.dash-chart { padding: 20px 22px 16px; }
.dc-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 180px; align-items: end; }
.dc-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.dc-bar-val { font-size: 12px; color: var(--taupe); min-height: 16px; }
.dc-bar-stack { width: 100%; max-width: 34px; display: flex; flex-direction: column; border-radius: 5px 5px 0 0; overflow: hidden; min-height: 2px; background: var(--leinen); }
.dc-bar-stack i { display: block; min-height: 3px; }
.dc-bar-day { font-size: 11px; color: var(--stein); margin-top: 6px; }
.dash-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0 40px; }
.dash-list { padding: 20px 22px; }
.dash-list ul { list-style: none; margin: 0; padding: 0; }
.dash-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--leinen); font-size: 14px; line-height: 1.5; }
.dash-list li > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.dash-list a { color: var(--taupe); }
.dash-list small { color: var(--stein); font-size: 12px; }
.dash-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; text-align: right; }
.dash-usage { min-width: 92px; }
.dash-usage .quota-track { width: 92px; }
.dash-note { font-size: 14px; color: var(--taupe); background: var(--elfenbein); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; line-height: 1.5; }
.dash-list .empty { font-size: 14px; color: var(--stein); margin: 0; }
@media (max-width: 960px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .three-col { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 28px minmax(0, 1fr); }
  .step-row > div:last-child { grid-column: 2; }
  .step-no { margin-bottom: 0; align-self: start; margin-top: 30px; }
  .kpi-num { font-size: 36px; }
  .kpi { padding: 14px 16px; }
  .dc-bars { gap: 3px; height: 150px; }
  .dc-bar-val { font-size: 10px; }
  .dash-list li { flex-direction: column; gap: 6px; }
  .dash-right { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
}
.acc-cols { align-items: start; margin-top: 18px; }
.acc-form { margin-top: 0; }
.login-forgot { margin-top: 12px; }
.dash-usage .quota-track { flex: none; height: 6px; display: block; }
.app.dash { max-width: 1120px; }
.acc-cols h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0; }

/* ---------- Berichtsliste: Ansichten und Löschen ---------- */
.report-tabs { margin-top: 14px; }
.tab-count { font-size: 12px; color: var(--stein); background: var(--leinen); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.partner-filter { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: 14px; color: var(--taupe); }
.partner-filter select { font: 400 15px/1.3 var(--sans); padding: 9px 12px; border: 1px solid var(--sand); border-radius: 10px; background: #fff; color: var(--espresso); max-width: 100%; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--leinen); }
.bulk-bar .check-label { margin: 0; }
.bulk-bar .btn { padding: 9px 16px; font-size: 13px; }
.bulk-bar .btn[disabled] { opacity: .45; cursor: default; }
.reports li { display: flex; align-items: center; }
.reports li > a { flex: 1; min-width: 0; }
.rep-check { flex: 0 0 auto; padding: 14px 6px 14px 4px; cursor: pointer; display: flex; }
.rep-check input { width: 18px; height: 18px; accent-color: var(--taupe); margin: 0; }
.reports li:has(input:checked) { background: rgba(233, 227, 218, .45); }
.acc-delete { margin: 0 0 40px; max-width: 620px; }
.lg-member { background: #A9B99B; }
.dash-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
