/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #ffffff;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Color Variables */
:root {
    --gold: #D4AF37;
    --gold-light: #E5C76B;
    --gold-dark: #B08A28;
    --white: #fff;
    --black: #000;
    --gray: #f8f8f8;
    --dark-gray: #333;
    --footer-gray: #444444;
    --background-warm: rgb(235, 227, 219);
}

/* Mobile First Grid Layout */
.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: #ebe3d0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--gold);
    transition: transform 0.3s ease, height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    height: auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo container to hold both logo and site title */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

/* Site title styling */
.site-title {
    display: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin: 0;
    font-family: 'Arial', sans-serif;
}

/* Header transition effects */
.header-hidden {
    transform: translateY(-100%);
}

.header-visible {
    transform: translateY(0);
}

.header-compact {
    height: 60px;
    background-color: rgba(235, 227, 208, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-compact .logo {
    height: 30px;
    transition: height 0.3s ease;
}

.header-compact .site-title {
    font-size: 1.3rem;
    transition: font-size 0.3s ease;
}

.header-compact .desktop-nav a {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    transition: padding 0.3s ease;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--black);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
    color: var(--gold-dark);
    border-bottom: 2px solid var(--gold);
}

/* Hamburger Menu & Dropdown Navigation */
.dropdown {
    position: relative;
}

.hamburger-btn {
    background-color: transparent;
    color: var(--gold);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    color: var(--gold-dark);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--background-warm);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1;
    border: 1px solid var(--gold);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--black);
    border-bottom: 1px solid var(--gold-light);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--gold-light);
}

.dropdown.active .dropdown-content {
    display: block;
}

/* Main Content */
main {
    margin-top: 70px;
    padding: 1rem;
    flex: 1;
    background-color: transparent;
    position: relative;
    z-index: 10;
}


/* Terms and Conditions Styles */
.terms-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.terms-content {
    flex: 1;
    order: 2;
}

.terms-navigation {
    width: 100%;
    background-color: var(--background-warm);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    order: 1;
}

.terms-navigation h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold);
    color: var(--gold-dark);
    font-size: 1.2rem;
}

.terms-navigation ul {
    padding-left: 0;
    list-style-type: none;
    margin-top: 10px;
}

.terms-navigation li {
    margin-bottom: 8px;
}

.terms-navigation a {
    text-decoration: none;
    color: var(--black);
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.terms-navigation a:hover {
    color: var(--gold-dark);
}

.terms-navigation a.active {
    font-weight: bold;
    color: var(--gold-dark);
}

section[id^="artikel"] {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gold-light);
}

section[id^="artikel"] h2 {
    margin-top: 0;
    color: var(--gold-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

section[id^="artikel"] p {
    margin-bottom: 15px;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Responsive styles */
@media (max-width: 767px) {
    .header-container {
        padding: 0.5rem 1rem;
    }

    .logo {
        height: 32px;
    }
    
    main {
        margin-top: 60px;
    }
    
    .header-compact {
        height: 50px;
    }
    
    .header-compact .logo {
        height: 25px;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .logo {
        height: 50px;
    }
    
    .desktop-nav {
        display: flex;
        align-items: center;
    }
    
    .dropdown {
        display: none;
    }
    
    main {
        margin-top: 80px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Terms and Conditions layout for tablet */
    .terms-container {
        flex-direction: row;
        gap: 30px;
    }
    
    .terms-content {
        flex: 3;
        order: 1;
    }
    
    .terms-navigation {
        width: 250px;
        order: 2;
        position: sticky;
        top: 100px;
        align-self: flex-start;
        margin-bottom: 0;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    main {
        margin-top: 80px;
    }
    
    .desktop-nav a {
        padding: 0.5rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .site-title {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    /* Terms and Conditions layout for desktop */
    .terms-content {
        flex: 4;
        padding-right: 40px;
    }
    
    .terms-navigation {
        width: 280px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .desktop-nav a {
        padding: 0.5rem 1.5rem;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .header-compact .site-title {
        font-size: 1.5rem;
    }
    
    .terms-navigation {
        width: 300px;
    }
}

/* ===== COMPLETELY REVISED FOOTER STYLES ===== */
/* Delete all existing footer CSS and replace with this */

footer {
    background-color: var(--footer-gray);
    color: var(--white);
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 100;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main footer grid - revised layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Footer section headers */
.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 0.5rem;
}

/* About section */
.about-section p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Social media icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--gold);
    border-radius: 50%;
    color: var(--black);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    font-weight: bold;
}

.social-icon:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

/* Footer navigation links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: var(--gold);
}

/* Contact information styling */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-info strong {
    color: var(--gold-light);
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Copyright section */
.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gold);
    text-align: center;
    font-size: 0.85rem;
    color: #cccccc;
}

.copyright p:first-child {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE LAYOUTS ===== */

/* Mobile layout (default above) */

/* Tablet layout */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }
    
    /* Second paragraph in copyright is smaller on tablet */
    .copyright p:last-child {
        font-size: 0.8rem;
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Desktop layout */
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
    }
    
    /* More space between contact info items */
    .contact-info {
        gap: 0.3rem;
    }
    
    /* Full width for copyright on desktop */
    .copyright p:last-child {
        max-width: 100%;
    }
}

/* Large desktop layout */
@media (min-width: 1200px) {
    .footer-grid {
        gap: 3rem;
    }
    
    .footer-section h3 {
        margin-bottom: 1rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
}

/* Back to Top Button */
#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--gold);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    display: flex;
    opacity: 1;
}

#back-to-top:hover {
    background-color: var(--gold-dark);
    transform: translateY(-3px);
}

/* Only show button on mobile screens (under 768px) */
@media (min-width: 768px) {
    #back-to-top {
        display: none !important; /* Force hidden on larger screens */
    }
}