/* Takläggare Trelleborg CSS - Retro 2005 stil med moderna konverteringsoptimerade element */

/* Grundläggande reset och typografi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Arial, sans-serif;
    background-color: #f8f5f2;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
}

/* Huvudcontainer */
.tak-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #d4c5a9;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

/* Header och navigation - retro 2005 stil */
.tak-header {
    background: linear-gradient(to bottom, #e8dcc0 0%, #d4c5a9 100%);
    border-bottom: 3px solid #b8a583;
    padding: 15px 20px;
}

.tak-logo {
    font-size: 28px;
    font-weight: bold;
    color: #2c5aa0;
    text-shadow: 2px 2px 0px #fff;
    margin-bottom: 10px;
    font-family: Impact, Arial Black, sans-serif;
    letter-spacing: -1px;
}

.tak-tagline {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 15px;
}

/* Navigation - 2005 stil med tabs */
.tak-nav {
    background: #2c5aa0;
    margin: 0 -20px;
    padding: 0;
    overflow: hidden;
}

.tak-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.tak-nav li {
    background: linear-gradient(to bottom, #4a7bc8 0%, #2c5aa0 50%, #1e3f73 100%);
    border-right: 1px solid #1e3f73;
    border-left: 1px solid #6b93d6;
}

.tak-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.tak-nav a:hover {
    background: rgba(255,255,255,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Mobilmeny toggle */
.tak-menu-toggle {
    display: none;
    background: #d2691e;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    margin: 10px 0;
}

/* Huvudinnehåll */
.tak-content {
    padding: 25px;
    background: #fff;
}

/* Hero-sektion */
.tak-hero {
    background: linear-gradient(135deg, #f0e6d2 0%, #e8dcc0 100%);
    border: 2px solid #d4c5a9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.tak-hero::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid #fff;
    border-radius: 4px;
    pointer-events: none;
}

.tak-hero h1 {
    color: #2c5aa0;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px #fff;
    font-family: Georgia, serif;
    line-height: 1.2;
}

.tak-hero p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA-knappar - retro stil med moderna konverteringsoptimerade färger */
.tak-cta {
    display: inline-block;
    background: linear-gradient(to bottom, #ff6b35 0%, #d2691e 50%, #b8541a 100%);
    color: white !important;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #b8541a;
    border-top-color: #ff8c5a;
    border-left-color: #ff8c5a;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin: 5px;
    cursor: pointer;
}

.tak-cta:hover {
    background: linear-gradient(to bottom, #ff8c5a 0%, #ff6b35 50%, #d2691e 100%);
    transform: translateY(-2px);
    box-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.tak-cta:active {
    transform: translateY(0);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Sekundär CTA */
.tak-cta-secondary {
    background: linear-gradient(to bottom, #9370db 0%, #7b68ee 50%, #6a5acd 100%);
    border: 2px solid #6a5acd;
    border-top-color: #ba9ff7;
    border-left-color: #ba9ff7;
}

.tak-cta-secondary:hover {
    background: linear-gradient(to bottom, #ba9ff7 0%, #9370db 50%, #7b68ee 100%);
}

/* Rubriker */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, serif;
    color: #2c5aa0;
    margin-bottom: 15px;
    font-weight: bold;
}

h1 {
    font-size: 28px;
    border-bottom: 3px solid #d4c5a9;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    color: #d2691e;
    margin-top: 25px;
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    color: #2c5aa0;
    margin-top: 20px;
}

h4 {
    font-size: 16px;
    color: #666;
}

/* Textformatering */
p {
    margin-bottom: 15px;
    text-align: justify;
}

strong {
    color: #d2691e;
    font-weight: bold;
}

/* Info-rutor */
.tak-info-box {
    background: linear-gradient(to bottom, #e6f3ff 0%, #ccebff 100%);
    border: 2px solid #4a90e2;
    border-left: 6px solid #2c5aa0;
    border-radius: 6px;
    padding: 18px;
    margin: 20px 0;
    position: relative;
}

.tak-info-box::before {
    content: "💡";
    position: absolute;
    top: -8px;
    left: 15px;
    background: #4a90e2;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.tak-info-box h4 {
    color: #2c5aa0;
    margin-bottom: 10px;
    font-size: 15px;
}

.tak-kom-ihag-box {
    background: linear-gradient(to bottom, #fff5e6 0%, #ffe6cc 100%);
    border: 2px solid #ff6b35;
    border-left: 6px solid #d2691e;
}

.tak-kom-ihag-box::before {
    content: "⚠️";
    background: #ff6b35;
}

/* Listor */
ul, ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.tak-fordel-lista {
    background: #f0fff0;
    border: 1px solid #90ee90;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.tak-fordel-lista li::before {
    content: "✓";
    color: #228b22;
    font-weight: bold;
    margin-right: 5px;
}

.tak-nackdel-lista {
    background: #fff5f5;
    border: 1px solid #ffa0a0;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.tak-nackdel-lista li::before {
    content: "✗";
    color: #dc143c;
    font-weight: bold;
    margin-right: 5px;
}

/* Tabeller - mobilanpassade */
.tak-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border: 2px solid #d4c5a9;
    border-radius: 6px;
}

table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    background: white;
}

thead {
    background: linear-gradient(to bottom, #2c5aa0 0%, #1e3f73 100%);
    color: white;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

tbody tr:nth-child(even) {
    background: #f8f5f2;
}

tbody tr:hover {
    background: #e8dcc0;
}

/* Formulär */
.tak-form {
    background: linear-gradient(to bottom, #f9f9f9 0%, #f0f0f0 100%);
    border: 2px solid #d4c5a9;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    max-width: 600px;
}

.tak-form h3 {
    color: #d2691e;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.tak-form-group {
    margin-bottom: 18px;
}

.tak-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 13px;
}

.tak-form input,
.tak-form textarea,
.tak-form select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color 0.3s ease;
}

.tak-form input:focus,
.tak-form textarea:focus,
.tak-form select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 5px rgba(44, 90, 160, 0.3);
}

.tak-form textarea {
    height: 100px;
    resize: vertical;
}

.tak-form .tak-required {
    color: #dc143c;
}

/* Captcha för spam-skydd */
.tak-captcha {
    background: #fffacd;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
}

.tak-captcha strong {
    color: #2c5aa0;
    font-size: 18px;
}

/* Sidebar och innehållskolumner */
.tak-two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.tak-sidebar {
    background: linear-gradient(to bottom, #f8f5f2 0%, #f0e6d2 100%);
    border: 2px solid #d4c5a9;
    border-radius: 6px;
    padding: 20px;
}

.tak-sidebar h3 {
    color: #d2691e;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #d4c5a9;
    padding-bottom: 5px;
}

.tak-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.tak-sidebar li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.tak-sidebar li::before {
    content: "🏠";
    position: absolute;
    left: 0;
    top: 0;
}

.tak-sidebar a {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 13px;
}

.tak-sidebar a:hover {
    color: #d2691e;
    text-decoration: underline;
}

/* Footer */
.tak-footer {
    background: linear-gradient(to bottom, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 25px;
    margin-top: 30px;
    font-size: 12px;
}

.tak-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.tak-footer h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 14px;
    border-bottom: 1px solid #4a7bc8;
    padding-bottom: 5px;
}

.tak-footer ul {
    list-style: none;
    padding-left: 0;
    columns: 2;
    column-gap: 20px;
}

.tak-footer li {
    margin-bottom: 6px;
    break-inside: avoid;
}

.tak-footer a {
    color: #ccebff;
    text-decoration: none;
    font-size: 11px;
}

.tak-footer a:hover {
    color: white;
    text-decoration: underline;
}

.tak-footer-address {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 4px;
    text-align: right;
    border: 1px solid #4a7bc8;
}

.tak-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a7bc8;
    font-size: 11px;
    color: #ccebff;
}

/* Responsiv design */
@media (max-width: 768px) {
    .tak-container {
        border: none;
        box-shadow: none;
        margin: 0;
    }
    
    .tak-header {
        padding: 15px;
    }
    
    .tak-logo {
        font-size: 24px;
    }
    
    .tak-menu-toggle {
        display: block;
    }
    
    .tak-nav {
        display: none;
        margin: 10px -15px 0 -15px;
    }
    
    .tak-nav.active {
        display: block;
    }
    
    .tak-nav ul {
        flex-direction: column;
    }
    
    .tak-nav li {
        border-right: none;
        border-bottom: 1px solid #1e3f73;
    }
    
    .tak-content {
        padding: 15px;
    }
    
    .tak-hero {
        padding: 20px 15px;
    }
    
    .tak-hero h1 {
        font-size: 26px;
    }
    
    .tak-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tak-footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tak-footer-address {
        text-align: left;
    }
    
    .tak-footer ul {
        columns: 1;
    }
    
    .tak-form {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .tak-logo {
        font-size: 20px;
    }
    
    .tak-hero h1 {
        font-size: 22px;
    }
    
    .tak-hero p {
        font-size: 14px;
    }
    
    .tak-cta {
        padding: 10px 20px;
        font-size: 12px;
        margin: 3px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 16px;
    }
}

/* Tillgänglighet och fokusindikationer */
.tak-cta:focus,
.tak-form input:focus,
.tak-form textarea:focus,
.tak-form select:focus,
.tak-nav a:focus {
    outline: 3px solid #ff6b35;
    outline-offset: 2px;
}

/* Print-vänlig styling */
@media print {
    .tak-header,
    .tak-nav,
    .tak-cta,
    .tak-form,
    .tak-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .tak-container {
        box-shadow: none;
        border: none;
    }
}