:root{
  --blue: #08AFE2; --blue-dark: #0699c7; --orange: #FF6200; --green: #39FF14;     
  --bg: #ffffff; --card: #ffffff; --text: #111827; --muted: #6b7280; --border: #e5e7eb;
  --shadow: 0 12px 35px rgba(8, 175, 226, 0.12); --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
*{ box-sizing:border-box; }
body{ margin:0; font-family: system-ui, sans-serif; color:var(--text); background: var(--bg); display:flex; flex-direction:column; min-height: 100vh; }
.container{ width:min(980px, calc(100% - 32px)); margin: 28px auto; }
.header{ display:flex; align-items:center; gap:20px; margin-bottom:24px; flex-wrap: wrap; }
.logo { height: auto; max-height: 80px; }
h1{ margin:0; font-size: 1.45rem; color: var(--blue); }

/* CSP Ersatz für Inline-Styles */
.hidden { display: none !important; }
.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; }
.error-message { color:#b91c1c; background:#fef2f2; padding:12px; border-radius:8px; margin-bottom:15px; border: 1px solid #fecaca; }

.section-title { font-size: 1.2rem; color: var(--blue); margin: 24px 0 12px 0; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.subsection-title { font-size: 1.05rem; color: var(--text); margin: 20px 0 12px 0; }

.card{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow: var(--shadow); padding:24px; }
.search-grid { display: flex; gap: 16px; align-items: flex-end; margin-bottom: 20px; }
.input-group { flex-grow: 1; }
label{ display:block; font-size:.85rem; color:var(--muted); margin-bottom:6px; font-weight:600; }
.field{ width:100%; height:54px; padding:0 16px; border:2px solid var(--border); border-radius:12px; font-size:1.05rem; outline:none; }
.field:focus{ border-color: var(--blue); }
.btn{ height:54px; border:0; border-radius:12px; padding:0 24px; font-weight:700; background:var(--blue); color:#fff; cursor:pointer; min-width: 140px; transition: background 0.2s; }
.btn:hover{ background: var(--blue-dark); }
.btn:disabled{ opacity:0.5; cursor:not-allowed; }

.table-responsive { width: 100%; overflow-x: auto; margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; }
table{ width: 100%; border-collapse: collapse; min-width: 500px; }
thead th{ text-align:left; font-size:.85rem; background:#f9fafb; padding:14px; border-bottom:1px solid var(--border); }
tbody td{ padding:14px; border-bottom:1px solid var(--border); cursor:pointer; font-size: 0.95rem; }
tbody tr:hover { background: #fcfcfc; }
tbody tr.selected{ background: rgba(8, 175, 226, .08); outline: 2px solid var(--blue); outline-offset: -2px; }

.levelsCard{ margin-top: 24px; border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: #fafafa; }
.repeaterNameBox { background: #fff; border: 2px solid var(--blue); padding: 14px; border-radius: 8px; font-size: 1.3rem; color: var(--orange); font-weight: bold; margin: 10px 0 20px 0; display: flex; justify-content: space-between; align-items: center; }

/* Styling für die neue Regionen-Tabelle */
.levels-table th, .levels-table td { padding: 12px 14px; cursor: default; }
.levels-table tbody tr:hover { background: transparent; } /* Kein Hover-Effekt wie in Suchergebnissen */
.level-label { font-weight: bold; color: var(--blue); width: 60px; }
.level-value { font-family: var(--mono); color: var(--orange); font-size: 1.1rem; }
.text-right { text-align: right; }

.copy-btn { padding: 8px 14px; font-size: 0.85rem; cursor: pointer; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-weight: 600; transition: all 0.2s ease; }
.copy-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.copy-btn.success { background: var(--green); color: #000; border-color: var(--green); }

/* =========================================
   Footer & Impressum
   ========================================= */
.footer { 
  margin-top: auto; /* Drückt den Footer nach unten, wenn die Seite kurz ist */
  padding: 24px 0; 
  text-align: center; 
}
.footer a { 
  color: var(--muted); 
  text-decoration: none; 
  font-size: 0.9rem;
  font-weight: 600; 
  transition: color 0.2s ease; 
}
.footer a:hover, 
.footer a:focus { /* Focus für Barrierefreiheit (Tastatur-Navigation) */
  text-decoration: underline; 
  color: var(--blue); 
  outline: none;
}