/* Font Faces */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/Inter-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/Inter-Bold.woff2') format('woff2');
}

:root {
    --primary-green: #22c55e;      /* Dunkleres Grün */
    --secondary-green: #059669;    /* Mittleres Grün */
    --dark-green: #065f46;         /* Dunkelstes Grün für Akzente */
    --light-green: #dcfce7;        /* Sehr helles Grün für Hintergründe */
    --medium-green: #10b981;       /* Zusätzlicher Grünton */
    --primary-yellow: #fbbf24;     /* Sonniges Gelb */
    --dark-yellow: #f59e0b;        /* Dunkleres Gelb für Hover */
    --light-yellow: #fef3c7;       /* Helles Gelb für sanfte Akzente */
    --text-dark: #1f2937;          /* Dunkler Text */
    --text-gray: #6b7280;          /* Grauer Text */
    --white: #ffffff;
    --light-gray: #f9fafb;
    --border-light: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Basis-Styling */
#page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 400;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;    
}

body {
    background: url('../img/bg5.jpg') center top no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

a {
    color: var(--dark-green);
}

a:visited {
    color: var(--secondary-green);
}

a:hover {
    color: var(--secondary-green);
    text-decoration: none;
}

/* Container für die gesamte Site */
.site {
    max-width: 1300px;
    margin: 2em auto;
    position: relative;
}

.site-header {
    box-sizing: border-box;
    text-align: center;
}

.site-header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1em;
}

.site-header-top .site-branding {
    grid-column: 2;
}

.site-branding .logo {
    max-height: 110px;
}

.header-cta-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
    padding: 12px 28px;
    background: linear-gradient(90deg, #5A5F6C 0%, #8C929D 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.header-cta-button:hover {
    background: linear-gradient(90deg, #4c505b 0%, #7a808a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: white !important;
}

.header-cta-button--desktop {
    grid-column: 3;
    justify-self: end;
}

.main-navigation .header-cta-button--mobile {
    display: none;
}

.header-cta-button__label {
    font-weight: 600;
    font-size: 14px;
}

.header-cta-button__label::before {
    content: '\260E';
    margin-right: 6px;
}

.header-cta-button__phone {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.9;
}

.page-wrapper {
    margin: 1em 0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.page-wrapper .site-main {
    padding: 1em;
    background: var(--white);
    box-shadow: 0px 5px 10px 1px rgba(0,0,0,0.3);
}

.page-wrapper aside {
    padding: 1em;
    background: rgba(255,255,255,0.85);
}

@media (min-width: 768px) {
    .page-wrapper {
        display: flex;
        margin: 2em 0;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
        border-radius: 25px;
        overflow: hidden;
    }

    .page-wrapper .site-main {
        padding: 2.5em;
        flex-grow: 1;
        background: var(--white);
        box-shadow: 5px 0px 10px 1px rgba(0,0,0,0.3);
    }

    .page-wrapper aside {
        padding: 2.5em;
        width: 30%;
        background: rgba(255,255,255,0.85);
    }
}

/* Navigation */
.menu-toggle {
    display: none;
    background: #2d5a2d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.menu-toggle:hover {
    background: #4a7c4a;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(45, 90, 45, 0.3);
}

.menu-main-container {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: inline-block;
    padding: 15px 25px;
    background: linear-gradient(135deg, #2d5a2d 0%, #4a7c4a 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    white-space: nowrap;
}

.menu-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.8s ease;
}

.menu-item a:hover::before {
    left: 100%;
}

.menu-item a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 45, 0.3);
    background: linear-gradient(135deg, #5cb85c 0%, #6bcf6b 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Active/Current page styling */
.current-menu-item a,
.current_page_item a {
    background: linear-gradient(135deg, #1f4f1f 0%, #2d5a2d 100%) !important;
    box-shadow: 0 3px 10px rgba(45, 90, 45, 0.3), inset 0 3px 10px rgba(0,0,0,0.2);
    transform: translateY(-1px);
    color: #6bcf6b !important;
}

.current-menu-item a:hover,
.current_page_item a:hover {
    background: linear-gradient(135deg, #4a7c4a 0%, #5cb85c 100%) !important;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        margin-bottom: 0.5em;
    }
    .site-branding .logo {
        max-height: 80px;
    }

    .site-header-top {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .site-header-top .site-branding {
        grid-column: 1;
    }

    .header-cta-button--desktop {
        display: none;
    }

    h1 { font-size: 1.5rem; line-height: 1.2; padding-bottom: 0.35em; }
    h2 { font-size: 1.25rem; line-height: 1.2; padding-bottom: 0.5em; }
    h3 { font-size: 1.1rem; line-height: 1.2; padding-bottom: 0.4em; }
    h4, h5, h6 { font-size: 1rem; }

    ul, ol { margin-left: 0.75em; }

    .nav-toggle-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 80%;
        width: 80%;
        margin-bottom: 0;
    }

    .main-navigation .header-cta-button--mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        flex: 0 0 15%;
        width: 15%;
        padding: 0;
        box-sizing: border-box;
    }

    .header-cta-button--mobile .header-cta-button__icon {
        font-size: 20px;
    }

    .main-navigation {
        position: relative;
    }

    .menu-main-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 15px;
    }

    .main-navigation.toggled .menu-main-container {
        display: block;
        animation: fadeInDown 0.3s ease;
    }

    .nav-menu {
        flex-direction: column;
        gap: 4px;
    }

    .menu-item a {
        display: block;
        text-align: center;
        padding: 12px 20px;
        font-size: 16px;
        background: none;
        box-shadow: none;
        border: none;
        color: var(--text-dark) !important;
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
    }

    .menu-item a:hover {
        background: var(--light-green);
        color: var(--dark-green) !important;
        transform: none;
        box-shadow: none;
    }

    .menu-item:last-child a {
        border-bottom: none;
    }

    .current-menu-item a,
    .current_page_item a {
        background: linear-gradient(135deg, #1f4f1f 0%, #2d5a2d 100%) !important;
        color: #6bcf6b !important;
        border-color: transparent;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .main-navigation {
        padding: 15px;
        border-radius: 15px;
    }

    .menu-item a {
        padding: 16px 18px;
        font-size: 15px;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset any theme conflicts */
.main-navigation .nav-menu li {
    margin: 0;
}

.main-navigation .nav-menu a {
    line-height: 1.4;
}

.page-wrapper h1, h2 {
    position: relative;
}

.page-wrapper h1::before {
  content: "";
  position: absolute;
  top: 100%;
  width: 4em;
  left: 0;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(135deg, #4a7c4a 0%, #5cb85c 100%);
}

.page-wrapper h2::before {
  content: "";
  position: absolute;
  top: 100%;
  width: 2em;
  left: 0;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ccc 0%, #ddd 100%);
}

.site-footer,
.site-footer a {
    color: var(--white);
}

.footer-navigation {
    padding: 1em 0;
    text-align: center;
}

.footer-navigation #footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation #footer-menu a {
    font-size: 0.9rem;
    opacity: 0.75;
}

.footer-navigation #footer-menu a:visited {
    color: var(--white);
}

.footer-navigation #footer-menu a:hover {
    opacity: 1;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-navigation #footer-menu a:hover {
        text-decoration: underline;
    }
}

/* Öffnungszeiten-Tabelle in der Sidebar */
.widget-area .wp-block-table.oeffnungszeiten tr td {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.3em;
    vertical-align: middle;
}

.widget-area .wp-block-table.oeffnungszeiten tr:last-child td {
    border-bottom: none;
}

.widget-area .wp-block-table.oeffnungszeiten tr td:nth-child(2) {
    text-align: right;
}
