/* style.css - Modern, responsive styling for index.html (ticket system) */

/* Theme variables */


:root{
    --bg: #010104;
    --abi: #f96714;
    --panel: #010104;
    --muted: #6b7280;
    --text: #ffffff;
    --text2: #000000;
    --primary: #2563eb;
    --primary-600: #1e40af;
    --success: #059669;
    --danger: #dc2626;
    --warning: #f59e0b;
    --glass: rgba(17, 51, 131, 0.04);
    --radius: 20px;
    --glass-2: rgba(0, 47, 255, 0.788);
    --max-width: 1200px;
    --gap: 3em;
    --font-sans: Arial, Helvetica, sans-serif;
}

/* Reset & base */
* { box-sizing: border-box; }

body{
    margin: 0;
    height: 100dvh;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    overflow:auto;
}

h1{
    margin: 0;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.2;
    padding-top: 0.5em;
    padding-bottom: 0.3em;
    color: var(--abi);
}

.testpage{
    padding-top: 1dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 0.5dvh;
    overflow: auto;
}
.card{
    align-self: center;
    width: min(80%, 500px);
    background: var(--panel);
    border-radius: var(--radius);
    padding: 5px;
    margin-bottom: 10px;
    text-align: center;
    overflow: auto;
    box-shadow: -1px -1px 2px 0px var(--abi);
    line-height: 1.45;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}
.card:hover{
    box-shadow: 0px 4px 8px 0px var(--abi);
    transform: translateY(-2px);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

header::-webkit-scrollbar{
    display: none;
}

button{
    font-family: var(--font-sans);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.75em 0.1em;
    border-radius: var(--radius);
    border: none;
    background: var(--glass);
    color: var(--text2);
    width: min(200px, 50%);
    margin-top: 1dvh;
    margin-bottom:2dvh;
    background-color: var(--abi);
    transition: all 0.2s ease-out;
    opacity: 0.5;
}

button:hover{
    cursor: pointer; 
    transform: translateY(-2px);
    box-shadow: 0px 2px 2px 2px #ffffff8a;
    opacity: 1;
}

header{
    padding-top: 1dvh;
    margin-bottom: 2dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: var(--bg);
    border-bottom: var(--abi) 2px solid;
    position: sticky;
    width: 100%;
    height: fit-content;
    z-index: 10;
    transition: all 0.3s ease-in-out;

}

input{
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75em 1em;
    border: #c74c05 1px solid;
    border-radius: var(--radius);
    background: var(--abi);
    color: #000000;
    box-shadow: var(--abi);
    width: min(300px, 70%);
    text-align: center;
    margin-bottom: 1dvh;
    text-transform: uppercase;
    transition: all 0.5s ease-in-out;
    margin-top: 1dvh;
    margin-bottom: 1dvh;
}


input:focus{
    border-color: var(--abi);
    color: #000000;
    box-shadow: 0px 1px 5px 1px var(--abi);
    outline: none;
    opacity: 0.9;
    font-weight: bold;
}

input:not(:placeholder-shown) ~ button{
    opacity: 1;
    font-weight: bold;
}

input:not(:placeholder-shown){
    font-weight: bold;
}

input::placeholder{
    text-transform: lowercase;
    color: rgba(0, 0, 0, 0.75);
    font-weight: 700;
    letter-spacing: 0.2dvw;
}


.screen {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start; /* Boxen oben bündig */
    gap: 4rem;
    width: 100%;
    padding: 20px;
    flex-wrap: wrap;
}

.ticket-container, .Begleitung {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    flex: 1;
    min-width: 320px;
    max-width: 35dvw;
    border-top: 1px solid var(--abi);
    border-bottom: 1px solid var(--abi);
    
    /* Zentriert h1 und den info-wrapper */
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    transition: all 0.3s ease-in-out;
}
.Begleitung {
    margin-bottom: 3rem;
}
h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--abi);
}

/* Der Trick für die Textausrichtung */
.info-wrapper {
    text-align: left; /* Textzeilen fangen alle links an */
    display: inline-block; /* Der Block selbst richtet sich aber mittig aus */
}

.info-wrapper p {
    margin: 0.6rem 0;
    font-size: 1.1rem;
}

.info-wrapper strong {
    color: var(--text);
    margin-right: 5px;
}

.error-border {
    border-bottom: 2px solid red !important;
}
.error-card {
    border-bottom: 1px solid red !important;
    border-top: 1px solid red !important;
}
