/* ============================================
   JOBS-IN-UCKERMARK-BARNIM.DE
   Оригінал: portal вакансій, бордо #7E0000, без sidebar, full-width
   Контент: Wettanbieter mit App 2026
   Дизайн: portal / functional / clean — дух оригіналу
   ============================================ */

:root {
  --red:       #7E0000;   /* оригінальний акцент */
  --red-lt:    #a50000;
  --red-bg:    rgba(126,0,0,.06);
  --red-border:rgba(126,0,0,.2);
  --bg:        #f5f5f5;   /* portal light gray */
  --bg-white:  #ffffff;
  --bg-card:   #fafafa;
  --border:    #e0e0e0;
  --text-1:    #1a1a1a;
  --text-2:    #555555;
  --text-3:    #999999;
  --tr:        0.2s ease;
  --max:       1100px;
  --hh:        60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.7;
  font-size: 15px;
}

img { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-lt); text-decoration: underline; }
strong { font-weight: 600; }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.3; color: var(--text-1); letter-spacing: -.01em; }

/* ─── HEADER — portal style ──────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--red);
  height: var(--hh);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 20px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .75rem; color: #fff; letter-spacing: .03em;
}
.logo-text {
  font-size: .92rem; font-weight: 700; color: #fff;
  letter-spacing: .02em; line-height: 1.2;
}
.logo-text span { display: block; font-size: .62rem; font-weight: 400; color: rgba(255,255,255,.65); letter-spacing: .05em; }

.nav-main { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-main a {
  display: block; padding: 8px 13px;
  font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.8);
  border-bottom: 3px solid transparent; transition: all var(--tr); white-space: nowrap;
}
.nav-main a:hover, .nav-main a.active {
  color: #fff; border-bottom-color: rgba(255,255,255,.7); text-decoration: none;
}
.nav-toggle { display: none; background: none; border: none; color: rgba(255,255,255,.85); cursor: pointer; padding: 8px; }

/* ─── PAGE HEADER — portal breadcrumb style ──── */
.page-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--red);
  padding: 28px 20px 20px;
}
.page-header-inner { max-width: var(--max); margin: 0 auto; }
.breadcrumb { font-size: .75rem; color: var(--text-3); margin-bottom: 10px; }
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--border); }
.page-header h1 { font-size: clamp(1.3rem, 2.8vw, 1.9rem); color: var(--red); margin-bottom: 6px; }
.page-header p { font-size: .88rem; color: var(--text-2); }

/* ─── MAIN LAYOUT — full-width like original ─── */
.page-body {
  max-width: var(--max); margin: 0 auto;
  padding: 28px 20px 60px;
}

/* ─── ARTICLE ─────────────────────────────────── */
.art-section { margin-bottom: 44px; scroll-margin-top: calc(var(--hh) + 16px); }

.art-section h2 {
  font-size: 1.2rem; color: var(--red);
  margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
  position: relative;
}
.art-section h2::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 36px; height: 2px; background: var(--red);
}
.art-section h3 { font-size: .97rem; font-weight: 700; margin: 18px 0 7px; color: var(--text-1); }
.art-section p { color: var(--text-2); margin-bottom: .9em; font-size: .94rem; line-height: 1.8; }

/* In-page nav (Варіант 1 — простий список, no sidebar) */
.article-nav {
  background: var(--bg-white); border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 16px 18px; margin-bottom: 32px;
}
.article-nav-title { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 10px; }
.article-nav-links { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; }
.article-nav-links a { font-size: .78rem; color: var(--text-2); border-bottom: 1px solid var(--border); padding-bottom: 1px; transition: all var(--tr); }
.article-nav-links a:hover { color: var(--red); border-bottom-color: var(--red); text-decoration: none; }

/* Checklist */
.art-checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; padding: 0; }
.art-checklist li { display: flex; gap: 9px; align-items: flex-start; color: var(--text-2); font-size: .92rem; }
.ci { width: 16px; height: 16px; min-width: 16px; border-radius: 50%; background: var(--red-bg); border: 1px solid var(--red-border); display: flex; align-items: center; justify-content: center; font-size: .55rem; color: var(--red); margin-top: 3px; flex-shrink: 0; }

/* Steps */
.art-steps { display: flex; flex-direction: column; gap: 1px; background: var(--border); margin: 14px 0; }
.art-step { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-white); padding: 14px 16px; transition: background var(--tr); }
.art-step:hover { background: var(--bg-card); }
.art-step-n { width: 28px; height: 28px; min-width: 28px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.art-step p { margin: 0; font-size: .88rem; color: var(--text-2); }

/* Info box */
.art-info { border-left: 3px solid var(--red); background: var(--red-bg); padding: 12px 16px; margin: 14px 0; font-size: .88rem; }
.art-info p { margin: 0; color: var(--text-2); }
.art-info.warn { border-left-color: #c0392b; background: rgba(192,57,43,.05); }

/* Stats */
.art-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); margin: 16px 0; }
.art-stat { background: var(--bg-white); padding: 16px; text-align: center; }
.art-stat .n { font-size: 1.7rem; font-weight: 700; color: var(--red); display: block; }
.art-stat .l { font-size: .68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; display: block; }

