/* ===== Schwarz-Weiß CSS-Variablen ===== */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --muted-color: #666666;
    --border-color: #000000;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
}

/* ===== Globale Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* ===== Header mit EG6 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    margin-bottom: 3rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-left {
    position: absolute;
    left: 2rem;
}

.back-arrow {
    font-size: 3rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    cursor: pointer;
}

.back-arrow:hover {
    font-weight: 900;
    transform: scale(1.1);
}

/* Menu Popup Styles */
.menu-popup {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 2px solid #000;
    border-radius: 0;
    display: none;
    z-index: 1000;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu-popup.active {
    display: block;
}

.menu-content {
    padding: 1rem;
}

.menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 1.1rem;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #000;
    color: #ffffff;
    transform: translateX(2px);
}

.menu-item:active {
    transform: translateX(0) scale(0.98);
}

.brand-name {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -4px;
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.brand-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-link:hover {
    font-weight: 900;
    transform: scale(1.02);
}

.braille-subtitle {
    font-size: 0.8rem;
    color: var(--muted-color);
    text-align: center;
    margin-top: 0.1rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* ===== Hauptinhalt mit Zahlen ===== */
.main-content {
    min-height: calc(100vh - 80px);
    padding: 3rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.number-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.number-item:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.number-item:active {
    transform: translateY(0) scale(0.98);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted-color);
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    font-size: 1rem;
}

.footer-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
}

.footer-links-horizontal {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    font-size: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.footer-center {
    text-align: center;
}

.footer-link {
    color: var(--muted-color);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 0;
}

.footer-link:hover {
    color: var(--text-color);
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    border-radius: 0;
}

.braille-egg {
    font-size: 1rem;
    color: var(--muted-color);
    text-align: center;
    margin: 0.5rem 0;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 0.2px;
    line-height: 1.1;
    text-shadow: 0.2px 0.2px 0 var(--border-color), 
                 -0.2px -0.2px 0 var(--border-color),
                 0.2px -0.2px 0 var(--border-color),
                 -0.2px 0.2px 0 var(--border-color);
}

.egg-row {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.braille-egg:hover {
    color: var(--text-color);
    opacity: 1;
    transform: none;
    font-weight: 400;
    text-shadow: 0.3px 0.3px 0 var(--border-color), 
                 -0.3px -0.3px 0 var(--border-color),
                 0.3px -0.3px 0 var(--border-color),
                 -0.3px 0.3px 0 var(--border-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .number-item {
        padding: 1rem;
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}

/* Braille-Konverter Styles - Schwarz-Weiß mit kantigen Elementen */
.converter-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.converter-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #000;
}

.converter-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 900;
    letter-spacing: -3px;
}

.converter-header p {
    font-size: 1.4rem;
    color: #666;
    font-weight: 700;
}

/* Upload Section - Kantig und Schwarz-Weiß */
.upload-section {
    background: #ffffff;
    padding: 2rem;
    border: 2px solid #000;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
}

input[type="file"] {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #000;
    font-weight: 700;
}

.file-label:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-1px);
}

.upload-icon {
    font-size: 1.5rem;
}

.upload-text {
    font-weight: 700;
    font-size: 1.1rem;
}

.file-name-display {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #f0f0f0;
    color: #000;
    border: 2px solid #000;
    border-radius: 0;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
    }
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #000;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: #000;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #000;
    border-radius: 0;
    outline: none;
    margin: 1rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #000;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: -5px;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #fff;
    border-color: #000;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #000;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: -5px;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #fff;
    border-color: #000;
}

/* Select element styling */
.control-select {
    width: 100%;
    padding: 0.75rem;
    background-color: #ffffff;
    color: #000;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
    outline: none;
    cursor: pointer;
}

.control-select:hover {
    background-color: #000;
    color: #ffffff;
    border-color: #000;
}

.control-select:focus {
    background-color: #000;
    color: #ffffff;
    border-color: #000;
    outline: none;
}

input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #ffffff;
    color: #000;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
    outline: none;
}

input[type="number"]:focus {
    background-color: #000;
    color: #ffffff;
    border-color: #000;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #000;
    margin-right: 0.5rem;
    vertical-align: middle;
    margin-top: 0;
    background-color: #ffffff;
    border: 2px solid #000;
    border-radius: 0;
    outline: none;
    transition: all 0.2s ease;
}

input[type="checkbox"]:focus {
    background-color: #000;
    border-color: #000;
}

input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}

#scaleValue, #thresholdValue {
    font-weight: bold;
    color: #000;
}

