:root {
    --primary: #1799bc;
    --primary-dark: #0e6e8a;
    --primary-light: #cdeaf3;
    --accent: #20c0f0;
    --dark: #1a2128;
    --dark-2: #242c36;
    --text: #1a2128;
    --text-muted: #555;
    --text-on-dark: #f4f7f9;
    --text-on-dark-muted: #aab4bf;
    --bg: #ffffff;
    --bg-alt: #f4f7f9;
    --border: #e5e7eb;
    --max-width: 1100px;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}
@view-transition {
    navigation: auto;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-top: 2rem;
}

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

/* Layout container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header / Nav */
.site-header {
    background: var(--dark);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 10;
    color: var(--text-on-dark);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand img {
    height: 56px;
    width: auto;
    display: block;
}

.brand:hover {
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    color: var(--text-on-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.site-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--text-on-dark);
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-decoration: none;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 0 1.5rem 0;
}

.hero .tagline {
    display: inline-block;
    background: var(--dark);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.15s, transform 0.05s;
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn--ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
}

.btn--ghost:hover {
    background: var(--primary);
    color: #fff;
}

/* Main */
main {
    flex: 1;
    padding: 3rem 0;
}

main p {
    color: var(--text-muted);
}

main h2 {
    color: var(--text);
}

/* Card grid (Projekte/Produkte) */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 2rem;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 18px rgba(23, 153, 188, 0.18);
}

.card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.card p {
    margin: 0 0 1rem 0;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-list li {
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
}

.card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Tech tags (Projekt-Detailseiten) */
.tech-tags {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags li {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Feature list (Über uns) */
.features {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 2rem;
}

.feature {
    padding: 1.25rem;
    border-left: 3px solid var(--primary);
    background: var(--bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.feature h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.feature p {
    margin: 0;
    font-size: 0.95rem;
}

/* Impressum sections */
.legal h2 {
    color: var(--primary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.4rem;
}

.legal address {
    font-style: normal;
    background: var(--bg-alt);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    display: inline-block;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--text-on-dark-muted);
    border-top: 3px solid var(--accent);
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.site-footer a {
    color: var(--text-on-dark);
}

.site-footer a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .brand img {
        height: 44px;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        border-bottom: 3px solid var(--accent);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .site-nav.open {
        max-height: 400px;
    }

    .site-nav ul {
        flex-direction: column;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}
