/* ==========================================================================
   Scient Data - Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin-top: 0;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Hamburger menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger animation when open */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
}

.main-nav a:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Dropdown */
.main-nav .has-children {
    position: relative;
}

.main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    z-index: 102;
}

.main-nav .has-children:hover .submenu {
    display: flex;
}

.main-nav .submenu li {
    padding: 0;
}

.main-nav .submenu a {
    display: block;
    padding: 8px 20px;
}

.main-nav .submenu a:hover {
    background: #f5f5f5;
}

/* --------------------------------------------------------------------------
   Hero (Forside)
   -------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 80px 20px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero .container {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero .teknologier {
    font-size: 1.1rem;
    color: #88d9e6;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 400px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0052a3;
    text-decoration: none;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Om-sektion (forside)
   -------------------------------------------------------------------------- */
.om-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.om-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.om-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.om-text {
    flex: 2;
}

.om-image {
    flex: 1;
}

.om-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --------------------------------------------------------------------------
   Page Content
   -------------------------------------------------------------------------- */
.page-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero {
    margin-bottom: 40px;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
}

.page-body {
    display: flex;
    gap: 40px;
}

.text-content {
    flex: 2;
}

.sidebar-image {
    flex: 1;
}

/* --------------------------------------------------------------------------
   Ydelse (Excel/Access)
   -------------------------------------------------------------------------- */
.ydelse-hero {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ydelse-hero .hero-text {
    flex: 2;
}

.ydelse-hero .hero-image {
    flex: 1;
    text-align: center;
}

.ydelse-hero .hero-image img {
    max-width: 250px;
    border-radius: 8px;
}

.ydelse-hero .lead {
    font-size: 1.2rem;
    color: #555;
}

.ydelse-hero .intro {
    margin: 20px 0;
}

.samarbejdsmodeller {
    margin: 40px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.modeller-liste {
    padding-left: 20px;
}

.modeller-liste li {
    margin-bottom: 20px;
}

.modeller-liste strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.prisinfo {
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   CTA Box
   -------------------------------------------------------------------------- */
.cta-box {
    background: #e8f4f8;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.cta-box h2 {
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Cases
   -------------------------------------------------------------------------- */
.cases {
    margin-top: 40px;
}

.case-liste {
    list-style: disc;
    padding-left: 20px;
}

.case-liste li {
    margin-bottom: 10px;
}

.case-content {
    display: flex;
    gap: 40px;
}

.case-text {
    flex: 2;
}

.case-image {
    flex: 1;
}

.back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.case-body {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* --------------------------------------------------------------------------
   Produkter
   -------------------------------------------------------------------------- */
.produkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.produkt-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.produkt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.produkt-card h2 {
    margin: 0;
    font-size: 1.3rem;
}

.produkt-card a {
    color: #333;
}

/* --------------------------------------------------------------------------
   Tabeller
   -------------------------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

table th,
table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
}

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

table tr:hover td {
    background: #f8f9fa;
}

table td:first-child {
    font-weight: 600;
    color: #1a1a2e;
}

/* Prisliste (gammel klasse, beholdes for bagudkompatibilitet) */
.prisliste table {
    margin-top: 20px;
}

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

.prisliste th {
    background: #f8f9fa;
    font-weight: 600;
}

.prisliste tr:hover {
    background: #f8f9fa;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.kontakt-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.kontakt-info address {
    font-style: normal;
    line-height: 1.8;
}

.kontakt-form .form-group {
    margin-bottom: 20px;
}

.kontakt-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 0;
    margin-top: 60px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaa;
    line-height: 1.8;
}

.footer-contact h3 {
    margin-bottom: 15px;
}

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

.footer-contact li {
    margin-bottom: 10px;
    color: #aaa;
    line-height: 1.6;
}

.footer-contact a {
    color: #88d9e6;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Header & Hamburger */
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        padding-top: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    
    .main-nav li {
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a {
        display: block;
        padding: 15px;
    }
    
    .main-nav .submenu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
    }
    
    .main-nav .has-children:hover .submenu {
        display: none;
    }
    
    .main-nav .has-children.active .submenu {
        display: block;
    }

    /* Hero (Forside) */
    .hero {
        padding: 40px 20px;
    }
    
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero .container {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        margin-top: 30px;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .hero .teknologier {
        font-size: 1rem;
    }

    /* Om-sektion */
    .om-section {
        padding: 40px 0;
    }
    
    .om-content {
        flex-direction: column;
        text-align: center;
    }
    
    .om-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .om-image img {
        max-width: 200px;
    }

    /* Ydelse */
    .ydelse-hero {
        flex-direction: column;
        padding: 25px;
        text-align: center;
    }
    
    .ydelse-hero .hero-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .ydelse-hero .hero-image img {
        max-width: 150px;
    }
    
    .samarbejdsmodeller {
        padding: 25px;
    }

    /* Page content */
    .page-content {
        padding: 30px 15px;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .page-body {
        flex-direction: column;
    }

    /* Cases */
    .case-content {
        flex-direction: column;
    }
    
    .case-image {
        order: -1;
        margin-bottom: 20px;
        text-align: center;
    }

    /* Kontakt */
    .kontakt-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .site-footer {
        margin-top: 40px;
        padding: 40px 0 0;
    }
    
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Tablet tweaks */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-inner {
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .ydelse-hero {
        gap: 30px;
    }
}
