/* ==============================================
   ASIKATEC Softwarehaus – Frontend Stylesheet
   ============================================== */

:root {
    --dark: #1A1A1A;
    --dark-rgb: 26, 26, 26;
    --body-bg: #0D0D0D;
    --text-color: #333;
    --text-muted: #6c757d;
    --surface-light: #f8f9fa;
    --border-color: #dee2e6;

    /* Bootstrap-Primärfarbe auf Akzentfarbe überschreiben */
    --bs-primary: var(--primary);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-link-color: var(--primary);
    --bs-link-color-rgb: var(--primary-rgb);
    --bs-link-hover-color: var(--primary-dark);
}

/* ── Bootstrap btn-primary → Orange ── */
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-active);
    --bs-btn-active-border-color: var(--primary-active);
    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
    --bs-btn-disabled-bg: var(--primary);
    --bs-btn-disabled-border-color: var(--primary);
}

/* ── Bootstrap btn-outline-primary → Orange ── */
.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
}

/* ── Formularfelder: Fokus-Ring Orange statt Blau ── */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.2);
}

/* ── Checkbox/Radio: Haken Orange ── */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

* { scroll-behavior: smooth; }

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
}

/* ── NAVBAR ── */
#mainNavbar { background: rgba(var(--dark-rgb),0.95); }
.navbar {
    padding: 1rem 0;
    transition: background 0.3s, padding 0.3s;
}
.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff !important;
}
.navbar-brand img {
    height: 40px;
    width: auto;
}
.nav-link { font-weight: 500; }

/* ── HERO ── */
#hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D1B08 50%, #1A1A1A 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb),0.15) 0%, transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
}
#hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-rgb),0.12) 0%, transparent 70%);
    bottom: -50px; left: 100px;
    border-radius: 50%;
}
#hero .container { position: relative; z-index: 1; }
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}
.hero-title span { color: var(--primary); }
.hero-subtitle { color: rgba(255,255,255,0.7); font-size: 1.15rem; }
.code-block {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(var(--primary-rgb),0.3);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 0.9rem;
}
.code-block .comment { color: #6a9955; }
.code-block .keyword { color: #c586c0; }
.code-block .string { color: #ce9178; }
.floating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb),0.1);
    border: 1px solid rgba(var(--primary-rgb),0.3);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.floating-badge .badge-dot { font-size: 0.5rem; }
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 3rem;
}
.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}
.hero-stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.hero-stat-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,0.2);
}
.hero-stat-check {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ── SECTIONS ── */
section { padding: 100px 0; }
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.section-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb),0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
/* Varianten für dunkle Hintergründe */
.section-badge--dark {
    background: rgba(var(--primary-rgb),0.15);
    color: var(--accent);
}
.section-subtitle--white { color: rgba(255,255,255,0.6); }

/* ── ÜBER UNS ── */
#ueber-mich { background: var(--surface-light); }
.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
}
.stat-number i { font-size: 2.2rem; }
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

/* Profil-Karte */
.profile-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 3rem;
    text-align: center;
}
.profile-avatar {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary), var(--brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3.5rem;
    color: #fff;
}

/* ── LEISTUNGEN ── */
#leistungen { background: #fff; }
.service-card {
    border: none;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(var(--primary-rgb),0.15); }
.service-icon {
    width: 60px; height: 60px;
    background: rgba(var(--primary-rgb),0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

/* ── PORTFOLIO ── */
#portfolio { background: var(--surface-light); }
.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background: #fff;
}
.portfolio-card:hover { transform: translateY(-8px); }
.portfolio-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}
.portfolio-img--gradient {
    background: linear-gradient(135deg, var(--primary), var(--brown));
}
.portfolio-tag {
    display: inline-block;
    background: rgba(var(--primary-rgb),0.1);
    color: var(--primary);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
}

