@import url('/css/colors.css');

:root {
    --font-sans: Arial, Helvetica, sans-serif;
}

/* Allgemeine Elemente */
body, td, th {
    color: #000;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: normal;
}
th {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
}

body {
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
}

h1, h2, h3 {
    font-weight: normal;
}

h1 {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: 43px;
    text-shadow: 0 0 5px white;
}

h2 {
    color: var(--hover-color);
    font-family: var(--font-script);
    font-size: 35px;
}

h3 {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: 23px;
}

h1, h2, h3, h4, h5, h6 {
    display: block;
    word-wrap: break-word;
    line-height: 1.1;
}

hr {
    border-top: 3px dotted var(--secondary-color);
    color: var(--secondary-color);
    width: 30%;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

/* Header */
.header-top, .header-top-corsiva {
    width: 100%;
    height: 80px;
    margin-top: 20px;
    text-align: right;
}
.header-top img {
    float: left;
    position: relative;
}
.header-top section {
    float: right;
    position: relative;
}
/* Details und Summary */
details {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.15s background linear;
    border-radius: 20px;
}

details:hover, details:focus {
    background: var(--highlight_color);
}

summary {
    list-style: none!important;
    padding: 10px 33px 10px 10px;
}

details > summary {
    text-align: left;
    margin-top: 5px;
    width: 300px;
}

/* Layout Container */
.flexcontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

.flexcolumn {
    width: 100%;
    flex: 1;
    min-width: 400px;
    margin: 10px;
}

/* Sektionen */
.marke, .banner, .modell {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--background-color);
    background-size: cover;
    transition: box-shadow 0.3s ease;
    border-radius: 20px;
}

.marke {
    padding-top: 53%;
    background-position: right top;
}

.banner {
    padding-top: 36%;
}

.modell {
    float: left;
}
.modell img {
    border-radius: 20px;
}

.marke:hover, .modell:hover {
    box-shadow: 0 0 10px 3px var(--secondary-color);
    margin: 15px;
}

.banner:hover {
    border: 5px solid var(--secondary-color);
    margin: 15px;
}

.konf-button {
	background-image: url("/bilder/konf-button.jpg");
	margin: 0px auto;
	width: 200px;
	height:200px;
	background-size: contain;
	background-repeat: no-repeat;
}
.konf-button:hover {
	background-image: url("/bilder/konf-button-h.jpg");
	cursor: pointer !important;
}

.row {
    text-align: left;
    float: left;
    position: relative;
}

.row:hover {
    background-color: var(--secondary-color);
    cursor: pointer !important;
}

/* Farb wähler */
.verdeck {
    overflow: hidden;
    background-color: #cd9934;
    height: 19%;
    width: 100%;
}

.bimini, .polster {
    overflow: hidden;
    background-color: #00009b;
    height: 20%;
    width: 100%;
}
.bimini {
    height: 20%;
}
.polster {
    height: 10%;
}

.oberdeck, .rumpf {
    overflow: hidden;
    background-color: var(--background-color);
}

.oberdeck {
    height: 11.5%;
    width: 100%;
}

.tau {
    overflow: hidden;
    background-color: #000;
    height: 2%;
    line-height: 0;
    width: 100%;
}

.rumpf {
    height: 37%;
    width: 100%;
}

/* Overlays */
.overlay, .overlayneu, .overlaynomore {
    width: 101%;
    height: 101%;
    background-size: contain;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
}

.overlay {
    background-image: url("/bilder/colorpickerframe.png");
    background-size: cover;
}

.overlayneu {
    background-image: url("/bilder/neuframe.png");
}

.overlaynomore {
    background-image: url("/bilder/nomoreframe.png");
}

/* Optionen Liste */
label {
    display: block;
    line-height: 30px;
    height: 30px;
    -webkit-font-smoothing: antialiased;
    margin: 5px auto;
    font-family: var(--font-sans);
    color: gray;
    text-align: center;
    overflow: hidden;
}
label.auswahloptionen {
    border: solid 1px gray;
    line-height: 30px;
    height: 30px;
    width: 750px;
    border-radius: 20px;
}

label:hover {
    cursor: pointer !important;
    border: solid 2px var(--secondary-color);
    background-color: var(--highlight-color);
}

.check {
    visibility: hidden;
    float: left;
    margin-left: 10px;
}

input[type="checkbox"] {
    display: none;
}

input:checked + label {
    background-color: var(--secondary-color);
    border: solid 1px var(--secondary-color);
    color: var(--primary-color);
}

input:checked + label:before {
    content: "\2713 ";
}

input:checked + label .check {
    visibility: visible;
}

/* Inputs */
input[type="text"], textarea, select {
    display: block;
    border: solid 1px gray;
    line-height: 30px;
    height: 30px;
    width: 750px;
    border-radius: 20px;
    -webkit-font-smoothing: antialiased;
    margin: 5px auto;
    font-family: var(--font-sans);
    color: var(--primary-color);
    text-align: center;
    overflow: hidden;
    font-size: 16px;
}

input[type="button"], input[type="submit"], input[type="reset"] {
    line-height: 30px;
    height: 30px;
    width: 150px;
    border-radius: 20px;
    border: solid 1px var(--secondary-color);
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-sans);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    cursor: pointer;
    font-size: 16px;
}

/* Tooltip */
td div.tooltip, .tooltip {
    position: relative;
    display: inline-block;
}
div.tooltip {
    display: block;
}
div.boot {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 190px;
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: bold;
    top: -2px;
    right: 105%;
    max-height: 190px;
    margin-left: -100px;
    background-color: var(--tooltip-background);
    color: #000;
    border-bottom: 1px solid black;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    z-index: 1;
    top: 15px;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--tooltip-background);
}

