body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

body.index2-page {
    background: linear-gradient(rgba(10, 10, 10, 0.08), rgba(10, 10, 10, 0.08)), url('building-9568428_1920.jpg') center / cover fixed no-repeat;
}

#app-container {
    width: calc(100% - 20px);
    max-width: 414px;
    height: calc(100vh - 20px);
    background: #121212;
    padding: 2px;
    margin: 10px;
    border-radius: 30px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #1f1f1f;
    
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

body.index2-page #app-container {
    background: rgba(18, 18, 18, 0.32);
}

.style-switch {
    display: inline-block;
    margin: 0 auto 12px;
    padding: 5px 10px;
    border: 1px solid rgba(197, 139, 82, 0.7);
    border-radius: 5px;
    color: #f2d0a5;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.style-switch:hover,
.style-switch:focus-visible {
    background: rgba(197, 139, 82, 0.2);
    color: #ffffff;
}

#backgroundCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

#app-container > *:not(#backgroundCanvas) {
    position: relative;
    z-index: 1;
}


  

p {
    color: #ffffff;
    background-color: rgba(30, 30, 30, 0.95);
    margin-top: 0px;
    border-radius: 4px;
    padding: 4px;
    margin-left: 200px;
    border: 1px solid #2a2a2a;
}

#app-container > p:empty {
    display: none;
}

h1 {
    margin-top: 2px;
    margin-bottom: 2px;
    color: #ffffff;
    background-color: transparent;
    border: none;
    border-radius: 14px;
    padding: 7px;
    display: flex;
    overflow: hidden;
    font-size: 30px;
    font-weight: 700;
}

h5 {
    margin-top: 2px;
    margin-bottom: 2px;
    color: #707070;
    background-color: transparent;
    border: none;
    border-radius: 14px;
    padding: 7px;
    display: flex;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 400;
}

h2 {
    color: #909090;
    background-color: transparent;
    border-radius: 14px;
    padding: 14px;
    font-size: clamp(0.65rem, 3vw, 0.9rem);
    line-height: 1.5;
    text-align: center;
}

h3 {
    margin: 3px;
    color: #a0a0a0;
}

#send-button-delayzeit-sechzehntelnote, #send-button-delayzeit-achtelnote,
#send-button-delayzeit-viertelnote, #send-button-delayzeit-halbenote {
    margin-left: 180px;
    position: sticky;
    top: -23.2px;
    right: -50px;
    margin-top: -20px;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #2f2f2f;
    cursor: pointer;
    transition: all 0.2s ease;
}

#send-button-delayzeit-sechzehntelnote:hover,
#send-button-delayzeit-achtelnote:hover,
#send-button-delayzeit-viertelnote:hover,
#send-button-delayzeit-halbenote:hover {
    background: #252525;
    border-color: #404040;
}

form {
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 5px;
    border: 1px solid #252525;
    padding: 2px;
    margin-bottom: 0px;
    color: #e0e0e0;
}

label {
    margin-right: 40px;
    color: #b0b0b0;
}

input {
    border-radius: 9px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #2f2f2f;
    padding: 10px;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #505050;
    background-color: #202020;
}


.legal-text {
    font-size: 1rem;
    color: #606060;
}

.legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.75rem;
}

.legal-links .legal-text {
    color: rgb(151, 115, 71);
    text-decoration: none;
}

.image-credit {
    margin-top: 3px;
    color: rgb(151, 115, 71);
    font-size: 0.625rem;
    text-align: center;
}

.image-credit a {
    color: inherit;
}

/* Landscape Modus (Querformat) */
@media screen and (max-height: 600px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding: 5px 0;
    }
    
    #app-container {
        height: auto;
        max-height: calc(100vh - 10px);
        margin: 5px auto;
        padding: 15px 2px;
    }
}

/* Tablet und größer */
@media screen and (min-width: 768px) {
    #app-container {
        max-width: 500px;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    #app-container {
        max-width: 600px;
        height: auto;
        min-height: 600px;
        max-height: calc(100vh - 40px);
    }
}

/* Transparenter Industrial-Glass-Look fuer die zweite Seite */
body.index2-page {
    --accent-color: #c58b52;
    --panel-color: rgba(10, 10, 10, 0.42);
    --line-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(rgba(10, 10, 10, 0.18), rgba(10, 10, 10, 0.18)), url('building-9568428_1920.jpg') center / cover fixed no-repeat;
}

body.index2-page #app-container {
    width: min(92vw, 600px);
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 32px);
    margin: 16px;
    padding: 18px 12px;
    background: rgba(10, 10, 10, 0.22);
    border: 1px solid var(--line-color);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.index2-page h1 {
    margin: 0;
    color: #f2d0a5;
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    text-align: center;
}

body.index2-page h2 {
    max-width: 34rem;
    margin: 4px auto 18px;
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.76);
}

body.index2-page form {
    padding: 8px 10px;
    margin-bottom: 4px;
    background: rgba(10, 10, 10, 0.28);
    border: 1px solid var(--line-color);
    border-radius: 8px;
}

body.index2-page h3 {
    margin: 3px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    font-weight: 500;
}

body.index2-page label {
    display: inline;
}

body.index2-page input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 8px 10px;
    padding-right: 32px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--line-color);
    accent-color: var(--accent-color);
}

body.index2-page input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.index2-page .tempo-input {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

body.index2-page .tempo-arrows {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: flex;
    flex-direction: column;
    width: 22px;
    overflow: hidden;
    border-radius: 0 5px 5px 0;
}

body.index2-page .tempo-arrows button {
    position: relative;
    flex: 1;
    width: 22px;
    padding: 0;
    border: 0;
    background: rgba(197, 139, 82, 0.25);
    cursor: pointer;
}

body.index2-page .tempo-arrows button:hover,
body.index2-page .tempo-arrows button:focus-visible {
    background: rgba(197, 139, 82, 0.75);
    outline: none;
}

body.index2-page .tempo-arrows button::before {
    position: absolute;
    left: 50%;
    content: "";
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

body.index2-page .tempo-up::before {
    top: 4px;
    border-bottom: 5px solid #f2d0a5;
}

body.index2-page .tempo-down::before {
    bottom: 4px;
    border-top: 5px solid #f2d0a5;
}

body.index2-page input[type="submit"] {
    width: auto;
    margin-left: 180px;
    position: sticky;
    top: -23.2px;
    right: -50px;
    margin-top: -20px;
    padding: 7px 14px;
    position: static;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    background: rgba(197, 139, 82, 0.9);
    color: #17110b;
    font-weight: 700;
}

body.index2-page input[type="submit"]:hover {
    background: #e0aa70;
    border-color: #e0aa70;
}

body.index2-page p {
    width: auto;
    min-width: 150px;
    min-height: 1.5rem;
    box-sizing: border-box;
    margin-top: 0;
    margin-left: 200px;
    margin-bottom: 8px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--line-color);
    color: #f2d0a5;
    display: flex;
    align-items: center;
}

body.index2-page .legal-text {
    color: rgba(255, 255, 255, 0.55) !important;
}

