/*
Theme Name:     twentytwelve Child
Theme URI:      https://krampfadern-rebell.de/
Description:    Child Theme for twentytwelve
Author:         Naturheilpraxis Rebell
Template:       twentytwelve
Version:        2.0
*/

/* ============================================
   BASIS
   ============================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #4a4a4a;
}

a {
    color: #7a9a8a;
    transition: color 0.2s ease;
}

a:hover {
    color: #5a7a6a;
}

a:visited,
.site-content a:visited {
    color: #7a9a8a;
}

/* Bilder nie breiter als ihr Container */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SEITE
   ============================================ */

html {
    margin: 0;
    padding: 0;
    background-color: #ede8e0;
    scroll-behavior: smooth;
}

/* Sanftes Einblenden der Seite beim Laden */
@keyframes siteFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.site {
    animation: siteFadeIn 0.55s ease both;
}

body.custom-background,
body {
    background-color: #ede8e0 !important;
    margin: 0;
    padding: 0;
}

.site {
    max-width: 1080px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

@media screen and (min-width: 960px) {
    body .site {
        padding: 0;
        margin: 40px auto;
        border-radius: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02), 0 12px 40px rgba(0,0,0,0.04);
    }
    body.custom-background-empty .site,
    body.custom-background-white .site {
        margin: 40px auto;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02), 0 12px 40px rgba(0,0,0,0.04);
    }
}

.site-content {
    margin: 0;
    padding: 32px 0 40px;
}

#main.wrapper {
    background: #faf7f2;
    padding: 0 32px;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    margin: 28px 0 16px;
    line-height: 1.3;
    color: #3a3a3a;
    font-weight: 600;
}

.entry-content h1 { font-size: 28px; }
.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 20px; }
.entry-content h4 { font-size: 18px; }
.entry-content h5 { font-size: 16px; }
.entry-content h6 { font-size: 14px; }

.entry-content p,
.entry-summary p,
.comment-content p,
.mu_register p {
    margin: 0 0 20px;
    line-height: 1.7;
}

.entry-content p[style*="padding-left"],
.entry-content h4[style*="padding-left"] {
    padding-left: 60px !important;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    background: #ede8e0;
    padding: 36px 32px 16px;
    border: none;
    text-align: center;
}

@media screen and (min-width: 960px) {
    .site-header {
        border-radius: 20px 20px 0 0;
    }
    footer[role="contentinfo"] {
        border-radius: 0 0 20px 20px;
    }
}

.site-headline {
    font-size: 24px;
    font-weight: 700;
    color: #3a3a3a;
    margin: 0 0 2px;
    letter-spacing: -0.3px;
}

.site-headline a {
    color: #3a3a3a;
    text-decoration: none;
}

.site-subheadline {
    font-size: 14px;
    color: #7a9a8a;
    font-weight: 500;
    margin: 0 0 24px;
}

.site-header h1,
.site-header h2 {
    display: none;
}

/* ============================================
   NAVIGATION – clean, kein Balken
   ============================================ */

.main-navigation {
    margin-bottom: 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding-bottom: 4px;
}

/* Menu-Button + Skip-Link immer ausgeblendet */
.menu-toggle,
.assistive-text {
    display: none;
}

/* ============================================
   DESKTOP (ab 769px)
   ============================================ */

