@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap');

:root {
    --bg-light: rgba(253, 253, 245, 1);
    --accent-gold: rgba(253, 240, 133, 1);
    --plum: rgba(188, 52, 68, 1);    
    --white: rgba(255, 255, 255, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background-color: var(--bg-light);
    font-family: 'Roboto', sans-serif;
    display: flex; flex-direction: column;
    width: 100%;
}

body { height: 100vh; overflow: hidden; }

.row { display: flex; width: 100%; z-index: 100; flex-shrink: 0; height: 95px; gap: 12px; }
.dot { background-color: var(--plum); height: 100%; aspect-ratio: 1 / 1; flex-shrink: 0; }
.bar { background-color: var(--plum); flex-grow: 1; display: flex; align-items: center; color: var(--white); padding: 0 25px; overflow: hidden; }
.massive-text { font-weight: 900; font-size: 3.2rem; text-transform: uppercase; white-space: nowrap; }

.logo-dot { display: flex; justify-content: center; align-items: center; }
.logo-dot img { max-width: 80%; max-height: 80%; object-fit: contain; }

main { 
    flex: 1; position: relative; width: 100%; 
    display: flex; justify-content: center; align-items: center; 
}

/* Justizia: Exakt auf dem Footer aufsitzend */
main::before {
    content: ""; position: absolute; 
    top: calc(100% - 70vh); right: 5%; 
    width: 30vw; height: 70vh;
    background: url('img/justizia.png') no-repeat right bottom / contain; 
    opacity: 0.12; z-index: 0; pointer-events: none;
}

/* Box-Größe auf vmin umgestellt für Skalierung auf Laptops */
.box { 
    background-color: var(--plum); color: var(--white); padding: 2.5vmin; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); position: absolute;
    width: 38vmin; height: 38vmin; min-width: 320px; min-height: 320px;
    display: flex; flex-direction: column; justify-content: center;
    z-index: 10;
}

/* Positionierung mit dynamischem Offset (Box-Breite/2 + Gap) */
.main-box { transform: translate(calc(-50% - 0.8vmin), calc(-50% - 0.8vmin)); } 
.sub-box  { transform: translate(calc(50% + 0.8vmin), calc(-50% - 0.8vmin)); }
.box-3    { transform: translate(calc(-50% - 0.8vmin), calc(50% + 0.8vmin)); }
.box-4    { 
    transform: translate(calc(50% + 0.8vmin), calc(50% + 0.8vmin)); 
    background-color: var(--accent-gold); color: var(--plum); 
}

.inline-link { color: var(--white); font-weight: 900; text-decoration: underline; }

.gold-box h2, .gold-box a, .gold-box p { color: var(--plum) !important; }
.mail-link-dark { font-weight: 900; text-decoration: none; font-size: 1.2rem; border-bottom: 3px solid var(--plum); display: inline-block; }

.box-extra { display: none; }

h2 { color: var(--accent-gold); font-weight: 900; text-transform: uppercase; margin: 0 0 10px 0; line-height: 1.1; font-size: clamp(1.2rem, 2vmin, 1.6rem); }
.gold-box h2 { color: var(--plum); }
.highlight { border-left: 5px solid var(--accent-gold); padding-left: 12px; font-weight: 900; margin-bottom: 10px; text-align: left; }
.gold-box .highlight { border-left-color: var(--plum); }
p { font-size: clamp(0.85rem, 1.4vmin, 1rem); margin: 5px 0; }

.footer-layout { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.footer-left-group { display: flex; align-items: center; gap: 30px; }
.legal-links { font-size: 0.9rem; font-weight: 900; color: var(--accent-gold); white-space: nowrap; }
.fake-link { cursor: pointer; color: var(--accent-gold); }
.sep { color: var(--accent-gold); margin: 0 5px; }
.mail-link { color: var(--white) !important; text-decoration: none; }
.info-bold-desktop { font-weight: 900; text-align: right; text-transform: uppercase; color: var(--accent-gold); font-size: 1.4rem; }

.banner-desktop img { display: block; border: none; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: none; z-index: 9999; justify-content: center; align-items: center; }
.modal-content { background: var(--plum); color: var(--white); padding: 40px; max-width: 650px; width: 90%; position: relative; border: 4px solid var(--accent-gold); }
.close-btn { position: absolute; top: 10px; right: 20px; font-size: 40px; color: var(--accent-gold); cursor: pointer; font-weight: 900; }

@media (max-width: 1024px) {
    body { height: auto; overflow-y: auto; overflow-x: hidden; }
    .row { height: 70px; gap: 8px; width: 100%; }
    .bar { padding: 0 15px; }
    .massive-text { font-size: clamp(1.1rem, 5vw, 1.8rem); }
    .footer-layout { display: none; }
    main { flex-direction: column; align-items: center; padding: 40px 15px; gap: 20px; width: 100%; overflow-x: hidden; position: relative; }
    main::before { position: fixed; top: auto; bottom: 70px; right: -10%; width: 50vw; height: 60vh; opacity: 0.07; z-index: -1; }
    .box { position: static; transform: none !important; width: 100%; max-width: 450px; aspect-ratio: 1/1; height: auto; min-width: 0; min-height: 0; box-shadow: none; padding: 35px; }
    .box-3, .box-4, .box-extra { display: flex; }
    .box-links { display: flex; flex-direction: column; gap: 15px; align-items: center; text-align: center; }
    .modal-link-btn { background: none; border: none; color: var(--accent-gold); font-family: inherit; font-weight: 900; font-size: 1.2rem; text-transform: uppercase; cursor: pointer; padding: 0; }
    .box-banner img { max-width: 157px; }
    footer.row { margin-top: 20px; width: 100%; }
}