@charset "utf-8";

/* ***************************************************************************
/  RegattaXpert
/* ***************************************************************************
/
/  File: rx-race_plan-published.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;
/* Farben */
    --djk-ruhrwacht-background: #fefefb;        /*  R:254, G:254, B:251 */
    --djk-ruhrwacht-color-green: #1d8a5b;
    --djk-ruhrwacht-color-light-green: #6ce0ad;
}

.wrapperAll{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
}

.containerSideItem{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start;
    width: 23.95833333333330%;
}

.containerForRaces{
    display: flex;
    flex-direction: column;
}

.wrapperRacePlan{
    display: flex;
   	flex-direction: column;
   	justify-content: flex-start;
   	align-items: center;
   	width: 100%;
   	margin: 0 7.29166666666667% 0 7.29166666666667%;
    overflow-y: auto;
}

.wrapperRaces{
 	display: flex;
   	flex-direction: column;
   	gap: 1rem;
}

.containerRaceResult{
	display: flex;
	flex-direction: column;

    margin: 0.5rem auto;
	padding: 0.5rem;
	width: calc(var(--containerRaceResultWidth) - 40px);
	border: 1px solid green;
	border-radius: 30px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1rem;
}

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

.raceNumber{
    width: 100%;
    text-align: center;
    margin: auto;
	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;
	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: 1rem;
	}
}

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

}

/* ************************************************
/  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: 1.25em;

    background-color: var(--djk-ruhrwacht-color-green);
    color: var(--djk-ruhrwacht-background);

    margin: 0.5em 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: 0.8em;

    background-color: var(--djk-ruhrwacht-color-green);
    color: --djk-ruhrwacht-background;

    margin: 0.3em auto;
    padding: 0.2em 0.4em;

    width: auto;
}

/* Fixed Button */
.print-button {
    position: fixed;
    top: calc(var(--djk-header-height) + 0.1rem);
    right: 15rem;

    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;
}

.pageheader{
    display: none;
}

/* Overlay */
.overlay{
    display: none;
}

.afterrace{
	font-size: 1rem;
	font-weight: bold;
}

/* Optional: Button verstecken, wenn auf Mobilgeräten */
@media (max-width: 768px) {
    .print-button, .djkbutton{
        display: none !important;
    }
}

@media print {
    .print-button, .djkbutton{
        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;
    }

    .overlay{
        display: block;
        position: fixed;
        left: 0;
        width: 20rem;
        object-fit: cover;
    }
}