@media screen and (min-width: 769px) {
    .main-navigation ul.nav-menu,
    .main-navigation div.nav-menu > ul {
        border: none;
        display: inline-block;
        text-align: left;
        width: auto;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .main-navigation li {
        margin: 0 4px;
        display: inline-block;
        position: relative;
    }

    .main-navigation li a {
        font-size: 14px;
        font-weight: 500;
        text-transform: none;
        color: #1a1a1a;
        line-height: 1;
        padding: 10px 18px;
        border-radius: 8px;
        white-space: nowrap;
        display: inline-block;
        transition: all 0.2s ease;
        text-decoration: none;
        border: none;
        outline: none;
        box-shadow: none;
    }

    .main-navigation li a:hover,
    .main-navigation li a:focus {
        color: #000;
        background: rgba(0,0,0,0.03);
        text-decoration: none;
    }

    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a {
        color: #7a9a8a;
        background: rgba(122,154,138,0.08);
        font-weight: 600;
    }

    .main-navigation .current-menu-item > a:hover {
        background: rgba(122,154,138,0.12);
    }

    /* Submenü – Karte bei Hover */
    .main-navigation li ul {
        height: 1px;
        width: 1px;
        overflow: hidden;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        z-index: 10;
        clip: rect(1px, 1px, 1px, 1px);
        background: #fff;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.06);
        padding: 4px;
        opacity: 0;
        transition: all 0.2s ease;
        min-width: 180px;
    }

    .main-navigation li ul::before {
        content: '';
        position: absolute;
        top: -16px;
        left: 0;
        right: 0;
        height: 16px;
    }

    .main-navigation ul li:hover > ul,
    .main-navigation ul li:focus > ul,
    .main-navigation .focus > ul {
        clip: inherit;
        overflow: inherit;
        height: inherit;
        width: inherit;
        opacity: 1;
        transform: translateX(-50%) translateY(4px);
    }

    .main-navigation li ul li {
        margin: 0;
        display: block;
    }

    .main-navigation li ul li a {
        background: transparent;
        border: none;
        font-size: 13px;
        line-height: 1.4;
        padding: 10px 16px;
        white-space: nowrap;
        border-radius: 8px;
        color: #1a1a1a;
        display: block;
        box-sizing: border-box;
    }

    .main-navigation li ul li a:hover {
        background: rgba(122,154,138,0.08);
        color: #000;
    }
}

/* ============================================
   MOBIL (< 769px)
   ============================================ */

@media screen and (max-width: 768px) {
    .main-navigation {
        text-align: left;
    }

    .main-navigation .menu-toggle {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 15px;
        font-weight: 500;
        color: #3a3a3a;
        background: rgba(122,154,138,0.06);
        border: 1px solid rgba(0,0,0,0.04);
        border-radius: 8px;
        box-shadow: none;
        cursor: pointer;
        margin-bottom: 6px;
        line-height: 1.5;
    }

    .main-navigation .menu-toggle:hover,
    .main-navigation .menu-toggle:focus {
        background: rgba(122,154,138,0.12);
        color: #3a3a3a;
        transform: none;
        box-shadow: none;
    }

    /* Menü standardmäßig zugeklappt */
    .main-navigation .nav-menu {
        display: none;
    }

    /* Menü aufgeklappt nach Klick */
    .main-navigation.toggled-on .nav-menu {
        display: block;
    }

    .main-navigation .menu-arrow {
        font-size: 10px;
        margin-left: 4px;
        transition: transform 0.2s;
    }

    .main-navigation.toggled-on .menu-arrow {
        transform: rotate(180deg);
    }

    .main-navigation li {
        display: block;
        margin: 0;
    }

    .main-navigation li a {
        display: block;
        white-space: normal;
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 6px;
        color: #1a1a1a;
    }

    /* Untermenüs immer sichtbar untergeschoben */
    .main-navigation li ul {
        position: static;
        height: auto;
        width: auto;
        clip: inherit;
        overflow: inherit;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 20px;
        min-width: auto;
        display: block;
    }

    .main-navigation li ul::before {
        display: none;
    }

    .main-navigation li ul li a {
        background: transparent;
        padding: 10px 12px;
        font-size: 14px;
        color: #1a1a1a;
    }

    .main-navigation li ul li a:hover {
        background: rgba(0,0,0,0.03);
        color: #000;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

input[type="submit"],
input[type="button"],
input[type="reset"],
button,
.menu-toggle,
article.post-password-required input[type=submit],
.bypostauthor cite span {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    color: #fff;
    background: #7a9a8a;
    background-image: none;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.2s ease;
    line-height: 1.5;
}

input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
button:hover,
.menu-toggle:hover {
    color: #fff;
    background: #5a7a6a;
    background-image: none;
    box-shadow: 0 4px 12px rgba(122,154,138,0.2);
    transform: translateY(-1px);
}

input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
button:active {
    color: #fff;
    background: #3a5e4a;
    background-image: none;
    box-shadow: none;
    transform: translateY(0);
}

/* ============================================
   CONTENT
   ============================================ */

.site-content article {
    border-bottom: none;
    margin-bottom: 32px;
    padding-bottom: 0;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-header .entry-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

.entry-header .entry-title a {
    color: #3a3a3a;
}

.entry-header .entry-title a:hover {
    color: #7a9a8a;
}

.entry-content img,
.comment-content img,
.widget img,
img.header-image,
.author-avatar img,
img.wp-post-image {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ============================================
   ENTRY META – ausblenden
   ============================================ */

footer.entry-meta {
    display: none;
}

/* ============================================
   SLIDER
   ============================================ */

.easingslider {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    background: transparent !important;
}

.easingslider * {
    background: transparent !important;
}

/* ============================================
   SIDEBAR
   ============================================ */

.widget-area .widget {
    margin-bottom: 32px;
    background: rgba(0,0,0,0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
}

.widget-area .widget h3 {
    font-size: 16px;
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 16px;
}

.widget-area .widget a {
    color: #7a9a8a;
}

.widget-area .widget a:hover {
    color: #5a7a6a;
}

/* ============================================
   FRONT PAGE TEMPLATE
   ============================================ */

.template-front-page .site-content article {
    border: none;
    margin-bottom: 0;
}

.template-front-page .widget-area {
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 28px;
}

/* ============================================
   FOOTER
   ============================================ */

footer[role="contentinfo"] {
    background: #faf7f2;
    border-top: 1px solid rgba(0,0,0,0.04);
    max-width: 100%;
    margin-top: 0;
    padding: 24px 32px;
    font-size: 13px;
    color: #8a8a8a;
    text-align: center;
}

footer[role="contentinfo"] a {
    color: #7a9a8a;
    text-decoration: none;
}

footer[role="contentinfo"] a:hover {
    color: #5a7a6a;
    text-decoration: underline;
}

.site-info .imprint {
    display: none;
}

/* ============================================
   FORMS
   ============================================ */

input, select, textarea {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #7a9a8a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(122,154,138,0.08);
}

/* ============================================
   ZITATE / TABELLEN
   ============================================ */

.entry-content blockquote,
.comment-content blockquote {
    border-left: 4px solid rgba(122,154,138,0.3);
    background: rgba(0,0,0,0.02);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    font-style: normal;
    color: #4a4a4a;
}

.entry-content table,
.comment-content table {
    font-size: 14px;
}

.entry-content td,
.comment-content td {
    padding: 8px 12px;
}

.wp-caption {
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    padding: 12px;
}

.wp-caption .wp-caption-text {
    font-size: 13px;
    color: #8a8a8a;
    line-height: 1.5;
    padding: 8px 0 0;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BACK TO TOP
   ============================================ */

#toTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#toTop.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#toTop:hover {
    background: rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

@media screen and (max-width: 599px) {
    #toTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 599px) {
    .site-header {
        padding: 28px 16px 12px;
    }
    .site-header h1 {
        font-size: 22px;
    }
    .entry-header .entry-title {
        font-size: 22px;
    }
    #main.wrapper {
        padding: 0 16px;
    }
    footer[role="contentinfo"] {
        padding: 20px 16px;
    }
    .entry-content p[style*="padding-left"],
    .entry-content h4[style*="padding-left"] {
        padding-left: 20px !important;
    }
}