.tooltiptext img {
  max-width: 100%;
  height: auto;
  overflow: hidden;
  object-fit: cover; /* Beschneidet das Bild, um es passend anzuzeigen */
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery img, .gallery video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Tabellen */
table.overview {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.overview th, .overview td {
    border-bottom: 1px solid var(--border-color);
    padding: 8px;
    text-align: left;
}

.overview tr:hover {
    background-color: var(--highlight-color);
}

.overview th {
    background-color: var(--secondary-color);
}

.anfragen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.anfragen-table th, .anfragen-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.anfragen-table tr:hover {
    background-color: #f5f5f5;
}

/* Buttons */
.btn-delete, .btn-export, .btn-pdf, .btn-note {
    padding: 5px 10px;
    border: none;
    color: white;
    cursor: pointer;
}

.btn-delete {
    background-color: var(--button-color);
}

.btn-export {
    background-color: var(--export-color);
}

.btn-pdf {
    background-color: var(--pdf-color);
}

.btn-note {
    background-color: var(--note-color);
}

/* Dashboard */
.dashboard-container {
    display: grid;
    grid-template-columns: 60vw 38.5vw;
    grid-template-rows: auto 1fr 1fr;
    gap: 10px;
}

.list-box, .menu-box, .functions-box, .stats-box {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.list-box {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    background-color: var(--secondary-color);
    overflow-y: auto;
}

.menu-box {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background-color: var(--hover-color);
}

.stats-box {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    background-color: var(--secondary-color);
}

/* Statistik */
.statistik {
    font-size: 0.9rem;
    line-height: 1.5;
}

.statistik h4 {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #333;
}

.statistik p {
    margin-bottom: 5px;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 80vw;
}

.login-form {
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: var(--input-background);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.functions-box {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
/* Entferne den Abstand zur Oberseite und die Box-Überschrift */
.functions-box {
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    border-bottom: 2px solid var(--primary-color);
    z-index: 2;
}

.tab-content {
    background-color: var(--secondary-color);
    position: relative;
    top: -10px;
    padding-top: 15px;
    padding-left: 20px;
    border-radius: 10px;
    height: 89%;
    z-index: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nav-tabs .nav-link {
    color: var(--input-background);
    font-family: var(--font-sans);
    padding: 10px 15px;
    border: none;
    background-color: var(--hover-color);
    z-index: 2;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--hover-color);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Tabs direkt an der Oberseite der Box */
.functions-box .nav {
    margin-bottom: 0; /* Kein zusätzlicher Abstand */
}

.share-buttons-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Abstand zwischen den Buttons */
    background-color: #bcaa6c;
    padding: 20px;
    border-radius: 20px;
}

.share-button {
    flex: 1; /* Gleichmäßige Verteilung der Buttons */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #bcaa6c;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.share-button img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.share-button:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* 3D Konfigurator UI Dropdowns */
.ui-section-title{
	font-family: var(--font-sans);
	font-weight: 600;
	color: var(--primary-color);
	margin: 4px 0 12px 0;
}

.ui-group{
	display: block;
	margin: 8px 0;
	border: 1px solid #ddd;
	border-radius: 12px;
	background: #fafafa;
	overflow: hidden;
}

.ui-group summary{
	padding: 8px 12px;
	font-family: var(--font-sans);
	font-weight: 600;
	color: var(--primary-color);
	cursor: pointer;
	list-style: none;
	width: 100%;
	box-sizing: border-box;
}

.ui-group summary::-webkit-details-marker{
	display: none;
}

.ui-group[open] summary{
	background: var(--highlight-color);
}

.ui-group-body{
	padding: 6px 10px 10px 10px;
}


/* Medienabfragen */
@media screen and (max-width: 768px) {
    .flexcolumn {
        flex: 1 0 100%;
    }
    .dashboard-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 10px;
        height: 80vh;
    }

    .menu-box {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        text-align: center;
    }

    .list-box {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .functions-box, .stats-box {
        display: none;
    }
     .menu-box .list-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 0;
        margin: 0;
    }

    .menu-box .list-group-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        border: none;
        border-radius: 5px;
    	background-color: var(--secondary-color);
		color: var(--primary-color);
        text-decoration: none;
        font-size: 0.9rem;
        min-width: auto; /* Setze min-width zurück, falls sie überschrieben wurde */
        width: auto;
    }

    .menu-box .list-group-item:hover {
		background-color: var(--hover-color);
    }

    .menu-box .list-group-item.text-danger {
    	background-color: var(--secondary-color);
    }

    .menu-box .list-group-item.text-danger:hover {
		background-color: var(--hover-color);
    }
    input[type="text"], textarea, select {
    	width: auto;
    	min-width: 200px;
    	max-width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .gallery {
        grid-template-columns: repeat(2, auto);
    }
}

/* 3D Konfigurator Layout */
.configurator-layout{
	display: flex;
	gap: 20px;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 20px 0;
}

.configurator-canvas{
	flex: 0 0 66.6667%;
	min-width: 0;
}

#renderCanvas{
	display: block;
	width: 100%;
	height: 70vh;
	min-height: 480px;
	border-radius: 12px;
	background: #f5f5f5;
}

.configurator-panel{
	flex: 0 0 33.3333%;
	min-width: 0;
	box-sizing: border-box;
	padding: 10px 12px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	max-height: 70vh;
	overflow: auto;
}

.configurator-panel .logo{
	margin: 0 0 10px 0;
}

@media (max-width: 980px){
	.configurator-layout{
		flex-direction: column;
		padding: 10px 10px 0;
	}
	.configurator-canvas,
	.configurator-panel{
		flex: 0 0 auto;
		width: 100%;
		max-height: none;
	}
	#renderCanvas{
		height: 60vh;
		min-height: 360px;
	}
}
