/*
Theme Name: Lahne Rechtsseminare
Author: Dein Name / AI Assistant
Description: Custom Theme basierend auf dem Original-Design von Alexander Lahne.
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Links allgemein */
a {
    color: inherit;
    text-decoration: none;
}

/* Index Page Styles (Splash Screen) */
.index-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.index-title {
    font-size: 2.5rem;
    font-weight: normal;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.index-title:hover {
    opacity: 0.7;
}

.name-part {
    color: #335933;
}

.subtitle-part {
    color: #dc6022;
}

/* Home Page Styles (Kachel-Menü) */
.home-page {
    height: 100vh;
    position: relative;
    background-color: #ffffff;
}

.home-header {
    position: absolute;
    top: 70px;
    left: 70px;
    font-size: 1.8rem;
    font-weight: normal;
}

.home-navigation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0px;
}

.nav-square {
    width: 120px;
    height: 120px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #dc6022;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.nav-square:hover {
    background-color: #e0e0e0;
}

.home-footer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    color: #666;
}

.home-footer a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
}

/* Content Page Styles (Unterseiten) */
.content-page {
    min-height: 100vh;
    padding: 70px;
    background-color: #ffffff;
    position: relative;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.content-title {
    font-size: 1.8rem;
    font-weight: normal;
}

.content-title a:hover {
    opacity: 0.7;
}

.content-nav {
    display: flex;
    gap: 0px;
}

.content-nav-square {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #dc6022;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.content-nav-square:hover {
    background-color: #e0e0e0;
}

/* Active State für WordPress */
.content-nav-square.active, 
.current-menu-item .content-nav-square {
    background-color: #4a4a4a;
    color: #ffffff;
}

.content-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
}

.content-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #4a4a4a;
}

.content-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* Bilder responsive */
.portrait-image, .wp-block-image img {
    float: right;
    margin: 0 0 20px 30px;
    max-width: 300px;
    height: auto;
    border-radius: 5px;
}

.content-footer {
    position: relative;
    text-align: center;
    margin-top: 80px;
    padding-bottom: 30px;
}

.footer-line {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 0.8rem;
    color: #666;
}

.footer-text a {
    margin: 0 5px;
}

.nach-oben {
    position: fixed;
    bottom: 40px;
    right: 70px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    z-index: 100;
}

.nach-oben:hover {
    color: #333;
}

/* Spezielle Elemente für Seminare & Publikationen */
.seminar-item {
    margin-bottom: 30px;
    padding: 20px;
    border-left: 3px solid #9bb5d1;
    background-color: #f9f9f9;
}

.seminar-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.publikation-item {
    margin-bottom: 25px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.referenz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 80px;
}

.referenz-item {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .content-page { padding: 30px; }
    .content-header { flex-direction: column; gap: 20px; }
    .content-nav { align-self: flex-end; }
    .portrait-image { float: none; display: block; margin: 0 auto 20px auto; max-width: 250px; }
    .home-header { top: 30px; left: 30px; font-size: 1.4rem; }
    .home-navigation { flex-wrap: wrap; gap: 5px; }
    .nav-square { width: 100px; height: 100px; font-size: 0.85rem; }
    .nach-oben { bottom: 30px; right: 30px; }
}

@media (max-width: 480px) {
    .subtitle-part { display: block; }
    .index-title { font-size: 2rem; }
}