/*
Theme Name: AVOTA Theme
Theme URI: https://avota.de
Author: AVOTA GmbH
Author URI: https://avota.de
Description: Ein modernes WordPress-Theme mit Material Design für die AVOTA GmbH
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avota-theme
*/

/* Import Mobile Styles */
@import url('mobile-style.css');
@import url('desktop-styles.css');

:root {
    --primary-color: #000000;
    --primary-light: #4b5460;
    --primary-dark: #2d3339;
    --secondary-color: #424242;
    --color-text-dark: #333333;
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --background: #fafafa;
    --background-light: #cfcfcf;
    --surface: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --elevation-1: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
    --elevation-2: 0 3px 3px -2px rgba(0,0,0,0.2), 0 3px 4px 0 rgba(0,0,0,0.14), 0 1px 8px 0 rgba(0,0,0,0.12);
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-size-base: 1.3rem;      /* 20px */
    --font-size-small: 0.875rem;     /* 14px */
    --font-size-large: 1.5rem;      /* 24px */
    --line-height-base: 1.6;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}

/* Basis-Styles */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--secondary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 16px 0;
    box-shadow: var(--elevation-1);
}

/* Header Layout */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    background: white;
    z-index: 99999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block !important;
}

.site-header.nav-up,
.site-header.nav-down,
.site-header.hide-header,
.site-header[data-scroll="down"],
.site-header[data-scroll="up"] {
    position: fixed !important;
    top: 0 !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Kompensation für den fixed header */
body {
    padding-top: 92px; /* Anpassen an die tatsächliche Höhe des Headers */
}

/* Für WordPress Admin Bar */
.admin-bar .site-header,
.admin-bar .site-header.nav-up,
.admin-bar .site-header.nav-down,
.admin-bar .site-header[data-scroll="down"],
.admin-bar .site-header[data-scroll="up"] {
    top: 32px !important;
}



.site-title {
    margin: 0;
    display: flex;
    align-items: center;
}

.site-title a {
    color: var(--text-on-primary);
    text-decoration: none;
}

/* Logo Styles */
.site-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Navigation */
.site-header .main-navigation {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-header .main-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.site-header .main-navigation .nav-menu li {
    margin-left: 2rem;
}

.site-header .main-navigation .nav-menu a {
    text-decoration: none;
    color: var(--color-text-dark) !important;
    font-weight: 500;
}

.site-header .main-navigation .nav-menu a:hover {
    color: var(--color-text-dark) !important;
}

/* Entferne möglicherweise störende alte Styles */
.main-navigation a,
.nav-menu a {
    color: var(--color-text-dark) !important;
}

.main-navigation a {
    color: var(--text-on-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--text-on-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    transform: scaleX(1);
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 48px 0;
    margin-bottom: 48px;
}

.page-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Page Content */
.page-content {
    background-color: var(--surface);
    padding: 48px;
    box-shadow: var(--elevation-1);
    margin: 48px 0;
    flex: 1;
}

.entry-content {
    margin: 0 auto;
}

.entry-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1em;
    font-weight: 700;
}

.entry-content h2 {
    color: var(--primary-color);
    margin-top: 2em;
    margin-bottom: 1em;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Footer */
.site-footer {
    background-color: var(--background-light);
}

/* Footer Layout */
.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    height: 80px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--color-text-dark);
}

.footer-content .site-logo {
    max-height: 40px;
    width: auto;
}

.footer-content p {
    margin: 0;
}

.footer-section h3 {
    color: var(--text-on-primary);
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.footer-section p {
    margin: 0 0 16px;
    opacity: 0.8;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: var(--footer-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.footer-menu a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    margin: 0;
    opacity: 0.8;
}

.footer-legal {
    margin-left: auto;
}

.legal-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-menu li {
    margin-left: 2rem;
}

.legal-menu a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 0.9em;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    box-shadow: var(--elevation-1);
}

.button:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--elevation-2);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
}

textarea {
    height: 150px;
    resize: vertical;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    margin-top: 0;
}

.main-navigation {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

.main-navigation ul ul {
    font-size: var(--font-size-small);
}
