/* villerach.de - Stylesheet
   Replaces PHP-generated CSS from css.inc.php
   Original: Times New Roman 12pt/14pt body, Arial size 2 for content */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Skip Navigation */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 0;
    background: #060647;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.skip-nav:focus {
    top: 0;
}

/* Base */
body {
    background-color: #F5F6F5;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 14pt;
    margin: 0;
    padding: 0;
    color: #000;
}

a {
    color: #000080;
}

a:hover {
    color: #0000CC;
}

img {
    border: 0;
}

/* Page wrapper */
.page-wrapper {
    max-width: 830px;
    margin: 0 auto;
    padding: 10px 0;
}

/* Header / Banner */
.site-header {
    text-align: center;
    margin-bottom: 10px;
}

.head-image {
    display: block;
    margin: 0 auto 10px;
}

.banner-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Main layout */
.site-layout {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    align-items: flex-start;
}

/* Sidebar Navigation */
.sidebar {
    width: 160px;
    flex-shrink: 0;
    padding-top: 5px;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 5px;
}

.nav-buttons a {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.nav-buttons a img {
    display: block;
    border: 0;
}

.nav-buttons a:hover img {
    opacity: 0.8;
}

.nav-buttons a:focus {
    outline: 2px solid #060647;
    outline-offset: 2px;
}

.nav-decoration {
    padding: 10px 5px;
}

.nav-decoration img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Language Switcher */
.lang-switcher {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 10px 5px;
    margin: 0;
}

.lang-switcher a {
    display: block;
    line-height: 0;
}

.lang-switcher a img {
    display: block;
    border: 0;
}

.lang-switcher a:hover img {
    opacity: 0.8;
}

.lang-switcher a:focus {
    outline: 2px solid #060647;
    outline-offset: 2px;
}

/* Content Area */
.content-area {
    flex: 1;
    min-width: 0;
}

/* Content Section */
.content-section {
    padding-top: 5px;
}

.section-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.section-text {
    flex: 1;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    min-width: 0;
}

.section-text p {
    margin: 0 0 10px;
}

.section-text p:last-child {
    margin-bottom: 0;
}

/* Page navigation (weiter/forward/plus) */
.page-nav {
    margin-top: 15px;
}

.section-images {
    flex-shrink: 0;
    max-width: 200px;
}

.section-images a {
    display: block;
    line-height: 0;
    margin-bottom: 10px;
}

.section-images a:last-child {
    margin-bottom: 0;
}

.section-images img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
    margin-bottom: 10px;
}

.section-images img:last-child {
    margin-bottom: 0;
}

/* Lightbox links */
a.lightbox {
    cursor: zoom-in;
}

a.lightbox:hover img {
    opacity: 0.85;
}

/* Contact page */
.contact-info {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.8;
}

.contact-photo {
    max-width: 200px;
}

.contact-photo img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Language Selection Page (index.html) */
.lang-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.lang-page .head-image {
    margin-bottom: 30px;
}

.lang-page .banner-image {
    margin-bottom: 60px;
}

.lang-select {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.lang-select a {
    display: block;
    line-height: 0;
}

.lang-select a img {
    display: block;
    border: 0;
}

.lang-select a:hover img {
    opacity: 0.8;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.lang-select a:focus {
    outline: 2px solid #060647;
    outline-offset: 4px;
}

/* Image Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal.active {
    display: flex;
}

.modal-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
}

.modal-close:hover {
    color: #ccc;
}

/* Focus styles for keyboard navigation */
a:focus-visible {
    outline: 2px solid #060647;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .sidebar, .skip-nav, .modal {
        display: none !important;
    }
    .site-layout {
        display: block;
    }
    .content-area {
        width: 100%;
    }
}
