:root {
    --akte-bg: #b3a286;
    color-scheme: light;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow: hidden;
    padding: 20px;
}
.hidden {
    display: none !important;
}

.akte-closed {

    color-scheme: light !important;
    forced-color-adjust: none;
    background-color: color(srgb 0.702 0.635 0.525);
    color: #2b2b2b;
    width: 100%;
    max-width: 360px;
    height: 80vh;
    border-radius: 8px 24px 24px 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    padding-left: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    border-left: 20px solid #1a1613;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    touch-action: none;
    will-change: transform, opacity;
}

.akte-closed.fly-away {
    transform: translateX(-140%) rotate(-15deg) !important;
    opacity: 0 !important;
}

.behoerde-top {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: underline;
    margin-bottom: 25px;
    opacity: 0.8;
    color: #1a1510;
    margin-top: 10vh;
    margin-bottom: 50px;
}

.akte-titel {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

.trennlinie {
    width: 95%;
    height: 3px;
    background-color: #1a1510;
    margin: 0px 0 30px 0;
}

.akte-vorwurf {
    font-size: 1rem;
    font-weight: Bold;
    text-transform: uppercase;
    line-height: 1.4;
    color: #a63a3a;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-bottom: 35px;
}

.akte-section {
    position: absolute;
    bottom: 45px;
    right: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: 120px 1fr;
    row-gap: 12px;
    align-items: center;
    text-align: left;
    margin-top: 10px;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    opacity: 0.7;
    margin: 0;
}


.wert {
    font-size: 0.75rem;
    font-weight: bold;
    margin: 0;
}

.swipe-hint {
    position: absolute;
    bottom: 15px;
    left: 30px;
    right: 20px;

    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1510;
    opacity: 0.4;
    animation: SwipeAnim 2s infinite ease-in-out;
}

@keyframes swipeAnim {
    0%, 100% {transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* =======================================================
Page 1
==========================================================*/

.akte-page-1,
.akte-page-2,
.akte-page-3,
.akte-page-4,
.akte-back {
    display: block;
    width: 100%;
    max-width: 360px;
    animation: fileFadeIn 0.3s ease-out forwards;
}

@keyframes fileFadeIn {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1); }    
}

.akte-inside-page {
    background-color: color(srgb 0.702 0.635 0.525);
    color: #2b2b2b;
    width: 100%;
    height: 80vh;
    border-radius: 8px 24px 24px 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    padding: 25px 20px 25px 30px; 
    position: relative;
    display: flex;
    flex-direction: column;
    border-left: 10px dashed #6b5b48
}

.akte-inside-page .trennlinie {
    margin-bottom: 10px;
}

.akte-inside-page .behoerde-top {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.75rem;
    display: block;
}

.akte-intern-titel {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1a1510;
    line-height: 1.2;
    text-align: left;
    margin-bottom: 5px;
}

.akten-notiz {
    background: rgba(0, 0, 0, 0.04);
    border: 1px dashed #1a1510;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    line-height: 1.5;
}

.notiz-header {
    font-weight: bold;
    color: #a63a3a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    text-decoration: underline;
}

.notiz-text {
    text-align: left;
    margin-bottom: 15px;
}

.zitat-bitch {
    color: #a63a3a;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(166, 58, 58, 0.1);
    padding: 0 4px;
    border-radius: 2px;
}

.zusatz-header {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.zusatz-liste {
    list-style-type: "- ";
    padding-left: 15px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

/* =======================================================
Page 3 (Beweisstück A & Chat-Protokoll)
==========================================================*/

/* Die ausgedruckte Chat-Box */
.chat-beweis {
    background-color: rgba(0, 0, 0, 0.08); /* Schmutziger Hintergrund */
    border-left: 4px solid #a63a3a;        /* Rote Markierung links */
    padding: 12px;
    margin-top: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.chat-time {
    color: #555;
    margin-right: 5px;
    font-size: 0.75rem;
}

.chat-name {
    font-weight: 900;
    color: #1a1510;
    margin-right: 5px;
    text-decoration: underline;
}

.chat-msg {
    font-style: italic;
    color: #000;
    font-weight: bold;
}

.akte-bild {
    width: 100%;
    max-height: 90px;
    object-fit: cover;
    border: 2px solid #1a1510;
    margin-top: 15px;
    transform: rotate(-1deg);
    
}

.akte-page-4 .akten-notiz {
    font-size: 0.75rem; 
    line-height: 1.3; 
    padding: 10px;      
}
.akte-page-4 .zusatz-liste {
    row-gap: 2px;
    margin-bottom: 0;
}

.guilty-stempel {
    position: absolute;
    bottom: 20px;
    right: 15px;
    color: #a63a3a;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    

    border: 5px solid #a63a3a;
    padding: 6px 20px;
    border-radius: 4px;
    transform: rotate(-10deg);
    opacity: 0.9;
    
    z-index: 10;
    user-select: none;
    pointer-events: none;
}

/* =======================================================
   SEITE 6: RÜCKSEITE (FALL CLOSED)
   ======================================================= */
.akte-back {
    background-color: color(srgb 0.702 0.635 0.525);
    width: 100%;
    height: 80vh;
    border-radius: 8px 24px 24px 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-left: 5px solid #1a1613; 
}

.closed-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.closed-stempel-final {
    font-family: 'Courier New', Courier, monospace;
    color: #a63a3a;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    
    border: 7px solid #a63a3a;
    padding: 15px 25px;
    
    transform: rotate(-15deg);
    opacity: 0.15;
    
    user-select: none;
    pointer-events: none;
}