/* Preview Section - Kantig */
.preview-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.braille-preview {
    background: #ffffff;
    padding: 1.5rem;
    border: 2px solid #000;
    border-radius: 0;
}

.braille-preview h3 {
    margin-bottom: 1rem;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.braille-container-wrapper {
    background-color: transparent;
    border: none;
    border-radius: 0;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.braille-container {
    background-color: transparent;
    color: #000;
    padding: 1rem;
    border-radius: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    line-height: 2;
    cursor: grab;
    transition: font-size 0.1s ease;
}

.braille-container:hover {
    cursor: grab;
}

.braille-container:active {
    cursor: grabbing;
}

#brailleOutput {
    margin: 0;
    white-space: pre;
    font-size: 3.5rem;
    line-height: 2.2;
}

.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0.3;
    pointer-events: none;
    z-index: 5;
    font-size: 2rem;
    line-height: 1.5;
}

.copy-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-1px);
}

/* Feedback Section - Kantig */
.feedback-section {
    background: #ffffff;
    padding: 2rem;
    border: 2px solid #000;
    border-radius: 0;
}

.feedback-form h3 {
    margin-bottom: 1.5rem;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.feedback-form p {
    margin-bottom: 1.5rem;
    color: #000;
    line-height: 1.6;
}

.feedback-form a {
    color: #000;
    text-decoration: underline;
    font-weight: 700;
}

.email-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-info {
    background: #f0f0f0;
    padding: 1rem;
    border: 2px solid #000;
    border-radius: 0;
    font-family: monospace;
    font-size: 1.1rem;
}

.email-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.email-btn, .copy-email-btn {
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.email-btn:hover, .copy-email-btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-1px);
}

/* Responsive Design for Converter */
@media (max-width: 768px) {
    .converter-wrapper {
        padding: 1rem;
    }
    
    .converter-header h1 {
        font-size: 2rem;
    }
    
    .preview-section {
        grid-template-columns: 1fr;
    }
    
        .braille-container {
            background: #fff;
            padding: 15px;
            border: 1px solid var(--border-color);
            min-height: 200px;
            font-family: 'Courier New', Courier, monospace;
            font-size: var(--font-size);
            line-height: 1;
            white-space: pre;
            overflow: auto;
            max-height: 50vh;
        }

        .braille-container span {
            display: inline-block;
            width: 1ch;
            height: 1ch;
        }

/* Animation for upload label */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.file-label:hover {
    animation: pulse 0.2s ease;
}

/* Scrollbar styling for braille container */
.braille-container::-webkit-scrollbar {
    width: 8px;
}

.braille-container::-webkit-scrollbar-track {
    background: #333;
}

.braille-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 0;
}

.braille-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}
}

/* Back Button Styles */
.back-button-container {
    text-align: center;
    margin: 2rem 0;
}

.back-btn {
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none;
}

.back-btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-1px);
}

/* Home Page Styles */
.home-content {
    text-align: center;
    padding: 4rem 2rem;
}

.brand-hero {
    margin-bottom: 4rem;
}

.brand-name-large {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -6px;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.braille-subtitle-large {
    font-size: 1.5rem;
    color: var(--muted-color);
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 1.5rem;
    color: var(--muted-color);
    font-weight: 700;
    margin-bottom: 3rem;
}

.navigation-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.nav-item {
    background: #ffffff;
    border: 2px solid #000;
    border-radius: 0;
    padding: 2rem;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 200px;
}

.nav-item:hover {
    background: #000;
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-link {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.braille-icon {
    font-size: 3rem;
    line-height: 1;
}

.nav-link span {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.feedback-section {
    background: #ffffff;
    padding: 2rem;
    border: 2px solid #000;
    border-radius: 0;
}

.feedback-form h3 {
    margin-bottom: 1.5rem;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.feedback-form p {
    margin-bottom: 1.5rem;
    color: #000;
    line-height: 1.6;
}

.feedback-form a {
    color: #000;
    text-decoration: underline;
    font-weight: 700;
}

@media (max-width: 768px) {
    .brand-name-large {
        font-size: 4rem;
    }
    
    .braille-subtitle-large {
        font-size: 1.2rem;
    }
    
    .brand-tagline {
        font-size: 1.2rem;
    }
    
    .navigation-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        width: 100%;
        max-width: 300px;
    }
    
.feedback-section {
    margin-bottom: 40px;
    margin-top: 20px;
}
    
    .feedback-container {
        padding: 1.5rem;
    }
}
