﻿/* ============================================
   apano Onlinezeichnung – Modernes Redesign
   ============================================ */

/* --- Grundlayout --- */
body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #0A3B66;
    background-color: #f8fbfd;
    padding-top: 70px;
    padding-bottom: 40px;
    line-height: 1.6;
    min-height: 100vh;
}

.container.body-content {
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    margin-top: 90px;
}

/* --- Navigation --- */
.navbar-inverse {
    background-color: #0A3B66;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.navbar-brand img {
    height: 48px;
    transition: transform 0.3s ease;
}

    .navbar-brand img:hover {
        transform: scale(1.05);
    }

.navbar-toggle .icon-bar {
    background-color: #fff;
}

/* --- Header-Call-To-Action --- */
.telicon a[href^="tel:"] {
    color: #0A3B66;
    background-color: #e8f4fa;
    border-radius: 6px;
    padding: 8px 15px;
    border: 1px solid #cbe4ef;
    transition: background-color 0.3s ease;
}

    .telicon a[href^="tel:"]:hover {
        background-color: #d4ecf8;
    }

/* --- Buttons --- */
.btn-primary {
    background-color: #0A3B66;
    border-color: #0A3B66;
    color: #fff;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #08406f;
        border-color: #06345c;
    }

.btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 24px;
}

    .btn-success:hover {
        background-color: #146c43 !important;
    }

.btn-warning {
    background-color: #ffb300 !important;
    border-color: #ffb300 !important;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 24px;
}

    .btn-warning:hover {
        background-color: #e69a00 !important;
    }

.btn-default {
    background-color: #eef2f5;
    color: #0A3B66;
    border-color: #d6e3ec;
    transition: all 0.3s ease;
}

    .btn-default:hover {
        background-color: #e1edf5;
    }

/* --- Tabellen & Boxen --- */
.table {
    background-color: #fff;
    border: 1px solid #e3e9ef;
    border-radius: 6px;
    overflow: hidden;
}

.well {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* --- Formularfelder --- */
.form-control {
    border: 1px solid #cfdce5;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:focus {
        border-color: #0A3B66;
        box-shadow: 0 0 5px rgba(10,59,102,0.2);
    }

label, span[id*="Label"] {
    font-weight: 500;
    margin-bottom: 3px;
}

/* --- Pflichtfeldhinweis --- */
p {
    margin-top: 20px;
    font-size: 0.9rem;
}

    p::before {
        content: "";
        display: block;
        height: 1px;
        width: 100%;
        background: #ddeaf1;
        margin-bottom: 10px;
    }

/* --- Wizard Steps (horizontal) --- */
.sidebartable {
    width: 100%;
    border: none;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

    .sidebartable td {
        border: none;
        padding: 0;
    }

    .sidebartable a {
        display: inline-block;
        width: 180px;
        padding: 10px 0;
        border-radius: 50px;
        font-weight: bold;
        text-decoration: none !important;
        color: #fff;
        background-color: #0A3B66;
        transition: all 0.3s ease;
    }

        .sidebartable a:hover, .sidebartable a:focus {
            background-color: #11578f;
            transform: translateY(-2px);
        }

        .sidebartable a.active,
        .sidebartable a[aria-current="step"] {
            background-color: #198754;
            box-shadow: 0 0 10px rgba(25,135,84,0.4);
        }

        .sidebartable a.disabled {
            background-color: #ccc;
            color: #666;
            pointer-events: none;
        }

/* --- Tabellenstruktur --- */
.wphgtabelle th {
    background-color: #0A3B66;
    color: #fff;
    font-weight: 500;
}

.wphgtabelle td, .wphgtabelle th {
    vertical-align: middle;
    text-align: center;
}

/* --- PDF-Viewer & Dokumente --- */
object, embed {
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 30px;
}

#MainContent_Wizard1_PanelRESULTDOCS a {
    display: block;
    margin: 8px 0;
    font-size: 16px;
    color: #0A3B66;
    text-decoration: none;
    transition: all 0.2s ease;
}

    #MainContent_Wizard1_PanelRESULTDOCS a:hover {
        text-decoration: underline;
        color: #11578f;
    }

/* --- Listen (Hinweise) --- */
ul {
    margin-top: 10px;
    padding-left: 20px;
}

    ul li {
        margin-bottom: 8px;
    }

/* --- Footer --- */
footer {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #d9e4ea;
    padding-top: 15px;
    margin-top: 30px;
}

    footer a {
        color: #0A3B66;
        text-decoration: none;
        font-weight: 500;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* --- Bitte warten Overlay --- */
#pleaseWait {
    visibility: hidden;
    color: white;
    background-color: rgba(0,0,0,0.85);
    width: 100%;
    height: 100%;
    font-size: xx-large;
    position: fixed;
    z-index: 1000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* --- Shake Animation --- */
@keyframes shake-animation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    15% {
        transform: translate(2px, 2px) rotate(1deg);
    }

    30% {
        transform: translate(-2px, -1px) rotate(-1deg);
    }

    45% {
        transform: translate(2px, 1px) rotate(0.8deg);
    }

    60% {
        transform: translate(-1px, 1px) rotate(-0.8deg);
    }

    75% {
        transform: translate(1px, -1px) rotate(0deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.shakeelement:hover {
    animation: shake-animation 0.8s ease;
}

/* --- Abbruchseite (Fehler) --- */
.error-icon {
    width: 90px;
    height: 90px;
    background-color: #c62828;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 0 10px rgba(198,40,40,0.4);
}

    .error-icon::before {
        content: "⚠️";
        font-size: 42px;
    }

#MainContent_LabelError {
    display: inline-block;
    color: #c62828;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: #fdecea;
    border: 1px solid #f5c2c7;
    padding: 20px 25px;
    border-radius: 10px;
    line-height: 1.5;
    box-shadow: 0 0 10px rgba(198,40,40,0.1);
    animation: pulseError 1.2s ease-in-out 1;
}

@keyframes pulseError {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Responsives Verhalten --- */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    h2 {
        font-size: 1.2rem;
    }

    .container.body-content {
        padding: 20px;
        margin-top: 80px;
    }

    .sidebartable a {
        width: 100px;
        font-size: 14px;
    }

    object, embed {
        height: 500px !important;
    }

    #MainContent_LabelError {
        font-size: 1rem;
        padding: 15px;
    }

    .error-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .telicon a[href^="tel:"] {
        display: block;
        margin-top: 10px;
    }
}

/* 1) Buttons-Container (Zelle) einfärben */
.sidebartable td.btn.btn-default {
    background-color: #0A3B66 !important;
    border-radius: 50px;
}

.sidebartable td.btn.btn-primary {
    background-color: #198754 !important;
    box-shadow: 0 0 10px rgba(25,135,84,0.4);
    border-radius: 50px;
}

/* 2) Link transparent halten & Layout am <td> statt <a> */
.sidebartable td > a {
    display: inline-block;
    width: 180px;
    padding: 10px 0;
    background: transparent !important; /* <- Key! */
    color: #fff !important;
    text-decoration: none !important;
}

/* 3) Disabled bleibt un-klickbar */
.sidebartable a.aspNetDisabled {
    pointer-events: none;
    cursor: default;
}

/* 4) Hover nicht „wegfärben“ */
.sidebartable td.btn.btn-default:hover {
    filter: brightness(1.06);
}

.sidebartable td.btn.btn-primary:hover {
    filter: brightness(1.06);
}
