/* ===============================
   SCHADEN-TABELLE & SCROLLBEREICH
   =============================== */

/* SCHADEN-TABELLE NUR EINE ZELLE MARKIEREN   */
/*
.schaden-table tr.behoben td:nth-child(2) {
  background-color: #e6ffe6;    
  color: #888 !important;       
  font-style: italic;          
  text-decoration: underline;   
} */

/* SCHADEN-TABELLE GESAMTE ZEILE MARKIEREN */

.schaden-table tr.behoben td:nth-child(-n+5) {
  background-color: #e6ffe6;    /* heller Hintergrund Hint of Green #e6ffe6 */
  color: #888 !important;       /* graue Schrift */
  font-style: italic;           /* kursiv */
  text-decoration: underline;   /* unterstrichen */
}

/* SCHADEN-TABELLE ZEILE MARKIEREN BEI HOOVER */

.schaden-table tbody tr:hover {
  background-color: #d8f3dc; /* leicht grünlicher Hintergrund bei Hover */
  cursor: pointer;
  transition: background-color 0.2s ease;
}


table.schaden-table {
  border: 1px solid #91BBC5;
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  min-width: 800px;
}

table.schaden-table td,
table.schaden-table th {
  border: 1px solid #91BBC5;
  padding: 3px 2px;
}

table.schaden-table td:not(.datum),
table.schaden-table th:not(:first-child) {
  padding-left: 0.5rem; /* Linker Abstand */
}

table.schaden-table tbody td {
  font-size: 14px;
  font-weight: bold;
  color: #A8B99D;
}

table.schaden-table thead {
  border-bottom: 1px solid #A8B99D;
}

table.schaden-table thead th {
  font-size: 15px;
  font-weight: normal;
  color: #FFFFFF;
  border-left: 1px solid #A8B99D;
}

table.schaden-table thead th:first-child {
  border-left: none;
}

table.schaden-table tfoot td {
  font-size: 14px;
}

table.schaden-table tfoot .links {
  text-align: right;
}
table.schaden-table tfoot .links a {
  display: inline-block;
  background: #1C6EA4;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 5px;
}

/* Scroll-Wrapper */
.schaden-wrapper-scroll {
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 1em;
}

* ===== Scrollbar HORIZONTAL CSS ===== */

/* Firefox */
.schaden-wrapper-scroll {
  scrollbar-width: thin;
  scrollbar-color: #08631f #000000; /*Farbe der Scollbar und Hintergrung*/
}

/* Chrome, Edge, and Safari */
  .schaden-wrapper-scroll::-webkit-scrollbar {
    width: 5px;
  }

/* Chrome, Edge, Safari */
.schaden-wrapper-scroll::-webkit-scrollbar {
  height: 6px; /* horizontale Scrollbar → height statt width */
}

.schaden-wrapper-scroll::-webkit-scrollbar-track {
  background: #000000; /*Farbe der Scollbar Hintergrund SCHWARZ*/
}

.schaden-wrapper-scroll::-webkit-scrollbar-thumb {
  background-color: #08631f; /*Farbe der Scollbar BALKEN GRÜN */
  border-radius: 10px;
  border: 1px none #ffffff;
}

* ===== Scrollbar VERTIKAL CSS ===== */

/* Firefox */
.detailsWrapper.show {
  scrollbar-width: thin;
  scrollbar-color: #071773 #000000;
}

.detailsWrapper.show::-webkit-scrollbar {
  width: 5px;     /* vertikal */
  height: 5px;    /* horizontal */
}

.detailsWrapper.show::-webkit-scrollbar-track {
  background: #000000;
}

.detailsWrapper.show::-webkit-scrollbar-thumb {
  background-color: #071773;
  border-radius: 10px;
  border: 1px none #ffffff;
}






