/* =========================================================
   BASIS
========================================================= */
:root{
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --text: #111111;
  --text-soft: #666666;
  --border: #dddddd;
  --border-soft: rgba(0,0,0,.08);

  --blue: #0b3aa6;
  --blue-dark: #1f3f73;
  --blue-dark-border: #17335f;

  --success: #2e7d32;
  --warning: #9b6b1d;
  --danger: #a72e2e;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
}

body{
  font-family: system-ui, Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.container{
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.container-wide{
  max-width: 1600px;
  margin: auto;
  padding: 0 16px;
}

.row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.muted,
.text-muted{
  color: var(--text-soft);
}

.text-muted{
  font-size: 12px;
}

.text-right{
  text-align: right;
}

.money{
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty{
  padding: 18px;
  color: rgba(0,0,0,.6);
}

/* =========================================================
   LINKS
========================================================= */
a{
  color: var(--blue);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  padding: 7px 12px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-sizing: border-box;
}

.btn:hover{
  background: #f4f7fb;
}

.btn.primary{
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn.success{
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.btn.warning{
  background: var(--warning);
  border-color: var(--warning);
  color: #fff;
}

.btn.danger{
  background: var(--danger);
  border-color: #8f2323;
  color: #fff;
}

.btn-ghost,
.btn.ghost{
  background: transparent;
  color: var(--blue);
  border: 1px solid #cdd7ff;
}

.btn-danger{
  background: #b00020;
  color: #fff;
  border: none;
}

/* =========================================================
   FORMULARE
========================================================= */
label{
  display: block;
  margin-top: 12px;
  font-weight: 600;
}

input,
textarea,
select{
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-sizing: border-box;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
}

input:focus,
textarea:focus,
select:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(11,58,166,.12);
}

textarea{
  resize: vertical;
}

input[readonly],
textarea[readonly],
select[readonly],
input:disabled,
textarea:disabled,
select:disabled{
  background: #f1f3f7;
}

input[type="checkbox"]{
  width: auto;
}

.search,
.searchbar{
  display: flex;
  gap: 10px;
  margin: 14px 0;
  align-items: center;
}

.search input,
.searchbar input{
  flex: 1;
}

.form-sep{
  height: 18px;
}

/* =========================================================
   ALERTS / MELDUNGEN
========================================================= */
.alert{
  background: #fff4f4;
  border: 1px solid #ffd2d2;
  padding: 12px;
  border-radius: 12px;
  margin: 12px 0;
}

.alert-ok{
  background: #e4f5df;
  border: 1px solid #8fb384;
  color: #24481d;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.adr-errors{
  background: #fff1f1;
  border: 1px solid #d99;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* =========================================================
   BADGES
========================================================= */
.badge{
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.badge.success{
  background: var(--success);
  color: #fff;
}

.badge.warning{
  background: var(--warning);
  color: #fff;
}

.badge-ok{
  display:inline-block;
  padding:3px 8px;
  border-radius:6px;
  font-size:12px;
  font-weight:600;
  background:#2ecc71;
  color:#fff;
}

.badge-warn{
  display:inline-block;
  padding:3px 8px;
  border-radius:6px;
  font-size:12px;
  font-weight:600;
  background:#f1c40f;
  color:#000;
}

.badge-error{
  display:inline-block;
  padding:3px 8px;
  border-radius:6px;
  font-size:12px;
  font-weight:600;
  background:#e74c3c;
  color:#fff;
}

/* =========================================================
   NAVIGATION
========================================================= */
.main-nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--blue-dark);
  border-bottom: 1px solid var(--blue-dark-border);
  flex-wrap: wrap;
}

.main-nav-left,
.main-nav-right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a{
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  box-sizing: border-box;
}

.main-nav a:hover{
  background: rgba(255,255,255,.16);
}

.nav-inline-form{
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.nav-toggle-btn{
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.nav-toggle-btn:hover{
  background: rgba(255,255,255,.16);
}

.nav-user{
  color: #fff;
  font-size: 13px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-role{
  opacity: .85;
}

/* =========================================================
   DASHBOARD / TILES
========================================================= */
.tiles{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tile{
  background: var(--blue);
  color: #fff;
  padding: 26px;
  border-radius: 18px;
  text-decoration: none;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tile-title{
  font-size: 28px;
  font-weight: 800;
}

.tile-sub{
  opacity: .85;
  margin-top: 8px;
}

.tile-disabled{
  opacity: .55;
  cursor: not-allowed;
}

/* =========================================================
   TABS
========================================================= */
.tabs{
  display: flex;
  gap: 10px;
  margin: 10px 0 16px;
  flex-wrap: wrap;
}

.tab{
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
}

.tab.active{
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* =========================================================
   LEGACY TABELLE
========================================================= */
.table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.table th,
.table td{
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.table tr.dblclick:hover,
.table tr.dbl:hover{
  background: #f0f5ff;
  cursor: pointer;
}

/* =========================================================
   GEMEINSAMES SEITENLAYOUT
========================================================= */
.page-wrap{
  max-width: 1750px;
  margin: 0 auto;
  padding: 16px;
}

.page-card{
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* =========================================================
   MENÜS / TOOLBARS
========================================================= */
.toolbar-menu{
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 4px;
}

.toolbar-sep,
.menu-sep{
  width: 8px;
  flex: 0 0 auto;
}

.page-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.page-search{
  min-width: 280px;
  max-width: 460px;
  width: 100%;
}

.page-search input{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: var(--radius);
  box-sizing: border-box;
  background:#ffffff;
  color:#111111;
}

.page-info{
  color: rgba(0,0,0,.6);
  font-size: 13px;
}

/* alte GA-Menüklasse */
.ga-menu{
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 16px;
}

.ga-menu .btn{
  padding: 8px 12px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}

.ga-menu .btn:hover{
  background: #f3f6fb;
}

.ga-menu .primary{
  background: #2f6fed;
  color: #fff;
  border-color: #2f6fed;
}

/* =========================================================
   GEMEINSAME TABELLEN
========================================================= */
/* =========================================================
   GEMEINSAME TABELLEN (NEU GRAU)
========================================================= */
.table-wrap{
  overflow:auto;
  border-radius:10px;
  border:1px solid #dcdfe4;
  background:#ffffff;
}

.data-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  background:#ffffff;
}

/* HEADER */
.data-table thead th{
  position:sticky;
  top:0;
  background:#eef1f5;   /* grau statt gelb */
  color:#1a1a1a;
  text-align:left;
  padding:10px 12px;
  border-bottom:2px solid #d6dbe2;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
  user-select:none;
  z-index:1;
}

/* BODY */
.data-table td{
  padding:9px 12px;
  border-bottom:1px solid #e6e9ee;
  vertical-align:middle;
  white-space:nowrap;
}

/* ZEBRA */
.data-table tbody tr:nth-child(even){
  background:#f7f8fa;   /* leichtgrau */
}

/* HOVER */
.data-table tbody tr.data-row:hover{
  background:#e2e6ec;   /* dunkleres grau */
  cursor:pointer;
}

.data-table tr:last-child td{
  border-bottom:none;
}

/* EMPTY */
.empty{
  padding:20px;
  text-align:center;
  opacity:.7;
}

/* SORT ICON */
.sort-ind{
  margin-left:6px;
  font-size:11px;
  opacity:.6;
  color:#6b7280;
}

/* =========================================================
   PAGER
========================================================= */
.pager{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
}

.pager-info{
  color: #666;
}

/* =========================================================
   DETAILSEITEN
========================================================= */
.detail-topbar,
.page-topbar{
  background: var(--blue-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 18px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0,0,0,.2);
}

.detail-topbar-left,
.detail-topbar-right,
.topbar-left,
.topbar-right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-title,
.topbar-title{
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .2px;
}

.detail-topbar .btn,
.page-topbar .btn{
  min-height: 38px;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.detail-topbar .btn:hover,
.page-topbar .btn:hover{
  background: rgba(255,255,255,.16);
}

.detail-topbar .btn.primary,
.page-topbar .btn.primary{
  background: var(--blue);
  border-color: var(--blue);
}

.detail-topbar .btn.ghost,
.page-topbar .btn.ghost{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}

.detail-page{
  max-width: 1560px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

.detail-panel{
  border: 1px solid #d6dbe2;
  background: #eef1f5;
  border-radius: var(--radius-sm);
  padding: 18px 16px 22px;
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
}

/* Untere Tab-/Infoleiste */
.detail-subbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.30);
}

.detail-subbar-left,
.detail-subbar-right{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-subinfo{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  min-height: 36px;
  box-sizing: border-box;
}

.detail-subinfo-label{
  font-size: 13px;
  color: #555;
}

.detail-subinfo-value{
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

/* =========================================================
   FOTOS
========================================================= */
.foto-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.foto-card{
  border: 1px solid #ddd;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.foto-preview{
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
}

.foto-preview img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-meta{
  padding: 10px 12px;
}

.foto-draggable{
  user-select: none;
}

.foto-draggable.dragging{
  opacity: .6;
  outline: 2px dashed var(--blue);
}

/* =========================================================
   LOGIN
========================================================= */
.login-wrapper{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2fb, #f7f9ff);
}

.login-card{
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 34px 36px 38px;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
}

.login-header{
  text-align: center;
  margin-bottom: 26px;
}

.login-brand{
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .4px;
}

.login-sub{
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  letter-spacing: .3px;
}

.login-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form label{
  font-weight: 600;
  margin-bottom: 2px;
}

.login-form input{
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #d6d9e0;
  font-size: 14px;
}

.login-form input:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(11,58,166,.15);
}

.login-btn{
  margin-top: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
}

/* =========================================================
   SPEZIALBLÖCKE
========================================================= */
.anschluesse-box{
  background: #ffffff;
  border: 1px solid #d6dbe2;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}


.anschluesse-title{
  font-weight: 800;
  margin-bottom: 8px;
  color: #2c2c2c;
}

.anschluesse-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.anschluss-item{
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-green{
  background: #ffffff;
  border: 1px solid #d6dbe2;
  border-radius: 12px;
  padding: 12px;
}


.panel-green .block-title{
  color: #2c2c2c;
}

.panel-subtitle{
  font-style: italic;
  color: rgba(0,0,0,.65);
  font-weight: 700;
  margin: 10px 0 6px;
}

.right-stack{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================================================
   UTILITY GRIDS
========================================================= */
.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* =========================================================
   DARKMODE
========================================================= */
body.darkmode{
  background: #2a3463 !important;
  color: #eef2ff !important;
}

/* Grundflächen */
body.darkmode .container,
body.darkmode .container-wide,
body.darkmode .detail-page,
body.darkmode .page-wrap,
body.darkmode .adr-wrap,
body.darkmode .card,
body.darkmode .gform,
body.darkmode .table-wrap,
body.darkmode .empty,
body.darkmode .block,
body.darkmode .adr-section,
body.darkmode .detail-panel,
body.darkmode .bt-master-list,
body.darkmode .bt-detail-panel,
body.darkmode .bt-preview-panel,
body.darkmode .btp-table-wrap,
body.darkmode .anschluesse-box,
body.darkmode .page-card,
body.darkmode .panel-green{
  background: #344074 !important;
  color: #eef2ff !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* Login */
body.darkmode .login-wrapper{
  background: linear-gradient(135deg, #20284d, #2a3463) !important;
}

body.darkmode .login-card{
  background: #344074 !important;
  color: #eef2ff !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

body.darkmode .login-brand{
  color: #c9d6ff !important;
}

body.darkmode .login-sub{
  color: #d3dbff !important;
}

/* Titel / Labels */
body.darkmode .block-title,
body.darkmode .detail-title,
body.darkmode .topbar-title,
body.darkmode .detail-subinfo-value,
body.darkmode label,
body.darkmode th,
body.darkmode .panel-subtitle,
body.darkmode .anschluesse-title{
  color: #f4f6ff !important;
}

body.darkmode .muted,
body.darkmode .text-muted,
body.darkmode .tiny,
body.darkmode .hint,
body.darkmode .info,
body.darkmode .detail-subinfo-label,
body.darkmode .page-info{
  color: #c8d0f5 !important;
}

/* Inputs */
body.darkmode input,
body.darkmode textarea,
body.darkmode select{
  background: #25305d !important;
  color: #ffffff !important;
  border: 1px solid #56649e !important;
}

body.darkmode input::placeholder,
body.darkmode textarea::placeholder{
  color: #b9c3ef !important;
  opacity: 1 !important;
}

body.darkmode input:focus,
body.darkmode textarea:focus,
body.darkmode select:focus{
  background: #1f2852 !important;
  border-color: #8aa0ff !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(138,160,255,.15) !important;
}

body.darkmode input[readonly],
body.darkmode textarea[readonly],
body.darkmode select[readonly],
body.darkmode input:disabled,
body.darkmode textarea:disabled,
body.darkmode select:disabled{
  background: #212a50 !important;
  color: #dbe2ff !important;
  border-color: #4e5a8f !important;
}

/* Select / Combobox */
body.darkmode select{
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  background-color: #25305d !important;
  color: #ffffff !important;
}

body.darkmode select option{
  background: #25305d !important;
  color: #ffffff !important;
}

/* Checkboxen */
body.darkmode input[type="checkbox"]{
  accent-color: #8aa0ff;
  background: #25305d !important;
  border: 1px solid #7b89c5 !important;
  box-shadow: none !important;
  transform: scale(1.1);
  cursor: pointer;
}

/* Buttons */
body.darkmode .btn{
  background: #3b487f !important;
  color: #ffffff !important;
  border-color: #6675b6 !important;
}

body.darkmode .btn:hover{
  background: #46558f !important;
}

body.darkmode .btn.primary{
  background: #5a78ea !important;
  border-color: #5a78ea !important;
  color: #ffffff !important;
}

body.darkmode .btn.primary:hover{
  background: #6a86f0 !important;
}

body.darkmode .btn.ghost,
body.darkmode .btn-ghost{
  background: #2a3463 !important;
  color: #ffffff !important;
  border-color: #6675b6 !important;
}

body.darkmode .btn.danger,
body.darkmode .btn-danger{
  background: #b84b4b !important;
  border-color: #b84b4b !important;
  color: #ffffff !important;
}

/* Topbars */
body.darkmode .detail-topbar,
body.darkmode .page-topbar{
  background: #20284d !important;
  border-bottom-color: rgba(255,255,255,.12) !important;
}

/* Tabellen – verbesserte Darkmode-Version */
body.darkmode .table-wrap{
  background:#1f274d !important;
  border:1px solid #3a4475 !important;
}

body.darkmode .data-table,
body.darkmode .table,
body.darkmode table{
  background:#1f274d !important;
  color:#eef2ff !important;
}

body.darkmode .data-table thead th,
body.darkmode .table th,
body.darkmode th{
  background:#2a3463 !important;
  color:#ffffff !important;
  border-bottom:2px solid #3f4a80 !important;
  border-color:#4e5a8f !important;
}

body.darkmode .data-table td,
body.darkmode .table td,
body.darkmode td{
  border-color:#2f396c !important;
  color:#e6e9ff !important;
}

body.darkmode .data-table tbody tr:nth-child(odd) td,
body.darkmode table tbody tr:nth-child(odd) td{
  background:#1f274d !important;
}

body.darkmode .data-table tbody tr:nth-child(even) td,
body.darkmode table tbody tr:nth-child(even) td{
  background:#242e5a !important;
}

body.darkmode .data-table tbody tr.data-row:hover td,
body.darkmode table tbody tr:hover td{
  background:#364184 !important;
}

body.darkmode th:hover{
  background:#334076 !important;
}

body.darkmode .sort-ind{
  color:#d4dcff !important;
}

/* Suche / Tabellenfilter */
body.darkmode .page-search input{
  background:#2a3463 !important;
  border:1px solid #4a5590 !important;
  color:#ffffff !important;
}

/* Alerts */
body.darkmode .alert,
body.darkmode .adr-errors{
  background: #5b2b2b !important;
  color: #fff !important;
  border-color: #b45454 !important;
}

body.darkmode .alert-ok{
  background: #264a35 !important;
  color: #fff !important;
  border-color: #3e8d60 !important;
}

/* Fotos */
body.darkmode .foto-card{
  background: #344074 !important;
  border-color: #56649e !important;
  color: #eef2ff !important;
}

body.darkmode .foto-preview{
  background: #25305d !important;
}

/* Badges im Darkmode */
body.darkmode .badge-ok{
  background:#27ae60 !important;
}

body.darkmode .badge-warn{
  background:#d4ac0d !important;
  color:#111 !important;
}

body.darkmode .badge-error{
  background:#c0392b !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .detail-topbar,
  .page-topbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .detail-subbar{
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-subbar-right{
    width: 100%;
  }
}

.form-block,
.rv-form,
.rv-form * {
  position: relative;
  z-index: 2;
}

.rv-form input,
.rv-form select,
.rv-form textarea {
  pointer-events: auto;
  user-select: auto;
  -webkit-user-select: auto;
}

.rv-form input[readonly] {
  background: #f3f3f3;
}

.rv-form input:not([readonly]),
.rv-form select,
.rv-form textarea {
  background: #fff;
  cursor: text;
}

.rv-card {
  background: #eef1f5;
}

.rv-block {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

@media (max-width: 900px){
  .grid2{
    grid-template-columns: 1fr;
  }

  .search,
  .searchbar{
    flex-direction: column;
    align-items: stretch;
  }

  .anschluesse-grid{
    grid-template-columns: 1fr;
  }

  .main-nav{
    align-items: flex-start;
  }

  .main-nav-left,
  .main-nav-right{
    width: 100%;
  }
}