/* Design tokens */
:root {
    --color-text: #000;
    --color-muted: #5d5a52;
    --color-accent: #7b5f31;
    --color-surface: rgba(255, 253, 250, 0.9);
    --color-border: rgba(0,0,0, 1.0);
    --color-border-strong: #20201d;
    --color-focus: rgba(123, 95, 49, 0.28);

    --font-family-base: "Inclusive Sans", sans-serif;
    --font-size-small: 13px;
    --font-size-body: 20px;
    --font-size-sensorVal: 30px;
    --font-size-heading: clamp(32px, 6vw, 56px);
    --font-size-question: clamp(28px, 5vw, 48px);
    --font-size-question: 20px;

    --line-height-tight: 1;
    --line-height-question: 1.08;
    --line-height-body: 1.5;

    --space-2xs: 8px;
    --space-xs: 10px;
    --space-sm: 12px;
    --space-md: 14px;
    --space-lg: 16px;
    --space-xl: 18px;
    --space-2xl: 28px;
    --space-3xl: 32px;
    --space-page-y: 56px;
    --space-page-x: 32px;

    --radius-sm: 8px;
    --radius-pill: 100px;

    --border-width: 1px;
    --focus-width: 3px;
    --page-max-width: 920px;
    --control-min-height: 44px;
    --textarea-min-height: 40px;
    --list-indent: 22px;
    --font-weight-bold: 700;
    --font-weight-semibold: 600;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    
     font-optical-sizing: auto;;

    
    color: var(--color-text);
    font-family: var(--font-family-base);
    font-size: var(--font-size-body)
}

.bg {
    position: fixed;
    top: 0;
    left:0;
    width: 100%;
    height: 100vh;
     background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;

}

.page {
    width: min(var(--page-max-width), calc(100% - var(--space-page-x)));
    width: 424px;
    margin: 0 auto;
    padding: var(--space-page-y) 0;
    height: 100vh;
    position: relative;
    z-index: 20;
    display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}

.page-archiv {
    overflow-x: scroll;
    position: relative;
}

.navigation {
    position: fixed;
    left: 30px; 
    top: 45px;
    z-index: 1000;
}

.navigation a {
    border: none;
}

.intro {
    margin-bottom: var(--space-3xl);
}

.overview {
    display: none;
    width: min(var(--page-max-width), calc(100% - var(--space-page-x)));
    margin: 0 auto;
    padding: var(--space-page-y) 0;
    flex-direction: column;
     width: 424px;
         height: 100vh;
    position: relative;
    z-index: 100;
}

.overview a{
display:flex;
width: fit-content;
margin: 8px 0;
}


.eyebrow {
    margin: 0 0 var(--space-xs);
    color: var(--color-accent);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 var(--space-sm);
    font-size: var(--font-size-body);
    line-height: var(--line-height-tight);
}

#status {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--font-size-body);
}

.antworten-layer {
    position: fixed;
    top:0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    overflow-x: scroll;
    z-index: 100;
}

.antworten {
    position: absolute;
    top: 0;
    left: 0;
    width: 900vw;
    height: 100vh;
    display: grid;
    gap: var(--space-md);
    gap: 40px;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 10px;
    /* background-color: rgba(0,0,0,0.3); */
}

.antwort {
    padding: var(--space-lg) 0;
    grid-column: 1;
    /* grid-column-end: -1; */
}

.antwort p {
    margin: 0;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
}



.quiz {
    display: grid;
    gap: var(--space-xl);
    width: 100%;
}

.frage {
    display: block;
    font-size: var(--font-size-question);
    /* font-weight: var(--font-weight-bold); */
    line-height: var(--line-height-question);
    text-align: center;
}

textarea, input[type=text]::placeholder {
color: var(--color-text);
}

textarea, input[type=text]:focus {
color: var(--color-text);

}

textarea, input[type=text] {
    width: 100%;
    min-height: var(--textarea-min-height);
    resize: vertical;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    padding: var(--space-md);
    text-align: center;
}

textarea:focus, input[type=text]:focus {
    outline: var(--focus-width) solid var(--color-text);
    border-color: var(--color-text);
}

button,
a {
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-min-height);
    padding: 0 var(--space-xl);
    font: inherit;
    text-decoration: none;
    width: fit-content;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

#zurueck {
    border:none;
}

.quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.quiz-actions button:first-child {
    background: transparent;
    color: var(--color-text);
}

.quiz-fertig {
    /* display: grid;
    gap: var(--space-sm); */
}

.quiz-fertig[hidden],
.quiz[hidden] {
    display: none;
}



.admin-liste {
    display: grid;
    gap: var(--space-xl);
}

.admin-datensatz {
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    padding: var(--space-xl);
}

.admin-datensatz-kopf {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xs) var(--space-lg);
    align-items: start;
}

.admin-datensatz-kopf h2,
.admin-datensatz-kopf p {
    margin: 0;
}

.admin-datensatz-kopf p {
    color: var(--color-muted);
}

.admin-datensatz-kopf button {
    grid-row: span 2;
}

.admin-antworten {
   
    display: grid;
    gap: var(--space-xs);
    margin: var(--space-xl) 0 0;
    padding-left: var(--list-indent);
}

.admin-antworten li {
    line-height: var(--line-height-body);
}

@media (max-width: 640px) {
    .admin-datensatz-kopf {
        grid-template-columns: 1fr;
    }

    .admin-datensatz-kopf button {
        grid-row: auto;
        width: 100%;
    }
}


canvas {
  display: block;
  z-index: 1;
  position: relative;
}

.blurry {
  position: fixed;
  z-index: 1;
  /* background-color: blueviolet; */
  top:0;
  left:0;
  width: 100%;
  height: 100vh;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

#defaultCanvas0 {
  z-index: 1;
    /* position: fixed; */
z-index: -1;
position: fixed;
left: 0;
top: 0;
}

#sensorbackground {
    position: relative;
    z-index: -1;
}

#reflexion {
    position: fixed;
    bottom: var(--space-page-y);
    z-index: 101;
    left: 50%;
    transform: translateX(-50%);
}

#reflexion:hover {
    background-color: rgba(255,255,255,0.5);
    border-color:  rgba(255,255,255,0.5);

}

.sensor-icon {
    position: fixed;
    top: 45px;
    right: 30px;
    z-index: 1000;
}

.sensor-icon a {
    border: none;
}

.sensor {
  
    display: flex;
flex-direction: column;
border: 1px solid var(--color-text);
border-radius: 22px;
padding: 16px;
height: 174px;
justify-content: space-between;
align-items: center;
width: 174px;
font-size: 16px;
}

.sensor-value {
    font-size: var(--font-size-sensorVal);
    font-weight: var(--font-weight-semibold);
}

.sensorlist {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    height: fit-content;
    gap:20px;
    justify-content: center;
    padding-top:100px;
}

@media(min-width: 1000px){
    .antworten {
        width: 300vw;
    }
}

