@charset "utf-8";

/* ***************************************************************************
/  RegattaXpert
/* ***************************************************************************
/
/  File: rx-race_results.css
/  Author: Markus Bibus
/  Version 0.0.5, 23.08.2026
/
/* ***************************************************************************
/
/  © Copyright 2026 - Urheberrechtshinweis
/  Alle Inhalte dieses Produktes sind urheberrechtlich geschützt.
/  Das Urheberrecht liegt, soweit nicht ausdrücklich anders gekennzeichnet,
/  bei Markus Bibus.
/
/  Die Nutzung der Inhalte dieses Angebots zum Zwecke des Text- und
/  Data Minings durch KI-Systeme ist untersagt.
/
/  Eine Nutzung von Inhalten dieses Produktes zu anderen Zwecken als der
/  hiermit implementierten Funktionalität ist untersagt. Dazu gehört auch
/  das Kopieren von Texten und Bildern.
/  Ein Verstoß gegen das Urheberrecht stellt eine Strafbarkeit
/  gem. §§ 106 ff UrhG dar, und wird mit einer Abmahnung geahndet.
/  Wer gegen das Urheberrecht verstößt, muss gemäß §97 UrhG Schadenersatz leisten.
*/

:root{
    --containerRaceResultWidth: 100%;
    --djk-header-height: 7em;
    --djk-containerSelectDay-height: 2rem;
/* Farben */
    --djk-ruhrwacht-background: #fefefb;        /*  R:254, G:254, B:251 */
    --djk-ruhrwacht-color-green: #1d8a5b;
    --djk-ruhrwacht-color-light-green: #6ce0ad;
}

.notification{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--djk-ruhrwacht-color-green);
    text-align: center;
    line-height: 1.5em;
    height: 100%;
    top: 50%;
    transform-Y: 10px;
    margin: 1em 1.5em;
}

.containerSelectDay{
    display: flex;
    justify-content: center;
    align-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 1em;
	margin: 1em auto;
    height: var(--djk-containerSelectDay-height);
}

h2{
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.center{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.wrapperRacePlan{
    overflow-y: auto;
    width: 100%;
}

.wrapperRaces{
 	display: flex;
   	flex-direction: column;
   	gap: 1rem;
	font-size: 1.5rem;
   	padding: 0 2rem;
   	height: calc(100vh - var(--djk-header-height) - var(--djk-footer-height) - var(--djk-containerSelectDay-height) - 3rem);
    overflow-y: auto;
}

.containerRaceResult{
	display: flex;
	flex-direction: column;
    margin: 0.5rem auto;
	padding: 2rem;
	width: calc(var(--containerRaceResultWidth) - 40px);
	border: 1px solid green;
	border-radius: 30px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.5rem;
}

.containerRaceData{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.raceNumber{
	font-size: 1.5em;
	font-weight: bold;
}

.raceData{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.raceType{
	font-size: 1em;
	font-weight: bold;
	margin: 0 0 0 1rem;
}

.startTime{
	font-size: 1em;
	font-weight: bold;
	margin: 0 20px 0 0;
	text-align: left;
}

.containerTeamResults{
	display: flex;
	flex-direction: column;
	gap: 10px;
	border: 1px solid green;
	border-radius: 20px;
	padding: 10px;
}

.containerTeamResult{
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
/*	border: 1px solid green;    */
    border: none;
	border-radius: 10px;
}

.numberplate{
	display: flex;
	align-items: center;
	justify-content: center;
	border-width: 1px;
	border-style: solid;
	border-radius: 5px;
	font-weight: bold;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0.5rem;
}

.red{
	color: red;
	border-color: red;
}

.black{
	color: black;
	border-color: black;
}

.teamResult{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	width: calc(100% - 3rem - 20px - 10px);
	margin: 5px;
}

.teamName{
	font-size: 1em;
	border-bottom: 1px solid green;
	width: calc(100% - 10px);
	margin: 2px 10px 2px 0;
	padding: 5px 2px;
}

.teamNameData{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
}

.time{
	font-size: 1em;
	margin: 2px;
	padding: 5px 0 5px 10px;
}

.rank{
	font-size: 1em;
	font-weight: bold;
	margin: 2px;
	padding: 5px 10px 5px 0;
}

@media screen and (min-width: 649px){

}

@media screen and (min-width: 769px){
	:root{
		--containerRaceResultWidth: 500px;
	}

	.containerRaceResult{
		display: flex;
		flex-direction: column;
		width: var(--containerRaceResultWidth);
    	margin: 0.5rem auto;
	    padding: 1rem;
		border: 1px solid green;
		border-radius: 30px;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 2rem;
	}
}

@media screen and (min-width: 1024px){
	.containerRaceResult{
		display: flex;
		flex-direction: column;
		width: var(--containerRaceResultWidth);
    	margin: 0.5rem auto;
	    padding: 1rem;
		border: 1px solid green;
		border-radius: 30px;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 2rem;
	}
}
}

/* ************************************************
/  Buttons
*/
.djkbutton{
    font-size: 1.0em;
    text-decoration: none;

    display: inline-block;
    text-decoration: none;

    border-style: solid;
    border-width: 1px;
    border-color: rgba(29, 138, 91, 0.6);
    border-radius: 15px;

    /*    margin: 1em; */
    margin: 1em auto;
    padding: 0.5em;

    width: auto;
}

.djkbutton > a:link{
    color: black;
    text-decoration: none;
    margin: 5px;
}

.djkbuttoncenter{
    position: relative;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
}

.djkbuttonsmall{
    font-size: 0.9em;
    text-decoration: none;

    display: inline-block;
    text-decoration: none;

    border-style: solid;
    border-width: 1px;
    border-color: rgba(29, 138, 91, 0.6);
    border-radius: 10px;

    /*    margin: 1em; */
    margin: 0.8em auto 0.8em 0;
    padding: 0.4em;
    width: auto;
}

/* Fixed Button */
.print-button {
    position: fixed;
    top: calc(var(--djk-header-height) + 2rem);
    right: calc(50%);
    background-color: var(--djk-ruhrwacht-color-green);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background-color 0.3s;
}

.print-button:hover {
    background-color: var(--djk-ruhrwacht-color-light-green);
}

.page, .page-break {
    -moz-page-break-after: always; /* Firefox-spezifisch */
    page-break-after: always; /* Ältere Syntax, aber zuverlässiger in Firefox */
    break-after: page;
}

/* Optional: Button verstecken, wenn auf Mobilgeräten */
@media (max-width: 768px) {
    .print-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media print {
    .print-button {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .page, .page-break {
        display: block !important; /* Erzwingt Block-Layout */
        overflow: visible !important;
        page-break-after: always; /* Ältere Syntax, aber zuverlässiger in Firefox */
        break-after: page;
    }
}
