/**
 * Währungsrechner DKK-EUR - Stylesheet
 * RostockGedser.de
 * Version: 1.0.0
 * Zuletzt aktualisiert: 2025-12-20
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    --primary: #005D8A;
    --primary-dark: #00456B;
    --secondary: #FFC107;
    --secondary-dark: #E6AD00;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --success: #28A745;
    --danger: #dc3545;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-sm: 6px;
    --transition: 0.2s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

.site-header .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: background-color var(--transition);
}

.site-header .nav-link:hover {
    background-color: var(--light-gray);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, rgba(0,93,138,0.9) 0%, rgba(29,53,87,0.9) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-section {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content-section h3 {
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   Buttons (Override Bootstrap)
   ========================================================================== */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Currency Converter
   ========================================================================== */
.converter-container {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.converter-form {
    max-width: 600px;
    margin: 0 auto;
}

.converter-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray);
}

.converter-form .form-control,
.converter-form .form-select {
    border: 1px solid var(--light-gray);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.converter-form .form-control:focus,
.converter-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0,93,138,0.25);
}

.current-rate {
    background-color: var(--light);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.current-rate p {
    margin-bottom: 0;
    font-weight: 500;
}

/* ==========================================================================
   Price Comparison Table
   ========================================================================== */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
}

.price-table th {
    background-color: var(--light-gray);
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
}

.price-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.95rem;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr:hover {
    background-color: rgba(0,93,138,0.03);
}

.price-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Info Cards
   ========================================================================== */
.info-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Currency Image
   ========================================================================== */
.currency-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--white);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 3px solid rgba(0,93,138,0.5);
    outline-offset: 2px;
}

@media (forced-colors: active) {
    .btn:focus,
    .form-control:focus,
    a:focus {
        outline: 3px solid SelectedItem;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .price-table th,
    .price-table td {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 1.25rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .btn {
        display: none !important;
    }

    .hero {
        background: var(--primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
