.standort-wrap { padding:10px 0 0; }
.standort { background:#fff; margin-bottom:15px; box-shadow:0 2px 14px rgba(0,0,0,.12); border-bottom:3px solid #A94545; overflow:hidden; }
.standort-img { position:relative; overflow:hidden; aspect-ratio:3/2; }
.standort-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease; }
.standort:hover .standort-img img { transform:scale(1.05); }
.standort-label { position:absolute; left:0; bottom:0; background:#A94545; color:#fff; padding:6px 18px; font-size:14px; letter-spacing:1px; text-transform:uppercase; }
.standort-label i { margin-right:6px; }
.standort-text { padding:18px 22px 20px; margin:0; text-align:left; }
.team-card { background:#fff; margin-bottom:30px; box-shadow:0 2px 14px rgba(0,0,0,.12); border-bottom:3px solid #A94545; overflow:hidden; width:100%; }
.team-img { aspect-ratio:4/5; overflow:hidden; }
.team-img.wide { aspect-ratio:3/2; }
.team-img img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; transition:transform .5s ease; }
.team-card:hover .team-img img { transform:scale(1.05); }
.team-body { padding:16px 20px 18px; text-align:left; }
.team-body h5 { font-size:17px; margin:0 0 4px; }
.team-body small { display:block; color:#777; line-height:1.4; }
.team-body p { margin:6px 0 0; }
.team-body a { display:inline-block; margin-top:8px; color:#A94545; }
.coop-card { display:flex; align-items:flex-start; padding:18px 20px; }
.coop-card .team-body { padding:0; }
.coop-icon { flex:0 0 42px; width:42px; height:42px; line-height:42px; margin-right:15px; text-align:center; border-radius:50%; background:#A94545; color:#fff; font-size:18px; }
.team-col { display:flex; }
@media (min-width:768px) { .team-row { display:flex; flex-wrap:wrap; } .team-row:before, .team-row:after { display:none; } .team-col { float:none; } }
@media (max-width:767px) { .team-col { display:block; } }
@media (min-width:992px) { .standort-wrap .row { display:flex; } .standort-wrap .row:before, .standort-wrap .row:after { display:none; } .standort-col { display:flex; float:none; } .standort { width:100%; } }
@media (max-width:991px) { .standort-text { padding:15px; } }

/* Banner-Bilder (Seitenkopf) */
.banner-img { box-shadow:0 2px 14px rgba(0,0,0,.12); border-bottom:3px solid #A94545; overflow:hidden; margin-bottom:30px; }
.banner-img img { display:block; width:100%; height:auto; min-height:140px; object-fit:cover; transition:transform .6s ease; }
.banner-img:hover img { transform:scale(1.03); }

/* Partner-Karten (Logo + Text) */
.partner-card { display:flex; align-items:center; background:#fff; margin-bottom:25px; box-shadow:0 2px 14px rgba(0,0,0,.12); border-bottom:3px solid #A94545; }
.partner-logo { flex:0 0 220px; align-self:stretch; display:flex; align-items:center; justify-content:center; padding:20px; border-right:1px solid #eee; }
.partner-logo img { max-width:100%; max-height:90px; width:auto; height:auto; }
.partner-body { padding:20px 25px; }
.partner-body h3 { margin:0 0 8px; }
.partner-body .list-inline { margin-bottom:8px; }
.partner-body p { margin:0; }
@media (max-width:767px) { .partner-card { display:block; } .partner-logo { border-right:0; border-bottom:1px solid #eee; padding:15px; } .partner-body { padding:15px; } }

/* Info-Box (z.B. Vorteile) */
.info-card { background:#fff; padding:22px 22px 12px; box-shadow:0 2px 14px rgba(0,0,0,.12); border-top:3px solid #A94545; }

/* Karten-Einbettung (Google Maps) */
.map-card { box-shadow:0 2px 14px rgba(0,0,0,.12); border-bottom:3px solid #A94545; line-height:0; overflow:hidden; }
.map-card iframe { display:block; }

/* Einklappbare Anfahrt */
.anfahrt { margin:12px 0 0; }
.anfahrt summary { display:block; position:relative; cursor:pointer; padding:10px 40px 10px 14px; font-weight:600; color:#A94545; list-style:none; outline:none; border:1px solid #A94545; background:#fff; transition:background .2s ease, color .2s ease; user-select:none; }
.anfahrt summary::-webkit-details-marker { display:none; }
.anfahrt summary:after { content:"\f107"; font-family:FontAwesome; position:absolute; right:14px; top:50%; margin-top:-10px; line-height:20px; font-size:20px; transition:transform .2s ease; }
.anfahrt summary:hover, .anfahrt[open] summary { background:#A94545; color:#fff; }
.anfahrt[open] summary:after { transform:rotate(180deg); }
.anfahrt summary .txt-close, .anfahrt[open] summary .txt-open { display:none; }
.anfahrt[open] summary .txt-close { display:inline; }
.anfahrt p { margin:12px 0 4px; }

/* Mitarbeiter-Visitenkarten */
.vcard { display:flex; width:100%; background:#fff; margin-bottom:25px; padding:20px; box-shadow:0 2px 14px rgba(0,0,0,.12); border-left:4px solid #A94545; transition:box-shadow .2s ease, transform .2s ease; }
.vcard:hover { box-shadow:0 6px 20px rgba(0,0,0,.18); transform:translateY(-2px); }
.vcard-avatar { flex:0 0 54px; width:54px; height:54px; line-height:54px; margin-right:16px; border-radius:50%; background:#A94545; color:#fff; text-align:center; font-size:18px; font-weight:600; letter-spacing:1px; text-transform:uppercase; }
.vcard-body { min-width:0; }
.vcard-body h5 { font-size:16px; letter-spacing:.5px; text-transform:uppercase; margin:2px 0 2px; }
.vcard-body h5 span { font-size:12px; text-transform:none; color:#777; letter-spacing:0; }
.vcard-role { color:#A94545; font-size:13px; margin-bottom:10px; }
.vcard-body ul { list-style:none; margin:0; padding:10px 0 0; border-top:1px solid #eee; }
.vcard-body li { margin:0 0 3px; font-size:14px; word-wrap:break-word; }
.vcard-body li .fa { width:18px; color:#999; }
.vcard { position:relative; }
.vcard-body h5 { padding-right:38px; }
.vcard-save { position:absolute; top:12px; right:12px; width:34px; height:34px; line-height:32px; text-align:center; border-radius:50%; border:1px solid #A94545; color:#A94545; background:#fff; font-size:14px; transition:background .2s ease, color .2s ease; }
.vcard-save:hover { background:#A94545; color:#fff; text-decoration:none; }

/* Mobil: seitlicher Abstand, damit Inhalte nicht am Rand kleben */
@media (max-width:767px) {
  .container { padding-left:20px; padding-right:20px; }
  .map-card iframe { width:100%; }
  .team-card, .vcard, .standort, .partner-card { margin-bottom:20px; }
}

/* Navigation bleibt oben stehen, nur der Inhalt scrollt */
/* overflow-x:hidden auf html (layout.css) verhindert position:sticky -> durch clip ersetzen */
html { overflow-x:visible; overflow-x:clip; overflow-y:visible; }
#header, #header.sticky { position:-webkit-sticky; position:sticky; top:0; z-index:1000; }
@media (max-width:990px) {
  /* geöffnetes Handy-Menü darf nicht über den Bildschirm hinausragen */
  #topNav div.nav-main-collapse.in { max-height:calc(100vh - 62px); max-height:calc(100dvh - 62px); overflow-y:auto; -webkit-overflow-scrolling:touch; }
}

/* Login */
.login-card { background:#fff; padding:35px 35px 30px; box-shadow:0 2px 14px rgba(0,0,0,.12); border-top:3px solid #A94545; margin:45px 0 30px; text-align:center; }
.login-icon { width:64px; height:64px; line-height:64px; margin:-67px auto 15px; border-radius:50%; background:#A94545; color:#fff; font-size:26px; box-shadow:0 4px 12px rgba(169,69,69,.4); }
.login-card h2 { margin:0 0 8px; }
.login-sub { color:#777; margin-bottom:22px; }
.login-card form { text-align:left; }
.login-card label { display:block; margin:0 0 5px; font-weight:600; color:#444; }
.login-field { position:relative; margin-bottom:18px; }
.login-field > .fa { position:absolute; left:14px; top:0; line-height:46px; color:#A94545; width:16px; text-align:center; pointer-events:none; }
.login-field input { display:block; width:100%; height:46px; padding:0 46px 0 42px; border:1px solid #ddd; background:#f8f8f8; font-size:16px; border-radius:0; box-shadow:none; transition:border-color .2s ease, background .2s ease, box-shadow .2s ease; -webkit-appearance:none; }
.login-field input:focus { outline:none; border-color:#A94545; background:#fff; box-shadow:0 0 0 3px rgba(169,69,69,.15); }
.login-eye { position:absolute; right:0; top:0; width:46px; height:46px; border:0; background:transparent; color:#999; cursor:pointer; }
.login-eye:hover { color:#A94545; }
.login-submit { display:block; width:100%; margin-top:6px; }
.login-alert { text-align:left; margin-bottom:20px; border-radius:0; }
.login-row { display:block; }
@media (min-width:992px) { .login-row { display:flex; align-items:stretch; } .login-row:before, .login-row:after { display:none; } .login-col { float:none; } .login-img { height:calc(100% - 75px); margin-top:45px; } .login-img img { height:100%; object-fit:cover; } }
@media (max-width:767px) { .login-card { padding:30px 20px 25px; } }

/* Downloads / Kundenbereich */
.dl-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:25px 0 30px; padding-bottom:18px; border-bottom:1px solid #eee; }
.dl-welcome { margin:0; font-size:18px; color:#444; }
.dl-welcome .fa { color:#A94545; margin-right:6px; }
.dl-actions { display:flex; gap:10px; flex-wrap:wrap; }
.dl-actions .btn .fa { margin-right:6px; }
.dl-grid { display:flex; flex-wrap:wrap; }
.dl-grid:before, .dl-grid:after { display:none; }
.dl-grid > [class*="col-"] { float:none; display:flex; }
.dl-card { width:100%; background:#fff; margin-bottom:30px; box-shadow:0 2px 14px rgba(0,0,0,.12); border-bottom:3px solid #A94545; }
.dl-head { display:flex; align-items:center; padding:16px 20px; border-bottom:1px solid #eee; }
.dl-head > .fa { width:38px; height:38px; line-height:38px; margin-right:14px; text-align:center; border-radius:50%; background:#A94545; color:#fff; font-size:17px; flex:0 0 38px; }
.dl-head h3 { margin:0; flex:1; font-size:20px; line-height:1.2; }
.dl-count { min-width:26px; padding:2px 8px; text-align:center; border-radius:13px; background:#f1f1f1; color:#777; font-size:13px; }
.dl-list { list-style:none; margin:0; padding:0; }
.dl-list li { display:flex; align-items:center; border-bottom:1px solid #f1f1f1; transition:background .15s ease; }
.dl-list li:last-child { border-bottom:0; }
.dl-list li:hover { background:#faf5f5; }
.dl-file { flex:1; display:flex; align-items:center; min-width:0; padding:13px 20px; color:#444; }
.dl-file .fa { flex:0 0 26px; font-size:20px; color:#A94545; }
.dl-file span { word-wrap:break-word; min-width:0; }
.dl-file:hover { color:#A94545; text-decoration:none; }
.dl-list form { margin:0 12px 0 0; }
.dl-delete { width:34px; height:34px; border:1px solid #ddd; border-radius:50%; background:#fff; color:#999; cursor:pointer; transition:all .2s ease; }
.dl-delete:hover { background:#A94545; border-color:#A94545; color:#fff; }
.dl-empty { margin:0; padding:20px; color:#999; }
@media (max-width:767px) { .dl-toolbar { display:block; } .dl-actions { margin-top:12px; } .dl-actions .btn { flex:1; } }

/* Modal (Datei hochladen) */
.dl-modal .modal-content { border:0; border-radius:0; border-bottom:3px solid #A94545; box-shadow:0 10px 40px rgba(0,0,0,.3); }
.dl-modal .modal-header { background:#A94545; color:#fff; border-bottom:0; padding:18px 22px; }
.dl-modal .modal-title { color:#fff; font-size:20px; margin:0; letter-spacing:0; }
.dl-modal .modal-title .fa { margin-right:8px; }
.dl-modal .close { color:#fff; opacity:.8; text-shadow:none; font-size:28px; line-height:1; }
.dl-modal .close:hover { opacity:1; }
.dl-modal .modal-body { padding:24px 22px 8px; }
.dl-modal label { font-weight:600; color:#444; }
.dl-req { color:#A94545; }
.dl-modal .form-control { height:46px; border:1px solid #ddd; border-radius:0; background:#f8f8f8; box-shadow:none; transition:border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.dl-modal .form-control:focus { border-color:#A94545; background:#fff; box-shadow:0 0 0 3px rgba(169,69,69,.15); }
.dl-modal input[type=file].form-control { height:auto; padding:10px 12px; border-style:dashed; }
.dl-modal .modal-footer { border-top:1px solid #eee; padding:16px 22px 20px; }
.dl-modal .modal-footer .fa { margin-right:6px; }
@media (max-width:767px) { .dl-modal .modal-dialog { margin:15px; } }

/* Logo (reines CSS): auf dem Handy läuft der rote Strich bis kurz vor das Menü */
.logo-mark { position:relative; display:block; width:150px; height:50px; }
.logo-mark i { position:absolute; display:block; }
.logo-mark .lm-bar { top:2.25px; width:12.2px; height:45px; background:#1a1718; z-index:1; }
.logo-mark .lm-b1 { left:4.4px; z-index:3; }
.logo-mark .lm-b2 { left:26.9px; z-index:3; }
.logo-mark .lm-b3 { left:49.4px; z-index:1; }
.logo-mark .lm-line { left:16.6px; right:4.1px; top:19.75px; height:9.25px; background:#c7161f; z-index:2; }
@media (max-width:990px) {
  #topNav a.logo { width:calc(100% - 66px); margin-right:0; }
  #topNav a.logo .logo-mark { width:100%; }
}
@media (max-width:479px) {
  #topNav a.logo { width:calc(100% - 50px); }
}

/* Leistungen: Raster ohne Lücken bei unterschiedlich hohen Boxen */
.leist-h { line-height:1.3; margin-bottom:28px; }
@media (max-width:767px) { .leist-h { font-size:1.4em; } }
.leist-row > [class*="col-"] { margin-bottom:30px; }
@media (min-width:768px) {
  .leist-row { display:flex; flex-wrap:wrap; }
  .leist-row:before, .leist-row:after { display:none; }
  .leist-row > [class*="col-"] { float:none; }
  .leist-row > .clearfix { flex:0 0 100%; height:0; margin:0; }
}
