/* Gemeinsame Styles für Frontend + Admin */

.rem-top20-tabelle,
.rem-kompetenz-table,
.rem-kompetenz-blocks {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
	font-size:16px;
}

.rem-top20-tabelle th,
.rem-top20-tabelle td,
.rem-kompetenz-table th,
.rem-kompetenz-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
	line-height:1.2em;
}





.rem_top20_wrapper {
	margin: 20px 0;
}

.rem-top20-tabelle {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* ermöglicht Umbruch */
    font-size: 16px;
}

.rem-top20-tabelle th,
.rem-top20-tabelle td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    vertical-align: middle;
    word-wrap: break-word; /* lange Wörter umbrechen */
    white-space: normal;   /* Zeilenumbrüche erlauben */
}

.rem-top20-tabelle th {
	font-weight:400;
}

/* Abwechselnde Zeilen */
.rem-top20-tabelle tbody tr:nth-child(odd) {
    background-color: #ffffff; /* Weiß */
}

.rem-top20-tabelle tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Hellgrau */
}

.rem-top20-tabelle tbody tr:hover {
    background-color: #f1f1f1;
}

.rem-top20-tabelle .platz {
    width: 40px;
    min-width: 40px;
    max-width: 60px;
    text-align: right;
}

.rem-top20-tabelle .umsatz-mio,
.rem-top20-tabelle .umsatz-full {
    text-align: right;
	overflow-wrap: break-word;
	text-align:center;
}

/* Nur auf größeren Bildschirmen: zeige volle Umsatzzahl */
@media (min-width: 769px) {
    .rem-top20-tabelle .umsatz-mio {
        display: none !important;
    }
}

/* Nur auf kleineren Bildschirmen: zeige Mio.-Zahl */
@media (max-width: 768px) {
	.rem-top20-tabelle {
		font-size: 14px;
	}

    .rem-top20-tabelle .umsatz-full {
        display: none !important;
    }

    .rem-top20-tabelle .umsatz-mio {
        display: table-cell !important;
    }
}

/* Nur auf kleineren Bildschirmen: zeige Mio.-Zahl */
@media (max-width: 412px) {
	.rem-top20-tabelle {
		font-size: 12px;
	}
}












.rem-kompetenz-table th {
	font-weight:600;
}
.rem-kompetenz-table td {
	font-weight:400;
}
.rem-kompetenz-table th small, .rem-kompetenz-table td small {
	font-weight:400;
	font-size: 80%;
	white-space: nowrap;
	line-height: 1em;
}

.rem-kompetenz-table th, .rem-kompetenz-table td {
	border: 1px solid #ccc;
	padding: 8px;
	line-height:1.2em;
}
.rem-kompetenz-table th {
	font-weight:600;
}
.rem-kompetenz-table td {
	font-weight:400;
}
.rem-kompetenz-table th small, .rem-kompetenz-table td small {
	font-weight:400;
	font-size: 80%;
	white-space: nowrap;
	line-height: 1em;
}
.rem_blau1 {
	background: #00356f;
	color:#fff
}
.rem_blau2 {
	background: #00489b;
	color:#fff
}
.rem_grau1 {
	background: #f4f4f4;
	color:#333;
}
.rem_grau2 {
	background: #d5dce3;
	color:#333;
}
.rem_grau2c {
	background: #d5dce3;
	color:#333;
	text-align:center !important;
	min-width: 80px;
	margin: 2px 0;
}
.rem_grau2cS {
	background: #d5dce3;
	color:#333;
	text-align:left !important;
	min-width: 80px;
	margin: 2px 0;
	font-size:13px;
	padding:2px 5px;
}


.headline,.subheadline {
	font-weight:700;
	text-align:center;
}

.b0 {
	margin-bottom:0px !important;
}

.b2 {
	margin-bottom:20px !important;
}

.b4 {
	margin-bottom:40px !important;
}
.textarea_big {
	height:5em;
	text-align: center !important;
	vertical-align: middle;
}
.textarea_small {
	height:4em;
	vertical-align:top;
}

.rem_score {
	text-align:center;
}

.rem-kompetenz-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
}
.rem-kompetenz-table th {
	font-weight:600;
}
.rem-kompetenz-table td {
	font-weight:400;
}


.rem-kompetenz-block {
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	padding: 0px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rem-kompetenz-block h3 {
	--zeilen: 4.2;
	--zeilenhoehe: 1.2em;
	font-size: 16px;
	line-height: var(--zeilenhoehe);
	height: calc(var(--zeilenhoehe) * var(--zeilen));
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px;
	margin:0 !important;
	font-weight:400;
	display: flex;
	flex-direction: column;
	justify-content: center;			
}
.rem-kompetenz-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px;
}

.rem-kompetenz-table th,
.rem-kompetenz-table td {
	border: 1px solid #eee;
	padding: 5px 10px 10px 10px;
}

