/**
 * Custom Header Mobile CSS - Stefan Schulz Blog
 * Nur für Screens <= 768px
 * Version 1.0.9
 */

/* CSS Variables - Exakt wie start.php Mobile */
:root {
    /* Colors */
    --color-primary: #ff6600;
    --color-text: #1a1a1a;
    --color-bg-header: #f5f0e8;
    --color-bg-menu: #ebe3d3;
    --color-bg-page: #f8f7f5;

    /* Font Sizes */
    --font-3xl: 20px;
    --font-4xl: 22px;
    --font-5xl: 28px;

    /* Spacing */
    --space-md: 10px;
    --space-3xl: 20px;

    /* Typography */
    --font-weight-bold: 700;
}

/* Header */
header.ss-custom-header {
    padding: var(--space-3xl);
    padding-bottom: var(--space-md);
    margin-bottom: 0;
    position: relative;
    background: var(--color-bg-header);
    z-index: 1002;
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header-title-inner {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.header-profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.header-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

header h1,
header .header-title h1,
h1 {
    font-size: var(--font-5xl) !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: 1.2 !important;
    color: #000 !important;
    margin: 0 !important;
}

h1 a {
    color: inherit;
    text-decoration: none;
}

/* Header Tagline */
.header-tagline {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Social links hidden in header on mobile (shown in menu instead) */
.social-links {
    display: none;
}

/* Hamburger Menu Button */
.hamburger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu-content {
    margin-top: 0;
    margin-bottom: 20px;
}

.mobile-menu-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    background: var(--color-bg-menu);
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-menu-nav::-webkit-scrollbar {
    display: none;
}

.mobile-menu-nav a {
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: #000;
}

/* Mobile Menu Extra Content (below header + nav) */
.mobile-menu-extra {
    display: none;
    position: fixed;
    top: 140px; /* Below header + nav bar */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-page);
    z-index: 1000;
    padding: 0;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.mobile-menu-content.active .mobile-menu-extra {
    display: flex;
}

/* Vita Section */
.mobile-menu-vita {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 30px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-vita-image {
    width: 100vw;
    max-width: 100vw;
    max-height: 280px;
    object-fit: cover;
    object-position: center top;
    margin-top: -24px;
    margin-left: -30px;
    margin-right: -30px;
}

.mobile-menu-vita-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: center;
    margin: 0;
}

.mobile-menu-vita-text a {
    color: #ff6600;
    text-decoration: none;
}

/* Social Links in Menu */
.mobile-menu-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.mobile-menu-social li {
    margin: 0;
}

.mobile-menu-social a {
    display: block;
    width: 28px;
    height: 28px;
}

.mobile-menu-social svg {
    width: 100%;
    height: 100%;
    fill: #666;
    transition: fill 0.2s;
}

.mobile-menu-social a:hover svg {
    fill: #ff6600;
}

/* Contact Row */
.mobile-menu-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-contact a {
    font-size: 16px;
    color: #000;
    text-decoration: none;
}

.mobile-menu-contact span {
    color: #999;
    font-size: 16px;
}

/* Steady Login */
.mobile-menu-steady {
    display: flex;
    justify-content: center;
    padding: 20px 30px;
}

.mobile-menu-steady a {
    font-size: 16px;
    color: #000;
    text-decoration: none;
}

/* Desktop-only elements - Hidden on Mobile */
.header-contact,
.header-right,
.header-social,
.header-line-container {
    display: none;
}

/* Hide WordPress Theme Header - Force hide */
.wp-block-template-part[class*="header"],
.site-header,
header.wp-block-group {
    display: none !important;
}

/* Show only our custom header */
header.ss-custom-header {
    display: block !important;
}
