/*
Theme Name: UVT - Universal Vincent Theme
Theme URI: https://example.com
Author: Vincent
Author URI: https://example.com
Description: Ein universelles, hochgradig anpassbares WordPress-Theme mit umfangreichen Customizer-Optionen für Farben, Typografie, Layout und mehr.
Version: 0.3.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uvt
Tags: blog, custom-colors, custom-menu, editor-style, featured-images, flexible-header, full-width-template, theme-options

UVT is a highly customizable theme built for maximum flexibility.
*/

/*--------------------------------------------------------------
# CSS Variables (Design Tokens)
--------------------------------------------------------------*/
:root {
    /* Farben - werden durch Customizer überschrieben */
    --uvt-primary: #2271b1;
    --uvt-secondary: #50575e;
    --uvt-accent: #d63638;
    --uvt-text: #1e1e1e;
    --uvt-background: #ffffff;
    --uvt-link: #2271b1;
    --uvt-link-hover: #135e96;
    --uvt-extra-1: #8c8f94;
    --uvt-extra-2: #a7aaad;
    --uvt-extra-3: #c3c4c7;
    
    /* Typografie */
    --uvt-font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --uvt-font-headings: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --uvt-font-size-base: 16px;
    --uvt-line-height-base: 1.6;
    
    /* Layout */
    --uvt-container-width: 1200px;
    --uvt-content-padding: 20px;
    --uvt-spacing-unit: 20px;
}

/*--------------------------------------------------------------
# Reset & Base Styles
--------------------------------------------------------------*/
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--uvt-font-primary);
    font-size: var(--uvt-font-size-base);
    line-height: var(--uvt-line-height-base);
    color: var(--uvt-text);
    background-color: var(--uvt-background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--uvt-font-headings);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.75em;
}

a {
    color: var(--uvt-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--uvt-link-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
button,
.button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--uvt-primary);
    color: #fff;
    border: 1px solid var(--uvt-primary);
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--uvt-accent);
    border-color: var(--uvt-accent);
}

/*--------------------------------------------------------------
# Layout Structure
--------------------------------------------------------------*/
.uvt-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.uvt-site-content {
    flex: 1;
}

.uvt-container {
    max-width: var(--uvt-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--uvt-content-padding);
    padding-right: var(--uvt-content-padding);
}

.uvt-content-area {
    padding: var(--uvt-spacing-unit) 0;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.uvt-site-header {
    background-color: var(--uvt-background);
    border-bottom: 1px solid #e0e0e0;
}

.uvt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.uvt-site-branding {
    display: flex;
    align-items: center;
}

.uvt-site-title {
    margin: 0;
    font-size: 1.5em;
}

.uvt-site-title a {
    color: var(--uvt-text);
    font-weight: 700;
}

.uvt-site-description {
    margin: 0;
    font-size: 0.875em;
    color: var(--uvt-secondary);
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.uvt-main-navigation {
    display: flex;
    align-items: center;
}

.uvt-main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.uvt-main-navigation li {
    position: relative;
}

.uvt-main-navigation a {
    color: var(--uvt-text);
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.uvt-main-navigation a:hover {
    color: var(--uvt-primary);
}

/* Dropdown Menü */
.uvt-main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--uvt-background);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    z-index: 1000;
}

.uvt-main-navigation ul li:hover > ul {
    display: flex;
}

.uvt-main-navigation ul ul li {
    width: 100%;
}

.uvt-main-navigation ul ul a {
    padding: 10px 20px;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.uvt-main {
    display: flex;
    gap: var(--uvt-spacing-unit);
}

.uvt-primary {
    flex: 1;
}

.uvt-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Posts */
.uvt-post {
    margin-bottom: calc(var(--uvt-spacing-unit) * 2);
}

.uvt-post-header {
    margin-bottom: 20px;
}

.uvt-post-title {
    font-size: 2em;
    margin-bottom: 10px;
}

.uvt-post-meta {
    color: var(--uvt-secondary);
    font-size: 0.875em;
}

.uvt-post-content {
    line-height: var(--uvt-line-height-base);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.uvt-site-footer {
    background-color: #f5f5f5;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.uvt-footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.uvt-footer-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: var(--uvt-secondary);
    font-size: 0.875em;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--uvt-text);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 5px 0;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .uvt-header-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .uvt-main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .uvt-main {
        flex-direction: column;
    }
    
    .uvt-sidebar {
        width: 100%;
    }
}