th.rem_summe, td.rem_summe {
	text-align:center;
}

/* Optional: Unterschiedliche Spaltenbreiten */
.rem-kompetenz-table td:nth-child(1),
.rem-kompetenz-table th:nth-child(1) {
	width: 10%;
}

.rem-kompetenz-table td:nth-child(2),
.rem-kompetenz-table th:nth-child(2) {
	width: 60%;
}

.rem-kompetenz-table td:nth-child(3),
.rem-kompetenz-table th:nth-child(3) {
	width: 30%;
}

@media (max-width: 999px) {
	.rem-kompetenz-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.rem-kompetenz-container {
		grid-template-columns: 1fr;
	}
}


.steckbrief-tabelle {
    font-size: 14px;
    margin-bottom: 20px;
}

.steckbrief-tabelle th {
    vertical-align: top;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    min-width: 40px;
}



.steckbrief_wrapper {
    max-width: 1200px;
    margin: 0 auto;
	padding:1em;
    background: #ffffff;
}

.steckbrief-modal-content {
    border: 1px solid #ccc;
    padding: 1rem;
    -webkit-box-shadow: 5px 5px 8px -2px rgba(0, 0, 0, 0.13);
    box-shadow: 5px 5px 8px -2px rgba(0, 0, 0, 0.13);	
	font-size:16px;
}



.steckbrief-modal-content header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    max-height: 80px;
	max-width: 300px;
}
.logo img {
	width: 100%;
}

.table-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.table-container13 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.table-container15 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.table-column {
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 0;
}

.steckbrief th {
	font-weight:400;
}

.table-column h2 {
    background-color: #007bff;
    color: white;
    padding: 10px;
    margin: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.table-column table {
    width: 100%;
    border-collapse: collapse;
}

.table-column th,
.table-column td {
	border: 3px solid #fff;
	padding: 1px 5px;
    text-align: left;
	line-height:1.5em;
	
}
td.text-right {
    text-align: right;
}

.width60 {
    width:60px;
}

table.rem_table_inline {
	padding: 0;
	margin: 0;
}
table.rem_table_inline td {
	border: none;
	padding:3px 8px;
}

@media (max-width: 768px) {
    .table-container {
        grid-template-columns: 1fr;
    }

	.table-container13 {
		display: grid;
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.table-container15 {
		display: grid;
		grid-template-columns: 1fr;
		gap: 20px;
	}

    .table-column {
        margin-bottom: 20px;
    }
}

table.rem_table_steckbrief {
}

.rem_table_steckbrief .width40 {
	min-width:40px;
}

.rem_flex_cell {
	display: flex;
	justify-content: space-between; /* Linker Text links, rechter Text rechts */
	align-items: center;
	width: 100%;
}

.firmen-detail-link:hover {
	cursor: pointer;
	
}














/* Basis-Styles */
.filter-container {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 20px;
    background: #f0f0f0;
    border-radius: 8px;
}

/* Logo Container - KORREKTE Grid-Implementierung */
.logo-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #00489b14;
}

/* Logo Item Styles */
.logo-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    min-width: 0; /* Wichtig für korrekte Skalierung */
}

.logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    height: 100%;
    min-height: 150px;
    box-sizing: border-box;
}

.logo {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    object-fit: contain;
}
img.logo {
    width: 300px;
}

.firmenname {
    font-size: 11px;
    color: #555;
    text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 1199px) {
    .logo-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
	header img.logo {
		max-width: 150px;
	}
    .logo-container {
        grid-template-columns: repeat(2, 1fr);
    }

	.entry-content-wrap {
		padding:0 !important;
	}
	.steckbrief_wrapper {
		padding: 0;
	}
}

@media (max-width: 480px) {
    .logo-container {
        grid-template-columns: 1fr;
    }
	.steckbrief_wrapper * {
		font-size:12px !important;
	}
	.steckbrief-modal-content {
		padding: 0.5rem;
	}	
}

/* Reset Button */
#reset-filters {
    background: #00489b;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#reset-filters:hover {
    background: #003366;
}


/* Custom Checkbox Styles */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-options label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    min-height: 24px;
    transition: all 0.2s;
}

.filter-options label:hover {
    color: #00489b;
}

.filter-options input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #00489b;
    border-radius: 4px;
    transition: all 0.2s;
}

/* Hover State */
.filter-options label:hover .checkmark {
    background-color: #f0f7ff;
}

/* Checked State */
.filter-options input:checked ~ .checkmark {
    background-color: #00489b;
    border-color: #00489b;
}

/* Checkmark Symbol */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-options input:checked ~ .checkmark:after {
    display: block;
}

/* Focus State */
.filter-options input:focus-visible ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(0, 72, 155, 0.3);
}

.filter-options {
    margin-bottom: 0.5em;
}
.filter-group h3 {
    margin: 0 !important;
}

