* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-very-dark) 0%, var(--bg-dark) 50%, var(--bg-mid) 100%);
    margin: 0;
    padding: 0;
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent-bright);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ===== CONTAINER & LAYOUT ===== */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    padding-top: 80px;
}

/* ===== HEADER & NAVIGATION ===== */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(2, 13, 24, 0.99) 0%, rgba(10, 31, 46, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 135, 145, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0;
}

.logo-img {
    height: 140px;
    width: 140px;
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-img:hover {
    transform: scale(1.08);
}

.header-title {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header-title h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--accent-bright);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

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

nav a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-bright);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent-bright);
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.2rem;
    color: var(--accent-bright);
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(8, 40, 63, 0.5) 0%, rgba(50, 92, 117, 0.3) 100%);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(61, 135, 145, 0.2);
    margin-top: 1rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin: 0 0 1rem 0;
    color: var(--accent-bright);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-bright) 100%);
    color: var(--bg-very-dark);
    box-shadow: 0 4px 15px rgba(61, 135, 145, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 135, 145, 0.4);
    color: var(--bg-very-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-bright);
    border: 2px solid var(--accent-bright);
}

.btn-secondary:hover {
    background: rgba(61, 135, 145, 0.1);
    border-color: var(--primary-light);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(50, 92, 117, 0.3) 0%, rgba(24, 58, 79, 0.2) 100%);
    border: 1px solid rgba(61, 135, 145, 0.3);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(61, 135, 145, 0.6);
    background: linear-gradient(135deg, rgba(50, 92, 117, 0.5) 0%, rgba(24, 58, 79, 0.3) 100%);
    box-shadow: 0 12px 30px rgba(61, 135, 145, 0.2);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bright);
    filter: drop-shadow(0 2px 4px rgba(61, 135, 145, 0.3));
}

.service-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.service-card h3 {
    color: var(--accent-bright);
    font-size: 1.4rem;
    margin: 0.5rem 0 1rem 0;
}

.service-card p {
    color: var(--text);
    flex-grow: 1;
}

.service-price {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ===== PRICING SECTION ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(50, 92, 117, 0.3) 0%, rgba(24, 58, 79, 0.2) 100%);
    border: 1px solid rgba(61, 135, 145, 0.3);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 135, 145, 0.6);
    background: linear-gradient(135deg, rgba(50, 92, 117, 0.5) 0%, rgba(24, 58, 79, 0.3) 100%);
}

.pricing-card h3 {
    color: var(--accent-bright);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-calculator {
    margin-top: 2.5rem;
    padding: 2.2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(50, 92, 117, 0.2) 0%, rgba(24, 58, 79, 0.15) 100%);
    border: 1px solid rgba(61, 135, 145, 0.3);
}

.pricing-calculator h3 {
    color: var(--accent-bright);
    margin: 0 0 0.5rem 0;
}

.pricing-calculator p {
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.calculator-form {
    display: grid;
    gap: 1.25rem;
}

.calculator-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: flex-start;
}

.calculator-row label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.calculator-row input[type="number"],
.calculator-row select {
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(61, 135, 145, 0.4);
    background: rgba(8, 40, 63, 0.6);
    color: var(--text);
    font-size: 1rem;
}

#websitePagesRow {
    grid-column: 1 / -1;
}

#websitePagesRow fieldset {
    border: 1px solid rgba(61, 135, 145, 0.4);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 0;
}

#websitePagesRow legend {
    color: var(--accent-bright);
    font-weight: 700;
    padding: 0 0.5rem;
    font-size: 1rem;
}

#websitePagesRow label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-top: 0.8rem;
    color: var(--text);
    cursor: pointer;
    gap: 0.6rem;
}

#websitePagesRow label:first-of-type {
    margin-top: 1rem;
}

#websitePagesRow input[type="radio"] {
    margin-right: 0;
    accent-color: var(--primary-light);
    cursor: pointer;
    width: 18px;
    height: 18px;
}

#websitePagesRow small.hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(61, 135, 145, 0.2);
}

.options-row fieldset {
    border: 1px solid rgba(61, 135, 145, 0.4);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 0;
}

.options-row legend {
    color: var(--accent-bright);
    font-weight: 700;
    padding: 0 0.5rem;
    font-size: 1rem;
}

