/* Blaues, modernes, professionelles Unternehmensdesign */

:root {
    --blue1: #0a3d62;
    --blue2: #1e5fa3;
    --blue3: #74b9ff;
    --white: #ffffff;
    --light: #f4f8ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: var(--light);
    color: var(--blue1);
}

/* NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue2);
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--blue3);
}

/* HERO BANNER */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--blue1), var(--blue2));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 58px;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--blue3);
    border-radius: 8px;
    text-decoration: none;
    color: var(--blue1);
    font-weight: 600;
    transition: 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
}

.btn:hover {
    background: var(--white);
    transform: translateY(-3px);
}

/* PAGE SPACING */
section {
    padding: 120px 60px;
}

/* FOOTER */
footer {
    background: var(--blue1);
    color: var(--white);
    padding: 40px;
    text-align: center;
    margin-top: 80px;
}

/* SERVICES & ICONS */
.services {
    padding: 80px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--blue1);
}

.services p.lead {
    text-align: center;
    color: rgba(10,61,98,0.8);
    margin-bottom: 40px;
    font-size: 16px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(244,248,255,0.9) 100%);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(14,30,60,0.08);
    border: 1px solid rgba(30,95,163,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(10,61,98,0.15);
}

.service-icon {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, var(--blue3), rgba(30,95,163,0.2));
    color: var(--white);
    box-shadow: 0 6px 18px rgba(30,95,163,0.08);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, var(--blue2), var(--blue3));
    box-shadow: 0 12px 30px rgba(10,61,98,0.2);
}

.service-card .title-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.service-card h3 {
    font-size: 20px;
    margin: 0 0 6px 0;
    color: var(--blue1);
}

.service-card p {
    font-size: 15px;
    color: rgba(10,61,98,0.85);
    line-height: 1.5;
    margin: 0;
}

.service-card p a {
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.service-card p a:hover {
    color: var(--blue3);
    transform: translateY(-2px);
}

/* KONTAKTFORMULAR */
.contact-form-wrapper {
    margin-top: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.contact-form textarea {
    resize: vertical;
}

/* Feedback Kommentare */
.comments-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.comment-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(244,248,255,1) 100%);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(10,61,98,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10,61,98,0.15);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.comment-info h4 {
    font-size: 16px;
    margin: 0;
    color: var(--blue1);
}

.comment-time {
    font-size: 12px;
    color: gray;
}

.comment-card p {
    font-size: 15px;
    color: var(--blue1);
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   Erfolg/Fehler Meldungen
   =========================== */
.success-message, .success {
    color: #2ecc71;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-message, .error {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===========================
   Login / Registrierung Formulare
   =========================== */
.form-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(10,61,98,0.15);
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.auth-form input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--blue2);
    box-shadow: 0 0 8px rgba(30,95,163,0.2);
}

.auth-form .btn {
    background: linear-gradient(135deg, var(--blue2), var(--blue3));
    color: #fff;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form .btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--blue3), var(--blue2));
}

/* ===========================
   Kleiner Text & Links
   =========================== */
.small-text {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(10,61,98,0.8);
}

.small-text a {
    color: var(--blue2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.small-text a:hover {
    text-decoration: underline;
    color: var(--blue3);
}

/* ===========================
   Modal Login (falls benutzt)
   =========================== */
.modal {
    display: flex; /* per JS gesteuert */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(255,255,255,0.95);
    padding: 30px 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 30px rgba(10,61,98,0.2);
}

.modal-content input {
    width: 90%;
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--blue2);
    box-shadow: 0 0 8px rgba(30,95,163,0.2);
}

.modal-content button {
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--blue2), var(--blue3));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--blue3), var(--blue2));
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 600px) {
    .services {
        padding: 40px 20px;
    }
    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    .service-card h3 {
        font-size: 18px;
    }
    .service-card p {
        font-size: 14px;
    }
}

@media (max-width: 500px) {
    .form-container, .modal-content {
        padding: 25px;
        margin: 50px auto;
    }
    .auth-form input, .modal-content input {
        width: 95%;
    }
}

/* Login/Logout Ecke */
.user-area {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

.logged-in-box strong {
    color: #1e5fa3;
}

.logout-link {
    font-size: 13px;
    color: red;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

.login-link, .register-link {
    color: #1e5fa3;
    text-decoration: none;
}

.login-link:hover, .register-link:hover {
    text-decoration: underline;
}

/* Kleine Login/Logout Box oben rechts */
.user-info-box {
    position: absolute;
    top: 15px;
    right: 18px;
    text-align: right;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: white;
    z-index: 9999;
}

.user-info-box strong {
    color: #74b9ff;
}

.logout-small {
    font-size: 12px;
    color: #ff4b4b;
    text-decoration: none;
}

.logout-small:hover {
    text-decoration: underline;
}

.login-small,
.register-small {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.login-small:hover,
.register-small:hover {
    text-decoration: underline;
}
