/* =============================================
   High-End E-Book Style CSS 
   Kirchenlatein Lernplattform
   ============================================= */

/* BODY (Grundlayout) */
body {
    font-family: "Merriweather", Georgia, serif;
    background: linear-gradient(170deg, #fcfcfc 35%, #f2f4f7 100%);
    color: #333;
    margin: 0;
    padding: 0;
    animation: fadeIn 1s ease-in-out forwards;
    opacity: 0;
    transition: background 0.4s ease;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* HEADINGS */
h1, h2, h3 {
    color: #444;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

/* NAVBAR */
nav.navbar {
    background-color: #fefefe;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-family: "Georgia", serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #b32d2e !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #7e1e1e !important;
}

.navbar-nav .nav-link {
    color: #444 !important;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #b32d2e !important;
    text-decoration: none;
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 75, 75, 0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* CARDS */
.card {
    border: 1px solid #e1e1e1;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

.card-title {
    color: #333;
    font-weight: 600;
}

.btn-outline-danger {
    color: #b32d2e;
    border-color: #b32d2e;
}

.btn-outline-danger:hover {
    background-color: #b32d2e;
    border-color: #b32d2e;
    color: #fff;
}

/* TABLES & BOXES */
.table-responsive {
    margin-bottom: 2rem;
}

.table {
    background-color: #fff;
    border: 1px solid #dcdcdc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f1f1f1;
    border-bottom: 2px solid #ccc;
    color: #333;
    font-weight: 600;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #e1e1e1;
    vertical-align: middle;
    padding: 0.75rem;
}

.table-hover tbody tr {
    transition: background-color 0.3s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* LINKS */
a {
    color: #b32d2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #7e1e1e;
    text-decoration: underline;
}

/* CODE & MARKDOWN */
code, pre {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 0.25rem;
    padding: 0.2rem 0.4rem;
    font-family: "Courier New", Courier, monospace;
    color: #ab1c63;
}

pre {
    padding: 0.8rem;
    overflow-x: auto;
}

/* BLOCKQUOTE */
blockquote {
    background-color: #fdfdfd;
    border-left: 5px solid #b32d2e;
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
    border-radius: 0.25rem;
}

/* FOOTER */
footer {
    color: #666;
    font-size: 0.9rem;
    padding: 1rem;
    background-color: #fafafa;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    margin-top: 3rem;
}

/* RESPONSIVE STYLES */
@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    h3 {
        font-size: 1rem;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .table-sm {
        font-size: 0.85rem;
    }
    body {
        padding: 0.5rem;
    }
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
}

@media (min-width: 1200px) {
    body {
        line-height: 1.6;
        max-width: 900px;
        margin: auto;
        padding: 1.5rem;
    }
    .table-responsive {
        margin-bottom: 3rem;
    }
    blockquote {
        margin: 2rem 0;
    }
}
