/* Base styles */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #222;
    color: #fff;
}

/* Hero section base styles */
.hero-base {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
}
.hero {
    background: url('Startseite/cfc6d98b9802cf886546377ebc4adf37.jpg') center center/cover no-repeat;
}
.referenzen-hero {
    background: url('Referenzen/0135eae2583816896e07082942cab08e.jpg') center center/cover no-repeat;
}
.software-hero {
    background: url('Software/software.png') center center/cover no-repeat;
}

/* Header styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px 24px 24px;
    background: none;
}

/* Logo section */
.logo-section {
    display: flex;
    align-items: center;
    background: none;
}
.logo-section img {
    height: 60px;
    margin-right: 18px;
}
.logo-section .company-name {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

/* Welcome section */
.welcome-gap {
    width: 80%;
    margin: 0 auto;
}
.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 60px 20px 40px 20px;
}
.welcome h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 8px #000;
}
.welcome p {
    font-size: 1.2rem;
    margin: 8px 0;
    color: #fff;
    text-shadow: 0 2px 8px #000;
}

/* Content wrapper and white block */
.content-wrapper {
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    background: #fff;
}
.white-block {
    background: inherit;
    color: #222;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    padding: 40px 0 32px 0;
}
.white-block h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 18px;
    padding-left: 32px;
    padding-right: 32px;
}
.white-block p {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-left: 32px;
    padding-right: 32px;
    white-space: pre-line; /* Respect line breaks and paragraphs */
    line-height: 1.7;
}
/* Add spacing for paragraphs and line breaks inside .white-block */
.white-block p + p {
    margin-top: 1em;
}
.white-block br {
    display: block;
    height: 1.2em;    /* Add vertical space for line breaks */
    content: "";
}
.white-block .team {
    margin-top: 32px;
    font-weight: bold;
    padding-left: 32px;
    padding-right: 32px;
}
/* Datenschutz extra selectors */
.white-block ul, .white-block li, .white-block pre {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-left: 32px;
    padding-right: 32px;
    white-space: pre-line;
}

/* Leistungen grid */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, auto);
    gap: 24px;
    padding: 32px;
}
.leistung-block {
    background: #f7f7f7;
    color: #222;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 18px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 220px;
}
.leistung-block h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #00bcd4;
}
.leistung-block p {
    margin: 0;
    font-size: 0.98rem;
    color: #222;
}

/* Referenzen grid */
.referenzen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 32px;
    padding: 32px;
    justify-items: center;
    align-items: center;
}
.referenzen-grid img {
    width: 180px;
    height: 90px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 12px;
    display: block;
}

/* Kontakt page columns and form */
.kontakt-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 32px;
    padding-left: 32px;
    padding-right: 32px;
}
.kontakt-left, .kontakt-right {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}
.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f7f7f7;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.kontakt-form label {
    font-weight: 500;
    margin-bottom: 4px;
}
.kontakt-form input,
.kontakt-form textarea {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
.kontakt-form textarea {
    resize: vertical;
    min-height: 60px;
}
.kontakt-form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kontakt-form button {
    background: #00bcd4;
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.kontakt-form button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Kontakt maps */
.maps-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    height: 400px;
}
.maps-embed {
    width: 60vw;
    max-width: 60%;
    height: 400px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    margin-top: 16px;
}

/* Login page form */
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 60px 20px 40px 20px;
}
.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 8px #000;
}
.login-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}
.login-form {
    background: #fff;
    color: #222;
    padding: 32px 24px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.login-form label {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.login-form input {
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
}
.login-form button {
    padding: 10px 0;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
}
.login-form button:hover {
    background: #00bcd4;
}

/* Cookie banner */
#cookie-banner {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#cookie-banner .cookie-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: #000;
}
#cookie-banner h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #222;
}
#cookie-banner p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #222;
}
#cookie-banner a {
    color: #0078d4;
    text-decoration: underline;
}
#accept-cookies {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #0078d4;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
}

/* Hamburger menu styles */
.menu-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}
.hamburger {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    outline: none;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #fff; /* Hamburger is white */
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown menu styles */
.dropdown-menu {
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    color: #222;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    z-index: 10000;
    padding: 12px 0;
}
.dropdown-menu.show {
    display: flex;
}
.dropdown-menu a {
    color: #222;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: none;
}
.dropdown-menu a:hover {
    background: #00bcd4;
    color: #fff;
}

/* Footer styles: white background, dark grey text, three stacked rows */
.site-footer {
    background: #fff; /* white background */
    color: #4a4a4a; /* dark grey text */
    padding: 16px 20px 8px 20px; /* reduced top/bottom padding */
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    font-family: Arial, Helvetica, sans-serif;
}
.site-footer .footer-row {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* remove extra padding */
    font-size: 0.98rem;
    line-height: 1.3; /* tighter line height */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    min-height: unset;
}
.site-footer .footer-col {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0;
    min-height: unset;
}
.site-footer .footer-col:first-child {
    padding-left: 10%;
    justify-content: flex-start;
}
.site-footer .footer-col:nth-child(2) {
    justify-content: center;
    text-align: center;
}
.site-footer .footer-col:last-child {
    padding-right: 10%;
    justify-content: flex-end;
}
.site-footer a {
    color: inherit;
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: #00bcd4;
    text-decoration: underline;
}
@media (max-width: 700px) {
    .site-footer {
        padding: 10px 6px 4px 6px;
    }
    .site-footer .footer-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        font-size: 0.95rem;
        line-height: 1.3;
    }
    .site-footer .footer-col {
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }
    .site-footer .footer-col:nth-child(2) {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .referenzen-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 24px;
        padding: 18px;
    }
    .referenzen-grid img {
        width: 140px;
        height: 70px;
        padding: 8px;
    }
    .leistungen-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}
@media (max-width: 900px) {
    .kontakt-columns {
        flex-direction: column;
        gap: 20px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .kontakt-left, .kontakt-right {
        max-width: 100%;
    }
}
@media (max-width: 700px) {
    .header, .white-block {
        padding-left: 10px;
        padding-right: 10px;
    }
    .logo-section .company-name {
        font-size: 1.3rem;
    }
    nav {
        gap: 14px;
    }
    .welcome h1 {
        font-size: 1.5rem;
    }
    .white-block h2,
    .white-block p,
    .white-block .team {
        padding-left: 10px;
        padding-right: 10px;
    }
    .referenzen-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
        gap: 14px;
        padding: 8px;
    }
    .referenzen-grid img {
        width: 100%;
        height: 60px;
        padding: 4px;
    }
    .leistungen-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 18px;
        padding: 10px;
    }
    .content-wrapper {
        width: 100%;
    }
    .welcome-gap {
        width: 100%;
    }
    .maps-embed {
        height: 220px;
    }
    .login-form {
        min-width: 98vw;
        padding: 18px 8px;
    }
    .menu-container {
        height: 40px;
    }
    .dropdown-menu {
        min-width: 98vw;
        right: 0;
        left: 0;
        border-radius: 0;
        padding: 8px 0;
    }
    .dropdown-menu a {
        padding: 10px 12px;
        font-size: 1rem;
    }
    .hamburger {
        width: 32px;
        height: 32px;
    }
    .hamburger span {
        width: 22px;
        height: 3px;
        margin: 3px 0;
    }
    .leistung-block h3 {
        font-size: 0.98rem;
    }
}