/* ── TECHNOLOGIEN ── */
#technologien { background: var(--dark); color: #fff; }
.tech-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.tech-item:hover {
    background: rgba(var(--primary-rgb),0.2);
    border-color: var(--primary);
    transform: translateY(-5px);
}
.tech-item i { font-size: 2.5rem; margin-bottom: 0.7rem; }
.tech-item span { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Tech-Icon Markenfarben */
.tech-icon-html     { color: #E44D26; }
.tech-icon-css      { color: #2965F1; }
.tech-icon-js       { color: #F7DF1E; }
.tech-icon-php      { color: #8892BF; }
.tech-icon-bs       { color: #7952B3; }
.tech-icon-sql      { color: #336791; }
.tech-icon-mac      { color: #A2AAAD; }
.tech-icon-git      { color: #F05032; }
.tech-icon-linux    { color: #FCC624; }
.tech-icon-windows  { color: #00ADEF; }
.tech-icon-server   { color: var(--primary); }
.tech-icon-hardware { color: var(--brown); }

/* ── FAQ ── */
#faq { background: #fff; }
.accordion-button:not(.collapsed) {
    background: rgba(var(--primary-rgb),0.05);
    color: var(--primary);
}
.accordion-item { border-radius: 12px !important; overflow: hidden; margin-bottom: 0.75rem; border: 1px solid var(--border-color); }
.accordion-button:focus { box-shadow: none; }

/* ── KONTAKT ── */
#kontakt { background: var(--dark); color: #fff; }
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-icon {
    width: 48px; height: 48px;
    background: rgba(var(--primary-rgb),0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}
#kontakt .form-control, #kontakt .form-select {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
#kontakt .form-control::placeholder { color: rgba(255,255,255,0.4); }
#kontakt .form-control:focus { background: rgba(255,255,255,0.1); border-color: var(--accent); }

/* Kontaktformular Feedback */
#kontakt-success {
    display: none;
    background: rgba(25,135,84,0.12);
    border: 1px solid rgba(25,135,84,0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.kontakt-success-icon { color: #4ade80; }
.kontakt-success-msg { color: rgba(255,255,255,0.6); margin: 0; }
#kontakt-error {
    display: none;
    background: rgba(220,53,69,0.12);
    border: 1px solid rgba(220,53,69,0.3);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.25rem;
}
.kontakt-error-icon { color: #ff6b7a; }
.kontakt-error-text { color: #ff6b7a; font-size: 0.9rem; }
.contact-info-detail { color: rgba(255,255,255,0.6); }
#kontakt .form-check-label { color: rgba(255,255,255,0.6); }
#kontakt .form-check-label a { color: var(--primary); }
#kontaktBtnSpinner { display: none; }

/* Datenschutz-Modal */
#datenschutzModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.datenschutz-modal-inner {
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.datenschutz-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.datenschutz-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}
.datenschutz-modal-title i { color: var(--primary); }
.datenschutz-modal-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.datenschutz-modal-body {
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}
.datenschutz-modal-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.3);
}
.datenschutz-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}
.datenschutz-modal-link {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.datenschutz-modal-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: #fff;
    padding: 0.55rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

/* ── KUNDENBEREICH / LOGIN ── */
#kundenbereich { background: linear-gradient(135deg, var(--primary), var(--brown)); color: #fff; padding: 80px 0; }
.login-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}
/* Kundenbereich-Elemente */
.kb-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kb-feature-text { color: rgba(255,255,255,0.85); }
.kb-section-badge { background: rgba(255,255,255,0.15); color: #fff; }
.kb-login-desc { color: rgba(255,255,255,0.8); }
.kb-login-subdesc { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.kb-form-link { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.kb-register-text { color: rgba(255,255,255,0.6); text-align: center; font-size: 0.9rem; }
.kb-register-text a { color: #fff; font-weight: 600; }
#kundenbereich .form-control,
#kundenbereich .form-select {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
#kundenbereich .input-group .btn {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
#kundenbereich hr { border-color: rgba(255,255,255,0.2); }

/* ── FOOTER ── */
footer {
    background: var(--body-bg);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 20px;
}
footer h5 { color: #fff; font-weight: 700; margin-bottom: 1.2rem; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--primary); }
.footer-links li { margin-bottom: 0.5rem; list-style: none; }
.footer-divider { border-color: rgba(255,255,255,0.1); }
.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    margin-right: 8px;
}
.social-btn:hover { background: var(--primary); color: #fff; }
.footer-logo { height: 32px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.2rem; }
.footer-text { font-size: 0.9rem; }
.footer-icon { color: var(--primary); }
.footer-meta { font-size: 0.85rem; }

/* ── BACK TO TOP ── */
#backToTop {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb),0.4);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s;
}
#backToTop:hover { transform: translateY(-3px); }

/* ── UTILS ── */
.btn-primary {
    border-radius: 10px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 10px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-outline-light { border-radius: 10px; padding: 0.7rem 1.8rem; font-weight: 600; }
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-primary { color: var(--primary) !important; }

/* ── LEGAL PAGES ── */
.legal-page { padding: 120px 0 80px; min-height: 60vh; background: #fff; }
.legal-page h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.legal-page h2 { font-size: 1.2rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.5rem; color: var(--dark); }
.legal-page h3 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.4rem; color: var(--text-color); }
.legal-page p, .legal-page ul, .legal-page address { font-size: 0.95rem; color: #555; line-height: 1.8; font-style: normal; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page a { color: var(--primary); }
.legal-breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.legal-breadcrumb a { color: var(--primary); text-decoration: none; }

/* ── 404 PAGE ── */
.error-page { padding: 160px 0 100px; min-height: 70vh; text-align: center; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-title { font-size: 1.8rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.error-text { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