/* TABLE */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table thead { background: var(--red); }
.data-table th { padding: 10px 14px; text-align: left; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); white-space: nowrap; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--red-bg); }
.dn { font-weight: 700; color: var(--text-1) !important; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: .67rem; font-weight: 600; }
.bg { background: rgba(0,120,60,.1); color: #005a2b; border: 1px solid rgba(0,120,60,.25); }
.bo { background: rgba(160,80,0,.1); color: #7a3d00; border: 1px solid rgba(160,80,0,.2); }
.bb { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); margin: 16px 0; }
.faq-item { background: var(--bg-white); overflow: hidden; }
.faq-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: none; border: none; cursor: pointer; text-align: left; font-size: .9rem; font-weight: 600; color: var(--text-1); transition: background var(--tr); }
.faq-btn:hover { background: var(--red-bg); }
.faq-btn h3 { font-size: .9rem; font-weight: 600; margin: 0; font-family: inherit; }
.faq-icon { width: 20px; height: 20px; min-width: 20px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--text-3); transition: transform var(--tr); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--red); border-color: var(--red); }
.faq-ans { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-ans { max-height: 600px; }
.faq-ans-inner { padding: 0 18px 14px; border-top: 1px solid var(--border); font-size: .86rem; color: var(--text-2); line-height: 1.75; padding-top: 12px; }

/* RG Box */
.rg-box { border: 1px solid rgba(192,57,43,.2); background: rgba(192,57,43,.04); padding: 14px 18px; margin: 20px 0; }
.rg-box .rg-t { font-size: .7rem; font-weight: 700; color: #a32419; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.rg-box p { font-size: .83rem; color: var(--text-2); margin: 0; }
.rg-box a { color: #a32419; }

/* Subpage content */
.subpage { padding: 28px 20px 60px; }
.subpage-inner { max-width: var(--max); margin: 0 auto; }
.subpage-inner h2 { font-size: 1.15rem; color: var(--red); margin: 32px 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }
.subpage-inner h2:first-child { margin-top: 0; }
.subpage-inner h3 { font-size: .95rem; font-weight: 700; margin: 18px 0 7px; }
.subpage-inner p { color: var(--text-2); margin-bottom: .9em; font-size: .93rem; }
.subpage-inner ul { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 10px 0 14px; padding: 0; }
.subpage-inner li { color: var(--text-2); font-size: .91rem; padding-left: 14px; position: relative; }
.subpage-inner li::before { content: '▸'; position: absolute; left: 0; color: var(--red); font-size: .7rem; top: 3px; }

/* Kontakt */
.kontakt-box { background: var(--bg-white); border-top: 3px solid var(--red); border: 1px solid var(--border); border-top: 3px solid var(--red); padding: 28px; max-width: 520px; }
.k-block { margin-bottom: 18px; }
.k-lbl { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 4px; }
.k-val { font-size: .9rem; color: var(--text-1); line-height: 1.7; }
.k-val a { color: var(--red); }

/* FOOTER — portal style: multi-column on dark */
.site-footer { background: var(--red); padding: 24px 20px 16px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.5); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { font-size: .75rem; color: rgba(255,255,255,.6); transition: color var(--tr); }
.footer-links a:hover { color: #fff; text-decoration: none; }

/* 404 */
.err-page { min-height: calc(100vh - var(--hh)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.err-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; color: var(--border); display: block; line-height: 1; }
.err-page h1 { font-size: 1.4rem; margin: 12px 0 8px; color: var(--red); }
.err-page p { color: var(--text-3); margin-bottom: 24px; }
.btn-red { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; background: var(--red); color: #fff; font-size: .8rem; font-weight: 700; transition: background var(--tr); margin: 3px; }
.btn-red:hover { background: var(--red-lt); color: #fff; text-decoration: none; }
.btn-out { background: none; border: 1px solid var(--border); color: var(--text-2); }
.btn-out:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); text-decoration: none; }

/* Back to top */
.btt { position: fixed; bottom: 20px; right: 20px; width: 38px; height: 38px; background: var(--red); border: none; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); cursor: pointer; opacity: 0; transform: translateY(8px); transition: all var(--tr); z-index: 50; text-decoration: none; font-size: .85rem; border-radius: 2px; }
.btt.vis { opacity: 1; transform: translateY(0); }
.btt:hover { background: var(--red-lt); color: #fff; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .art-stats { grid-template-columns: 1fr 1fr; }
  .page-body { padding: 22px 16px 48px; }
  .page-header { padding: 20px 16px 16px; }
}
@media (max-width: 768px) {
  :root { --hh: 56px; }
  .header-inner { padding: 0 14px; }
  .nav-main {
    display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--red); flex-direction: column; align-items: flex-start;
    padding: 16px 14px; gap: 2px; overflow-y: auto; z-index: 99;
  }
  .nav-main.open { display: flex; }
  .nav-main a { font-size: .9rem; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.15); border-top: none; border-left: none; border-right: none; }
  .nav-toggle { display: flex; }
  .page-body, .subpage { padding: 18px 14px 48px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .art-stats { grid-template-columns: 1fr; }
  .article-nav-links { flex-direction: column; gap: 6px; }
}
