/* ========================================
   GLOBAL STYLES FOR KRUMMWEIHER.DE
   Primary Color: Forest Green (#228B22)
   Accent Color: Amber (#FFBF00)
   ======================================== */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* ========================================
   BOOTSTRAP OVERRIDES (CRITICAL)
   ======================================== */
.navbar-nav {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.nav-item {
    margin-bottom: 0 !important;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Public Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    margin-top: 2rem !important;
    line-height: 1.3 !important;
}

h1 {
    font-size: 2.5rem !important;
    color: #228B22 !important;
}

h2 {
    font-size: 2rem !important;
    color: #228B22 !important;
}

h3 {
    font-size: 1.5rem !important;
    color: #228B22 !important;
}

p {
    font-size: 16px;
    margin-bottom: 1rem;
    line-height: 1.7;
}

strong {
    font-weight: 600;
    color: #228B22;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #228B22 !important;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #228B22 !important;
}

.navbar .btn-cta {
    background-color: transparent !important;
    color: #FFBF00 !important;
    border: 2px solid #FFBF00 !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.navbar .btn-cta:hover {
    background-color: #FFBF00 !important;
    color: #fff !important;
}

.navbar-toggler {
    border-color: #228B22;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23228B22' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Remove list styles from navbar */
.navbar-nav {
    list-style: none !important;
}

.navbar-nav li {
    list-style: none !important;
}

.navbar-nav li::before,
.navbar-nav li::after {
    display: none !important;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative !important;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%) !important;
    padding: 100px 0 !important;
    overflow: hidden !important;
    margin-bottom: 3rem !important;
}

.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: -50px !important;
    right: -50px !important;
    width: 300px !important;
    height: 300px !important;
    background-color: rgba(255, 191, 0, 0.2) !important;
    border-radius: 50% !important;
}

.hero-section::after {
    content: '' !important;
    position: absolute !important;
    bottom: -80px !important;
    left: -80px !important;
    width: 400px !important;
    height: 400px !important;
    background-color: rgba(255, 191, 0, 0.15) !important;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%) !important;
}

.hero-content {
    position: relative !important;
    z-index: 10 !important;
}

.hero-section h1 {
    color: #fff !important;
    font-size: 3rem !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.hero-section p {
    color: #fff !important;
    font-size: 18px !important;
    margin-bottom: 1rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.hero-section .btn-hero {
    background-color: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    padding: 1rem 2.5rem !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-top: 1.5rem !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.hero-section .btn-hero:hover {
    background-color: #fff !important;
    color: #228B22 !important;
}

.hero-shapes {
    position: absolute !important;
    top: 20% !important;
    left: 10% !important;
    width: 100px !important;
    height: 100px !important;
    background-color: rgba(255, 191, 0, 0.25) !important;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%) !important;
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */
.toc-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.toc-section ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.toc-section li {
    list-style: none !important;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.toc-section li:last-child {
    border-bottom: none;
}

.toc-section li::before {
    display: none !important;
}

.toc-section a {
    color: #228B22;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc-section a:hover {
    color: #FFBF00;
}

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

.section-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* ========================================
   IMAGES
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

picture {
    display: block;
    margin: 2rem 0;
}

/* Logo specific */
.navbar-brand img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ========================================
   TABLES
   ======================================== */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

thead {
    background-color: #228B22;
    color: #fff;
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

tbody tr {
    border-bottom: 1px solid #e9ecef;
}

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

tbody td {
    padding: 1rem;
    font-size: 16px;
}

/* ========================================
   LISTS
   ======================================== */
/* Reset default list styles */
ul, ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.5rem 0 !important;
}

ul li, ol li {
    position: relative;
    padding-left: 2rem !important;
    margin-bottom: 1rem !important;
    font-size: 16px;
    line-height: 1.7;
}

/* Custom markers for UL */
ul li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.5rem !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-top: 10px solid #FFBF00 !important;
    transform: rotate(180deg) !important;
}

/* Custom markers for OL */
ol {
    counter-reset: item !important;
}

ol li {
    counter-increment: item !important;
}

ol li::before {
    content: counter(item) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    background-color: #FFBF00 !important;
    color: #fff !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Remove markers for footer and navbar */
.footer-links ul,
.footer-links li,
.navbar-nav,
.navbar-nav li,
.toc-section ul,
.toc-section li {
    list-style: none !important;
}

.footer-links li::before,
.footer-links li::after,
.navbar-nav li::before,
.navbar-nav li::after,
.toc-section li::before,
.toc-section li::after {
    display: none !important;
    content: none !important;
}

.footer-links li,
.navbar-nav li,
.toc-section li {
    padding-left: 0 !important;
}

/* ========================================
   CONVERSION BUTTONS
   ======================================== */
.btn-conversion {
    background-color: transparent !important;
    color: #228B22 !important;
    border: 2px solid #228B22 !important;
    padding: 0.75rem 2rem !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
}

.btn-conversion:hover {
    background-color: #228B22 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.btn-center {
    text-align: center;
    margin: 2rem 0;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background-color: #228B22;
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

footer h5 {
    color: #fff !important;
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem !important;
}

footer p {
    color: #fff !important;
    font-size: 16px;
}

footer a {
    color: #FFBF00 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff !important;
}

.footer-links ul {
    padding-left: 0 !important;
}

.footer-links li {
    margin-bottom: 0.75rem;
    padding-left: 0 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #fff !important;
}

/* ========================================
   ICONS
   ======================================== */
.material-icons {
    color: #228B22;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.icon-amber {
    color: #FFBF00;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-primary-custom {
    color: #228B22 !important;
}

.text-accent-custom {
    color: #FFBF00 !important;
}

.bg-primary-custom {
    background-color: #228B22 !important;
}

.bg-accent-custom {
    background-color: #FFBF00 !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    .hero-section {
        padding: 60px 0 !important;
    }

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

    .section-card {
        padding: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-conversion,
    .btn-hero {
        padding: 0.6rem 1.5rem !important;
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .hero-section {
        padding: 40px 0 !important;
    }

    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    .section-card {
        padding: 1.25rem;
    }
}
