/* ---------- Self-hosted Noto Sans (Variable Font, Latin subset) ---------- */
@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 100 900;        /* covers 400/500/600/700 from one file */
    font-stretch: 100%;
    font-display: swap;
    src: url('fonts/NotoSans-Latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                   U+FFFD;
}
* {
    margin: 0px;
    padding: 0px;
    font-weight: normal;                        /*weight of font for whole text*/
    font-family: 'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; /*type of font for the whole text*/
}

body {
    background-color: #fff;                     /*background color: white*/
}

#frame {
    height: 100vh;
	width: 100vw;
}

#header {
    height:7vh;
}

#header > h1 {                                  /*here changes for headline*/
    display: block;
    border-bottom: 2px solid #00305e;
	color: rgb(0,48,94);                        /*color of TUD Corporate Design dark blue*/
    font-size: 4vh;
	font-style: normal;
	text-align: center;
}

#info {                            		        /*here changes for left block*/
    float: left;
    width: 38vw;
    height: 93vh;
    margin: 0px 1vw;
	display:flex;
	flex-direction:column;
	font-size: 2vh;
	font-style: italic;
    color: rgb(0,48,94);
}

#info h1 {								        /*here changes for headline of left block*/
    background-color: rgb(0,48,94);
    border-top-left-radius: 3px;
    padding: 5px;
    border-top-right-radius: 3px;
    font-size: 2vh;
	font-style: normal;
    color: white;
}

#info > div {                                   /*here changes for left block*/
    background-color: #f2f3f3;
    margin-bottom: 2vh;
	/*
		max-height: default value here is set to fit 3 blocks with 2vh space between: 3*29vh + 3*2vh = 93vh (header space is 7vh => adds up to full height)
		specify special max-height in index.html of specific app:
			fit to content of div: 				style="max-height:fit-content;"
			fill out leftover available height: style="max-height:none; flex:1;"
	*/
	max-height:29vh;
    overflow: auto;
}

#info button, #info select{
    margin: 5px 20px;
    width: calc(100% - 40px);
}

#info button {                                  /*here changes for buttons*/
	display: inline-block;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    transition: background-color .25s ease-out,color .25s ease-out;
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 1.5rem 2rem;
    background-color: #dd2727;
    text-transform: uppercase;
    font-size: 15px;
    font-style: normal;
    color: #fff;
}

#info > div > div {
    padding: 5px 20px;
}

#content {                                      /*here changes for right block*/
    float: right;
    width: 60vw;
    height: 92vh;
}

#overlay-info {
	position: absolute;
	margin: 5px 5px;
	padding: 5px 10px;
	background: rgba(255, 255, 255, 0.75);
	border-radius: 5px;
}

#info ul {
	padding: 0vh 2vw;
}

#drawfield {                                    /*here changes for drawfield*/
    background-color: #f2f3f3;
}

#info input {
    width: calc(100% - 40px);
    display: inherit;
    border: none;
    cursor: pointer;
}

#info .checkbox input{
	width:20px;
	display:inline-block;
}

#info .checkbox label{
	font-size: 1.5vh;
	font-style: normal;
}
.checkbox span {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  margin-left: 10px;
  margin-bottom: 0.4vh;
}

#fpsswitcher {
    margin: 0px 20px;
}

#limiter, #examplesSelect{
	margin: 5px 20px;
	padding: 5px;
}

#info .input-label {
	padding: 0px 20px 5px 20px;
	font-size: 1.5vh;
	font-style: normal;
}
#info .input-caption {
	font-size: 1.5vh;
	font-style: normal;
}

#info .tab {
	padding: 5px 0px;
	margin: 0px;
	margin-top: 1vh;
	width: 50%;
	display: inline-block;
	border: 1px solid #404040;
    border-top-right-radius: 5px;
	border-top-left-radius: 5px;
	background-color: #ccc;
	transition: background-color .25s ease-out,color .25s ease-out;
	color: rgb(0,48,94);
}

#info .tab:focus, #info .tab.active {
	outline:0;
	background-color: #f3f3f3;	
	border-bottom: 1px solid #f3f3f3;
}

#info .textOutput {
	font-style: normal;
	font-size: 0.8em;
}

#info .tabContent {
	border: 1px solid #404040;
	border-top: 0px solid #404040;
}

.link {
    fill: none;
    stroke: #ccc;
    stroke-width: 2px;
}


/*
	language switch:
	- positioning absolute at top right corner of screen
	- on top of everything to be visable at all screen sizes
*/


#language {
	padding: 5px;
    position: absolute;
    top: 0.5vh;
    right: 1vw;
    z-index: 100;
}

.lang-switch {
	background-color: #e4e4e4;
	color: rgb(0,48,94);
	font-size: 1.3vh;
	line-height: 1;
	text-align: center;
	padding: 1vh 1vw;
	padding-top:0.9vh;
	margin-right: -1px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
	transition: all 0.1s ease-in-out;
}

.lang-switch:hover {
	cursor: pointer;
}

.lang-switch:disabled {
	color: white;
	background-color: rgb(0,48,94);
	box-shadow: none;
	cursor: default;
}
.lang-switch:focus {
	outline:0;
}

.lang-switch:first-of-type {
	border-radius: 4px 0 0 4px;
}

.lang-switch:last-of-type {
	border-radius: 0 4px 4px 0;
}




/* =========================================================================
   Teachlets � Design Tokens (CSS Custom Properties)
   Universell: App-Layout und Landing Page greifen auf dieselben Variablen zu.
   Markenfarben sind TUD-Hausfarben; Akzentfarben pro Kategorie (raster / spatial / numeric).
   ========================================================================= */

:root {
  /* --- Markenfarben (TUD, �bernommen) ---------------------------------- */
  --tud-blue:   rgb(0, 48, 94);
  --tud-red:    #dd2727;
  --tud-panel:  #f2f3f3;
  --tud-border: rgba(0, 48, 94, 0.18);

  /* --- Kategorie-Akzente ---------------------------------------------- */
  --accent-raster:  var(--tud-blue);
  --accent-spatial: var(--tud-red);
  --accent-numeric: #2c9d8f;            /* ged�mpftes Teal */

  /* --- Neutralfarben --------------------------------------------------- */
  --bg-page:    #fafafa;
  --bg-card:    #ffffff;
  --text:       #1d1f20;
  --text-soft:  #4d5b66;
  --text-mute:  #6c7a89;

  /* --- Typografie ----------------------------------------------------- */
  --font-base:  'Noto Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fs-eyebrow: 0.85rem;
  --fs-h1:      clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-h2:      clamp(1.5rem, 2.5vw, 2rem);
  --fs-card-title: 1.125rem;
  --fs-card-desc:  0.95rem;
  --fs-body:    1rem;
  --lh-tight:   1.2;
  --lh-base:    1.55;

  /* --- Spacing-Skala --------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.25rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* --- Radien --------------------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* --- Schatten ------------------------------------------------------- */
  --shadow-card-rest:  0 0.25rem 0.6rem rgba(0, 0, 0, 0.05),
                       0 0.5rem 1.125rem rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 0.5rem 0.9rem rgba(0, 0, 0, 0.08),
                       0 1rem 2rem rgba(0, 0, 0, 0.10);
  --shadow-hero:       0 1.5rem 3rem rgba(0, 48, 94, 0.08);

  /* --- Layout / Container --------------------------------------------- */
  --container-max: 64rem;     /* 1024px */
  --content-max:   56rem;     /*  896px */
}
