/* pvth.de 2026 - dark theme, custom grid/component layer (Bootstrap-4-class-compatible) */

:root {
  --bg: #1a1f26;
  --bg-alt: #161a20;
  --surface: #232a35;
  --surface-hover: #2a323f;
  --surface-2: #2c3542;
  --border: #333d4b;
  --border-soft: #2a323e;
  --text: #e8eaed;
  --text-muted: #9aa4b2;
  --text-faint: #6b7684;
  --accent: #4f8ff0;
  --accent-hover: #72a6f5;
  --accent-text: #0c1526;
  --danger: #f2555a;
  --danger-bg: rgba(242, 85, 90, 0.12);
  --danger-text: #f7c9ca;
  --success: #4caf7d;
  --success-bg: rgba(76, 175, 125, 0.12);
  --success-text: #bfe6d3;
  --warning: #e0a458;
  --warning-bg: rgba(224, 164, 88, 0.12);
  --info: #5b9dd9;
  --info-bg: rgba(91, 157, 217, 0.12);
  --info-text: #cfe3f5;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-w: 1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 1.4em 0 0.6em;
}
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

code, tt, kbd, pre {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  color: var(--text);
}

address { font-style: normal; }

ul.circle { list-style-type: circle; }

.subheader {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.6em;
}

.small, small { color: var(--text-muted); font-size: 0.875em; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.mr-3 { margin-right: 1rem !important; }
.m-0 { margin: 0 !important; }
.ml-auto { margin-left: auto !important; }

/* ---- layout / grid (Bootstrap 4 + Foundation 5 compatible names) ---- */

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.row, .form-group.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem 1.75rem;
  margin: 0 0 1rem;
}
.row.collapse { gap: 0; }

/* any direct child of .row without an explicit col-*/columns class spans the full
   row by default (content files sometimes nest a plain <div> - e.g. .container,
   .card-group - directly in a .row without a column class) */
.row > * { grid-column: 1 / -1; min-width: 0; }

[class*="col-"], .columns { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 576px) {
  .col-sm-4 { grid-column: span 4; }
  .col-sm-6 { grid-column: span 6; }
  .col-sm-8 { grid-column: span 8; }
  .col-sm-12 { grid-column: span 12; }
}
.col-lg-12, .large-12 { grid-column: span 12; }
.small-1 { grid-column: span 1; }
.small-2 { grid-column: span 2; }
.small-4 { grid-column: span 4; }

.col-form-label {
  padding-top: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---- buttons ---- */

.btn, button, .button, input[type="submit"] {
  display: inline-block;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover, button:hover, .button:hover, input[type="submit"]:hover {
  background: var(--surface-hover);
  text-decoration: none;
}
.btn:active, button:active, .button:active { transform: translateY(1px); }

.btn-primary, .button.tiny {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover, .button.tiny:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
}
.button.tiny { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

/* ---- forms ---- */

label { color: var(--text-muted); font-weight: 500; }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="search"],
textarea, select, .form-control {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
textarea { min-height: 8rem; resize: vertical; }

input:focus, textarea:focus, select:focus, .form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.2);
}

input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

.form-group { margin-bottom: 1rem; }
.form-check { display: flex; align-items: flex-start; gap: 0.5rem; }
.form-check-input { margin-top: 0.3rem; width: auto; }
.form-check-label { color: var(--text); font-weight: 400; }

.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.form-inline .form-control { width: auto; }

.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group-addon, .prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-muted);
}

/* ---- cards ---- */

.card-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.card-group .card { margin-bottom: 0; }

