/*
Theme Name: Kural
Theme URI: https://kural.ch
Author: Kural
Description: Modernes, minimalistisches One-Page Theme für IT-Unternehmen. Responsive, schnell und SEO-freundlich.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kural
*/

/* ========== CSS Variables ========== */
:root {
    --color-primary: #0d47a1;
    --color-primary-dark: #0a3a82;
    --color-primary-light: #1565c0;
    --color-accent: #1976d2;
    --color-text: #1a1a2e;
    --color-text-muted: #555;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --color-success: #2e7d32;
    --color-error: #c62828;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: 0.25s ease;
    --header-height: 72px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--color-primary-light);
}

ul {
    list-style: none;
}

/* ========== Utilities ========== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    max-height: 40px;
    width: auto;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.site-title:hover {
    color: var(--color-primary);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-primary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.header-cta {
    margin-left: 0.5rem;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(160deg, #e8f0fe 0%, #f8fafc 50%, #ffffff 100%);
    padding: 4rem 0 2.5rem;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-visual {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.hero-visual-box {
    width: 100%;
    max-width: 480px;
    height: 160px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius);
    opacity: 0.12;
    position: relative;
    overflow: hidden;
}

.hero-visual-box::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    opacity: 0.4;
}

/* ========== Leistungen ========== */
.leistungen {
    background: var(--color-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #e3f2fd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    color: var(--color-primary);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 650;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========== Über uns ========== */
.ueber-uns {
    background: var(--color-bg);
}

.ueber-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.ueber-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.75;
}

/* ========== Warum wir ========== */
.warum-wir {
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature {
    text-align: center;
    padding: 1.5rem 1rem;
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature h3 {
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 0.4rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ========== Kontakt ========== */
.kontakt {
    background: var(--color-bg);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

.kontakt-info h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.kontakt-info p {
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
}

.kontakt-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kontakt-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.kontakt-item strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 0.15rem;
}

.kontakt-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Form */
.contact-form-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 550;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.form-group label .required {
    color: var(--color-error);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fafbfc;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
    background: var(--color-white);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 1.25rem 0 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.form-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.form-checkbox a {
    text-decoration: underline;
}

.form-message {
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.form-message.success {
    background: #e8f5e9;
    color: var(--color-success);
    border: 1px solid #c8e6c9;
}

.form-message.error {
    background: #ffebee;
    color: var(--color-error);
    border: 1px solid #ffcdd2;
}

/* ========== Footer ========== */
.site-footer {
    background: #0a1929;
    color: #94a3b8;
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .footer-logo {
    max-height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand .footer-company {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-col a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-bottom {
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #94a3b8;
}

.footer-bottom a:hover {
    color: var(--color-white);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list a {
        display: block;
        padding: 0.9rem 0;
    }

    .nav-list a::after {
        display: none;
    }

    .header-cta {
        width: 100%;
        margin-left: 0;
    }

    .header-cta .btn {
        width: 100%;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-lead {
    margin-bottom: 0;
        font-size: 1.05rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
    justify-content: center;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
