html {
    scrollbar-gutter: stable;
}

body { 
    background-color: #F4F4F5; 
    color: #171717; 
    background-image: radial-gradient(#d4d4d8 1px, transparent 1px); 
    background-size: 24px 24px;
}

/* Harte Kanten nur wenn nicht abgerundet */
body:not(.round-corners) * { border-radius: 0 !important; }

/* Markdown Content Styling */
.content-area h1, 
.content-area h2, 
.content-area h3, 
.content-area h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.025em; /* tracking-tight */
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.content-area h1 { font-size: 2.25rem; } /* text-4xl */
.content-area h2 { 
    font-size: 1.875rem; /* text-3xl */
    border-bottom: 4px solid #171717;
    padding-bottom: 0.5rem;
}
.content-area h3 { font-size: 1.5rem; } /* text-2xl */
.content-area h4 { font-size: 1.25rem; } /* text-xl */

.content-area p {
    margin-bottom: 1.25rem;
}

.content-area ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.content-area ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.content-area li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.content-area a {
    color: #0047FF; /* brand */
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    transition: all 0.2s;
}

.content-area a:hover {
    background-color: #171717;
    color: white;
}

.content-area strong {
    font-weight: 700;
}

/* Modal Styles matching the new softer brutalism */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-backdrop.active { display: flex; }

.modal-container {
    background-color: white;
    border: 2px solid #171717;
    box-shadow: 8px 8px 0px 0px #171717;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    animation: modal-slide-up 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modal-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #171717;
    background-color: #F4F4F5;
}

.modal-header h2 { 
    font-weight: 700; 
    font-size: 1.25rem; 
    text-transform: uppercase; 
    margin: 0; 
}

.modal-close { 
    font-size: 2rem; 
    font-weight: bold; 
    line-height: 1; 
    cursor: pointer; 
    background: none; 
    border: none; 
    color: #171717;
}

.modal-close:hover { color: #0047FF; }

.modal-body { 
    padding: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}

.modal-input-group {
    display: flex;
    flex-direction: column;
}

.modal-label { 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.875rem; 
    margin-bottom: 0.5rem; 
    display: block; 
}

.modal-input-wrapper { 
    display: flex; 
    border: 2px solid #171717; 
    box-shadow: 4px 4px 0px 0px #171717; 
}

.modal-prefix { 
    background-color: #F4F4F5; 
    padding: 0.75rem 1rem; 
    font-weight: 700; 
    border-right: 2px solid #171717; 
    display: flex; 
    align-items: center; 
}

.modal-input { 
    flex-grow: 1; 
    padding: 0.75rem 1rem; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    outline: none !important; 
    width: 100%; 
    background: transparent;
    border: none !important;
}

.modal-feedback {
    margin-top: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.text-danger { color: #EF4444; }
.text-success { color: #0047FF; } /* Updated to brand color */

.pricing-card { 
    border: 2px solid #171717; 
    padding: 1rem; 
    background-color: white; 
}

/* Phone Frame Rounding - Always active for phone, but could be made conditional if desired */
/* We keep it active as it defines the phone shape specifically */
#phone-container { border-radius: 2.5rem !important; }
#phone-notch { border-radius: 9999px !important; }

/* Otto Mascot Styles */
.otto-shadow { fill: #171717; transform: translate(6px, 6px); }
.otto-body { fill: #0047FF; stroke: #171717; stroke-width: 4px; stroke-linejoin: round; stroke-linecap: round; }
.otto-white { fill: #FFFFFF; stroke: #171717; stroke-width: 4px; stroke-linejoin: round; }