.options-row label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-top: 0.8rem;
    color: var(--text);
    cursor: pointer;
    gap: 0.6rem;
}

.options-row label:first-of-type {
    margin-top: 1rem;
}

.options-row input[type="checkbox"],
.options-row input[type="radio"] {
    margin-right: 0.6rem;
    accent-color: var(--primary-light);
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.price-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(61, 135, 145, 0.12);
    border: 1px solid rgba(61, 135, 145, 0.2);
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.6;
}

.price-result span {
    font-weight: 700;
    color: var(--accent-bright);
}

.price-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.price {
    font-size: 2.5rem;
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-card {
    background: linear-gradient(135deg, rgba(50, 92, 117, 0.3) 0%, rgba(24, 58, 79, 0.2) 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(61, 135, 145, 0.2);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(61, 135, 145, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
}

.portfolio-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 135, 145, 0.25) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.portfolio-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card h3 {
    color: var(--accent-bright);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.portfolio-card p {
    color: var(--text);
    flex-grow: 1;
    font-size: 0.95rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.portfolio-tag {
    background: rgba(61, 135, 145, 0.2);
    color: var(--primary-light);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== PORTFOLIO DEMO RIBBON (Skalierbar in rem) ===== */
.demo-ribbon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 7.5rem;   
    height: 7.5rem;  
    overflow: hidden;
    z-index: 20;
    pointer-events: none;
}

.demo-ribbon {
    position: absolute;
    display: block;
    width: 11.25rem; 
    padding: 0.375rem 0;
    background-color: var(--accent-bright);
    color: var(--bg-very-dark);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
    
    
    left: -2.8125rem;
    top: 1.875rem;   
    
    transform: rotate(-45deg);
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.4);
    letter-spacing: 0.0313rem; 
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    background: linear-gradient(135deg, rgba(50, 92, 117, 0.2) 0%, rgba(61, 135, 145, 0.1) 100%);
    border-radius: 14px;
    padding: 3rem 2rem;
    max-width: 700px;
    margin: 3rem auto 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(61, 135, 145, 0.3);
    background: rgba(8, 40, 63, 0.5);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(8, 40, 63, 0.8);
    box-shadow: 0 0 0 3px rgba(61, 135, 145, 0.1);
}

.contact-form textarea {
    grid-column: 1 / -1;
    min-height: 150px;
}

.form-submit {
    grid-column: 1 / -1;
    align-self: center;
}

#formMessage {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

#formMessage.success {
    background: rgba(61, 135, 145, 0.2);
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-very-dark);
    border-top: 1px solid rgba(61, 135, 145, 0.2);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer p {
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        width: 96%;
    }

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

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

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    main {
        padding-top: 70px;
    }

    .header-flex {
        gap: 1rem;
    }

    .logo-img {
        height: 40px;
        width: 40px;
    }

    .header-title h1 {
        font-size: 1.3rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 0;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

    .hero p {
        font-size: 1.05rem;
    }

    .services-grid,
    .pricing-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .tech-categories {
        gap: 1.5rem;
    }

    .pricing-calculator {
        padding: 1.5rem;
    }

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

    .contact-container {
        padding: 2rem 1.5rem;
    }

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

    .form-submit {
        grid-column: auto;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 60px;
    }

    .container {
        width: 100%;
        padding: 0 1rem;
    }

    .header-flex {
        padding: 0.8rem 0;
        flex-wrap: wrap;
    }

    .logo-img {
        height: 35px;
        width: 35px;
    }

    .header-title h1 {
        font-size: 1.2rem;
    }

    .header-sub {
        font-size: 0.75rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-very-dark);
        padding: 1rem;
        border-bottom: 1px solid rgba(61, 135, 145, 0.2);
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section {
        padding: 2rem 0;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .service-card,
    .pricing-card {
        padding: 1.5rem 1rem;
    }

    .tech-list li {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .portfolio-image {
        height: 180px;
        font-size: 2.5rem;
    }

    .contact-container {
        padding: 1.5rem 1rem;
        margin: 2rem auto 0;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem 0.8rem;
        font-size: 16px;
    }

    footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .header-title h1 {
        font-size: 1.1rem;
    }

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

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