/* process steps (itprocess() helper) */
.process-steps {
  display: flex;
  align-items: stretch;
  margin: 0 0 1.5rem;
}
.process-step {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.9rem;
  text-align: center;
}
.process-step.active {
  border-color: var(--accent);
  background: var(--surface-hover);
}
.process-step-num {
  width: 1.9rem;
  height: 1.9rem;
  line-height: 1.9rem;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
}
.process-step.active .process-step-num {
  background: var(--accent);
  color: var(--accent-text);
}
.process-step-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.process-step-text {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.process-step-link {
  font-size: 0.8rem;
  font-weight: 600;
}
.process-connector {
  flex: 0 0 1.5rem;
  align-self: center;
  text-align: center;
  color: var(--text-faint);
  font-size: 1.1rem;
}
.process-connector::after { content: "\2192"; }

@media (max-width: 640px) {
  .process-steps { flex-direction: column; gap: 0.5rem; }
  .process-connector { flex-basis: auto; padding: 0.1rem 0; }
  .process-connector::after { content: "\2193"; }
}

.card-header {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.card-header a { color: var(--text); display: block; }
.card-header a:hover { color: var(--accent); text-decoration: none; }
.card-body, .card-block { padding: 1.25rem; }
.card-footer {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}
.card-title { color: var(--text); font-weight: 600; margin: 0 0 0.5rem; font-size: 1.05rem; }
.card-title img, .card-title a img { vertical-align: -3px; margin-right: 0.35rem; }
.card-text { color: var(--text-muted); margin: 0; }
.card-img-top { width: 100%; display: block; }
.card a { color: var(--text); }
.card-body a:hover, .card a:hover { text-decoration: none; }
.card-body > a { display: block; }

/* accordion (FAQ) collapse behaviour */
.collapse { display: none; }
.collapse.show { display: block; }
a.collapsed::after, a[data-toggle="collapse"]::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
a[data-toggle="collapse"]:not(.collapsed)::after { content: "\2212"; }

/* ---- tables ---- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.table th, .table td, table th, table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}
.table th { color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--border); }
.table-striped tbody tr:nth-of-type(odd), table tr.row2:nth-of-type(odd) { background: rgba(255, 255, 255, 0.02); }
tr.row1 { background: var(--surface-2); font-weight: 600; }
tr.row2 { }
.table-sm th, .table-sm td { padding: 0.35rem 0.6rem; }
.table-active { background: var(--surface-hover) !important; }
.table-danger { background: var(--danger-bg) !important; }
.table-success { background: var(--success-bg) !important; }
.table-warning { background: var(--warning-bg) !important; }

/* ---- badges / alert boxes (errnot/infonot/errmsg render inline styles;
   these classes give a fallback + the .container wrapping keeps width sane) ---- */

.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text);
}

/* ==================== site chrome ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(26, 31, 38, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.navbar-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.navbar-brand img { display: block; height: 30px; width: auto; }

.navbar-toggler {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  color: var(--text);
}

.navbar-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-item > .nav-link {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-item > .nav-link:hover { background: var(--surface); color: var(--accent); text-decoration: none; }
.nav-item.active > .nav-link { color: var(--accent); }
.nav-item.dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  margin-left: 0.35em;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
  opacity: 0.7;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  margin-top: 0.35rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 50;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
}
.dropdown-item:hover { background: var(--surface-hover); color: var(--accent); text-decoration: none; }

/* hero */
.site-hero {
  position: relative;
  min-height: 160px;
  height: 19vh;
  max-height: 260px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 26, 32, 0.35) 0%, rgba(22, 26, 32, 0.88) 85%, var(--bg) 100%);
}
.site-hero .hero-credit {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-faint);
  padding: 0 1.25rem 0.4rem;
}

/* main content layout */
.site-main { padding: 2rem 0 3rem; }
.content-col h2:first-child { margin-top: 0; }
.sidebar-col address {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.sidebar-col address strong { color: var(--text); }
.sidebar-col address img { vertical-align: -2px; margin-right: 0.3rem; opacity: 0.85; }
.sidebar-col address a { color: var(--accent); }

/* footer */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
}
.footer-nav .nav-link {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  color: var(--text-muted) !important;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}
.footer-nav .nav-link:hover { color: var(--accent) !important; background: var(--surface); text-decoration: none; }

@media (max-width: 767px) {
  .navbar-toggler { display: inline-flex; align-items: center; }
  .navbar-collapse {
    display: none;
    width: 100%;
    order: 3;
  }
  .navbar-collapse.show { display: block; }
  .navbar-nav { flex-direction: column; align-items: stretch; padding: 0.5rem 0; }
  .nav-item { width: 100%; }
  .dropdown-menu { position: static; box-shadow: none; margin: 0.25rem 0 0.25rem 0.75rem; }
  .content-col, .sidebar-col { grid-column: 1 / -1 !important; }
}
