/* Stil för fönstermontering i Malmö */
/* Generella inställningar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Huvudbehållare */
.malmo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header och navigation */
.malmo-header {
    background: linear-gradient(135deg, #003366, #0066cc);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.malmo-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.malmo-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.malmo-logo::before {
    content: "🏠";
    font-size: 2rem;
    margin-right: 0.5rem;
    background: linear-gradient(45deg, #ff8800, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.malmo-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.malmo-nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.malmo-nav-menu a:hover {
    color: #ffcc00;
}

.malmo-cta-header {
    background: #ffcc00;
    color: #003366;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.malmo-cta-header:hover {
    background: #ff8800;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Mobil meny toggle */
.malmo-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

.malmo-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero sektion */
.malmo-hero {
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,102,204,0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e6f2ff" width="1200" height="600"/><rect fill="%23cce6ff" x="0" y="400" width="1200" height="200"/><circle fill="%23ffcc00" cx="1000" cy="100" r="80"/></svg>');
    background-size: cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.malmo-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.malmo-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Knappar */
.malmo-btn {
    display: inline-block;
    background: #ffcc00;
    color: #003366;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.malmo-btn:hover {
    background: #ff8800;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.malmo-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.malmo-btn-secondary:hover {
    background: white;
    color: #003366;
}

/* Innehållssektioner */
.malmo-section {
    padding: 4rem 0;
}

.malmo-section-alt {
    background: #f8f9fa;
}

.malmo-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #003366;
}

.malmo-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

/* Grid layouts */
.malmo-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.malmo-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.malmo-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.malmo-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Kort */
.malmo-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.malmo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.malmo-card h3 {
    color: #003366;
    margin-bottom: 1rem;
}

/* Inforutor */
.malmo-info-box {
    background: linear-gradient(135deg, #e6f2ff, #cce6ff);
    border-left: 5px solid #0066cc;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.malmo-info-box h4 {
    color: #003366;
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.malmo-quote {
    background: #f0f8ff;
    border-left: 4px solid #ffcc00;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    position: relative;
}

.malmo-quote::before {
    content: """;
    font-size: 3rem;
    color: #ffcc00;
    position: absolute;
    top: -10px;
    left: 10px;
}

/* Tabeller */
.malmo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.malmo-table th {
    background: #003366;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

.malmo-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.malmo-table tr:nth-child(even) {
    background: #f8f9fa;
}

.malmo-table tr:hover {
    background: #e6f2ff;
}

/* Formulär */
.malmo-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.malmo-form-group {
    margin-bottom: 1.5rem;
}

.malmo-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #003366;
}

.malmo-form-group input,
.malmo-form-group textarea,
.malmo-form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.malmo-form-group input:focus,
.malmo-form-group textarea:focus,
.malmo-form-group select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.malmo-form-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Spamskydd */
.malmo-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Dropdown/Accordion */
.malmo-dropdown {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

.malmo-dropdown-header {
    background: #f8f9fa;
    padding: 1rem;
    cursor: pointer;
    font-weight: bold;
    color: #003366;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.malmo-dropdown-header:hover {
    background: #e6f2ff;
}

.malmo-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.malmo-dropdown-content.active {
    max-height: 500px;
}

.malmo-dropdown-content p {
    padding: 1rem;
    margin: 0;
}

/* Specifika stilar för details/summary */
details {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

details summary {
    background: #f8f9fa;
    padding: 1rem;
    cursor: pointer;
    font-weight: bold;
    color: #003366;
    list-style: none;
    transition: background 0.3s ease;
}

details summary:hover {
    background: #e6f2ff;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    float: right;
    font-size: 1.2rem;
    color: #0066cc;
}

details[open] summary::after {
    content: '-';
}

details div {
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
}

/* Säsongsstil för månadsanpassning */
.malmo-seasonal {
    background: linear-gradient(135deg, #e6f2ff, #fff4e6);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #ffcc00;
    text-align: center;
}

.malmo-seasonal h3 {
    color: #003366;
    margin-bottom: 1rem;
}

/* Footer */
.malmo-footer {
    background: #003366;
    color: white;
    padding: 3rem 0 1rem;
}

.malmo-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.malmo-footer h4 {
    color: #ffcc00;
    margin-bottom: 1rem;
}

.malmo-footer ul {
    list-style: none;
}

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

.malmo-footer ul li a {
    color: #cce6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.malmo-footer ul li a:hover {
    color: #ffcc00;
}

.malmo-footer-bottom {
    border-top: 1px solid #0066cc;
    padding-top: 1rem;
    text-align: center;
    color: #cce6ff;
}

/* Mobil responsivitet */
@media (max-width: 768px) {
    .malmo-nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #003366;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .malmo-nav-menu.active {
        display: flex;
    }

    .malmo-menu-toggle {
        display: flex;
    }

    .malmo-hero h1 {
        font-size: 2rem;
    }

    .malmo-hero p {
        font-size: 1.1rem;
    }

    .malmo-section h2 {
        font-size: 2rem;
    }

    .malmo-grid-2,
    .malmo-grid-3,
    .malmo-grid-4 {
        grid-template-columns: 1fr;
    }

    .malmo-table {
        font-size: 0.9rem;
    }

    .malmo-table th,
    .malmo-table td {
        padding: 0.5rem;
    }
}

/* Tillgänglighetsstöd */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skrivarstil */
@media print {
    .malmo-header,
    .malmo-footer,
    .malmo-btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}