/* Gekürzte Beschreibung */
.schaden-table .truncate {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

/* Feste Breite & Stil für Datum */
.schaden-table td.datum,
.schaden-table th:first-child {
  width: 100px;
  white-space: nowrap;
  font-weight: bold;
  padding-left: 0.2rem;
}







/* ===============================
   MODAL-FENSTER FÜR DETAILS
   =============================== */
.modal-overlay {
  display: none; /* Standardmäßig ausgeblendet */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex; /* Nur wenn aktiv, wird es angezeigt */
}

.modal-content {
  background: #e6e6e6;
	color: #0c2144;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* Links in Modal */
.modal-links a {
  display: block;
  margin-top: 0.5rem;
  color: #0c2144;
  text-decoration: underline;
}
/* =====================================
   objekt.css – bereinigte Version
   ===================================== */

:root {
  --primary: #3f7ecb;
  --accent: #ffcc80;
  --link: #aaa;
  --link-hover: #ffcc80;
  --bg: #0f0f0f;
  --soft-bg: #181818;
  --text: #f5f5f5;
  --button-bg: #ff6600;
  --button-hover: #cc5200;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ================================
   Zentrierung für alle Blöcke
================================= */
.centered-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}


	table td.paid {
    color: #006b3d !important;  /* Fun Green */
    font-weight: 600;
	}
	

.sql-table td:nth-child(2),
.sql-table td:nth-child(3),
.sql-table td:nth-child(4),
.sql-table td:nth-child(5) {
    text-align: center;
    padding-left: 0;       /* Kein Padding links */
    padding-right: 2.5rem; /* Etwas Abstand rechts */
    white-space: nowrap;
}

.sql-table {
  margin-bottom: 3rem !Important; /* Abstand nach jedem kompletten Datensatz */
}


.detailsWrapper {
  max-height: auto;
  overflow-y: auto;
  padding-right: 1.5rem; /* verschiebt die Scrollbar optisch nach außen */
}



/* Stil für bereits bezahlte Vorschreibungen */
th.paid {
  color: #006b3d; /* Fun Green #006b3d; Salem #0a792d */
  font-weight: bold;
}
	
/* Stil für unbezahlte Vorschreibungen */
th.unpaid {
  color: #b64949; /* dunkles Rot */
  font-weight: bold;
}



/* =======================
   Header & Navigation
========================== */

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 40px;
  background: #ddd !important;
  border-bottom: 1px solid #333;
  color: #fff;
}

.site-header h1,
.page-title {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 600;
	text-align: center;
}

/* =======================
   Login Bereich
========================== */

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.login-box {
  background: var(--soft-bg);
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.login-box .logo {
  width: 90px;
  margin: 0 auto 1.2rem;
  opacity: 0.85;
}

.login-box h2 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.login-box input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #444;
  background: var(--bg);
  color: var(--text);
}

.login-box button {
  width: 100%;
  padding: 12px 20px;
  background: var(--button-bg);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.login-box button:hover {
  background: var(--button-hover);
}

.back-link {
  display: block;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--link);
  text-decoration: none;
}

.back-link:hover {
  color: var(--link-hover);
}

/* =======================
   Image-Text Block
========================== */

.image-text-block {
  display: flex;
  flex-wrap: nowrap;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.image-text-block .image,
.image-text-block .text {
  flex: 1 1 50%;
  max-width: 50%;
}

.image-text-block .image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* Text-Bereich */
.image-text-block .text {
  background: #0f0f0f;
  color: #f5f5f5;
  text-align: justify;
  padding: 0;
}

.image-text-block .text h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #dce4e8;
}

.image-text-block .text p {
  font-size: 1.05rem;
  color: #5f7a67;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}


/* =======================
   Responsive Image-Text
========================== */

@media (max-width: 1024px) {
  .image-text-block {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
  .image-text-block .image,
  .image-text-block .text {
    max-width: 100%;
  }
  .image-text-block .text {
    text-align: center;
  }
}

/* =======================
   Dokumentenbereich
========================== */

main.docs-container {
  max-width: 1280px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--soft-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);  
}

.doc-list h2 {
  font-size: 1.6rem;
  color: var(--primary);
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.doc-list ul,
.mietmodul ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.doc-list li,
.mietmodul li {
  margin-bottom: 1rem;
}

.doc-list a,
.mietmodul a {
  display: block;
  padding: 0.9rem 1.2rem;
  background: #fff;
  color: var(--primary);
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.doc-list a:hover,
.mietmodul a:hover {
  background: #eaf1f9;
  color: #1c4c82;
}

/* ===========================
   Preisbox und Buttons
   =========================== */

/* Container für die Preisbox - Vollbildbreite, linksbündig */
.preisbox-container {
  width: 100vw;           /* volle Breite des Viewports */
  padding-left: 20px;     /* etwas Innenabstand links */
  box-sizing: border-box; /* Padding zählt zur Breite */
  margin: 3rem 0;         /* oben und unten Abstand */
  background: none;       /* kein Hintergrund, da .preisbox den hat */
}

/* Preisbox links ausgerichtet mit max-Breite */
.preisbox {
  background-color: var(--soft-bg);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 2rem;
  max-width: 700px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  text-align: left;      /* Linksbündiger Text */
  margin-left: 0;        /* linksbündig innerhalb Container */
  width: 100%;           /* volle Breite innerhalb Container */
  box-sizing: border-box;
}

/* Überschrift */
.preisbox h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 1.5rem;
}

/* Fließtext */
.preisbox p {
  font-size: 0.95rem;
  color: #c3c3c3;
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

/* Hervorhebungen */
.preisbox strong {
  color: var(--accent);
  font-weight: 500;
}

/* Button Styling */
.preisbox-button,
#toggleDetails {
  padding: 10px 20px;
  border: 1px solid #555;
  background-color: transparent;
  color: #ddd;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.preisbox-button:hover,
#toggleDetails:hover {
  background-color: #333;
  color: #fff;
  border-color: #777;
}

/* Grundlegende Margin/Padding für body und main */
body, main {
  margin-left: 0;
  padding-left: 0;
}

/* =======================
   Mietmodul Tabelle
========================== */

.mietmodul {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.mietmodul table {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.95rem;
	padding: 0.5rem;
  color: #555;
}

.mietmodul td {
  padding: 0.6rem 0rem; /* Zeilenabstand und Abstand zum Rand */
  border-bottom: 1px solid #ddd;
}

.mietmodul tr:last-child td {
  border-bottom: none;
}

.mietmodul td:first-child {
  font-weight: 600;
  white-space: nowrap;
  color: #4c7ab6;
  text-align: left;
	            padding: 0.3rem;
  width: auto;
}

.mietmodul td:last-child {
  text-align: right;
  color: #b64949;
}

.mietmodul .subtle-text {   /*TEST */
  font-size: 0.85rem;
  color: #999;
  font-weight: 400;
  white-space: normal;
}
/* =======================
   Gallery & Footer
========================== */

.damage-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 2rem 0;
}

.damage-gallery a {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.damage-gallery a:hover {
  transform: scale(1.05);
}

.damage-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.damage-gallery .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.5rem 0;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.damage-gallery a:hover .caption {
  opacity: 1;
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  color: #777;
  margin-top: 3rem;
}

.footer-contact a {
  color: var(--primary);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}


/* SLIDER*/

.gallery-top {
  width: 100%;
  height: 400px;
  box-sizing: border-box;
}

.gallery-top .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-top .swiper-slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  height: 100px;
}

.gallery-thumbs .swiper-slide {
  height: 100%;
  opacity: 0.4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

/*
.gallery-thumbs .swiper-slide img {
  height: 100%;
  width: auto;
  object-fit: cover;
}
*/
.gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
}


.gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.gallery-thumbs .swiper-slide {
  width: 60px !important;  /* feste Breite */
  height: 60px;
}

.gallery-thumbs .swiper-slide img {
  border-radius: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =======================
   LINK & ICHA / derzeit per <style> inline definiert
========================== */

/*
.text a.link-icha {
  color: #D8C7A3;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.text a.link-icha:hover,
.text a.link-icha:focus {
  color: #1C390A;
  text-decoration: underline;
  outline: none;
}

/* =======================
   Sauberer CSS-Block nur für Objektseiten
========================== */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero video {
  max-width: 70%;
  height: auto;
  display: inline-block;
  border-radius: 12px;
}

.site-header {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  background: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.main-nav a {
  color: #333;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #0077cc;
}

.main-nav a.active {
  border-bottom: 2px solid #0077cc;
}



@media (max-width: 768px) {
  .gallery-thumbs {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .gallery-thumbs {
    height: 60px;
  }
}
