/* ========================================
   TEMPLER WEBSITE - MODERNES LAYOUT 2024
   ======================================== */



/* ========================================
   CSS RESET UND BASIS
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #b6b6b6;
    background-repeat: repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

/* ========================================
   LAYOUT CONTAINER
   ======================================== */
.page-container {
    max-width: 1024px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    width: 100%;
    background: white;
    position: relative;
}

.header-content {
    width: 100%;
    position: relative;
}

.logo {
    display: block;
    text-decoration: none;
    position: relative;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post-It Note Styles */
.post-it-note {
    position: absolute;
    bottom: 15px;
    left: 145px;
    background: #ffeb3b;
    padding: 6px 10px;
    border-radius: 3px;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    transform: rotate(-5deg);
    z-index: 10;
    max-width: 100px;
    font-family: 'Times New Roman', serif;
    font-size: 0.8rem;
    line-height: 1.1;
}

.post-it-note::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffeb3b;
}

.post-it-content {
    text-align: center;
    color: #333;
    font-family: 'Times New Roman', serif;
    font-size: 0.8rem;
}

.post-it-content strong {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 2px;
    color: #d32f2f;
    font-family: 'Times New Roman', serif;
}

.post-it-content em {
    font-style: italic;
    color: #666;
    font-size: 0.8rem;
    font-family: 'Times New Roman', serif;
}

/* Hover-Effekt für das Post-It */
.post-it-note:hover {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

/* Responsive Anpassungen für kleinere Auflösungen */
@media (max-width: 768px) {
    .post-it-note {
        left: 20px;
        bottom: 10px;
        max-width: 80px;
        padding: 5px 8px;
        font-size: 0.7rem;
    }
    
    .post-it-content {
        font-size: 0.7rem;
    }
    
    .post-it-content strong {
        font-size: 0.7rem;
    }
    
    .post-it-content em {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .post-it-note {
        left: 10px;
        bottom: 8px;
        max-width: 70px;
        padding: 4px 6px;
        font-size: 0.65rem;
    }
    
    .post-it-content {
        font-size: 0.65rem;
    }
    
    .post-it-content strong {
        font-size: 0.65rem;
    }
    
    .post-it-content em {
        font-size: 0.65rem;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navigation {
    width: 100%;
    background: white;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.nav-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
    font-family: 'Macondo', cursive !important;
    font-weight: 400;
    font-size: 1.4rem;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.nav-link:hover {
    transform: translateY(-2px);
    color: #8b0000;
    text-shadow: 2px 2px 4px rgba(139,0,0,0.5);
}

.nav-link img {
    height: 39px;
    width: auto;
    display: block;
}

/* ========================================
   MOBILE BURGER MENU
   ======================================== */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
    transition: color 0.3s ease;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile-menu-button:hover {
    color: #8b0000;
}

.mobile-menu-button:focus {
    outline: 2px solid #8b0000;
    outline-offset: 2px;
}

/* Burger Icon Animation */
.mobile-menu-button .burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: currentColor;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-button.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-button.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navigation {
        position: relative;
        padding: 0;
        min-height: 60px;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-top: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    
    .nav-container.mobile-open {
        display: flex;
        max-height: 500px;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        font-size: 1.2rem;
        margin: 0;
        border-radius: 0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover {
        background-color: #f8f9fa;
        transform: none;
    }
    
    .nav-link img {
        height: 25px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .mobile-menu-button {
        font-size: 1.5rem;
        right: 0.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
    
    .nav-link img {
        height: 20px;
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    flex: 1;
    padding: 2rem;
    background: white;
    min-height: 500px;
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Macondo', cursive !important;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-family: 'Macondo', cursive !important;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #8b0000;
}

h2 {
    font-family: 'Macondo', cursive !important;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    color: #8b0000;
}

h3 {
    font-family: 'Macondo', cursive !important;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
    background-color: white;
}

/* ========================================
   LINKS
   ======================================== */
a:link,
a:visited {
    color: black;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:active {
    color: #8b0000;
    text-decoration: underline;
}

/* ========================================
   TABELLEN
   ======================================== */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    background: white;
}

th, td {
    border: none;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #2c3e50;
}

tr:nth-child(even) {
    background-color: white;
}

/* ========================================
   FORMULARE
   ======================================== */
form {
    margin: 1.5rem 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 5px rgba(139, 0, 0, 0.3);
}

input[type="submit"],
button {
    background-color: #8b0000;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
button:hover {
    background-color: #a52a2a;
}

/* ========================================
   BILDER
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

/* ========================================
   TEMPLER-SPEZIFISCHE STYLES
   ======================================== */
.templer-cross {
    color: #8b0000;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.cross {
    width: 19px;
    height: 19px;
    vertical-align: middle;
}

.welcome-content {
    max-width: 100%;
}

.event-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #8b0000;
}

.event-item {
    margin-bottom: 1rem;
}

.event-item.current {
    background-color: #e8f5e8;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.event-item.upcoming {
    background-color: #fff3cd;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.event-item.no-events {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #6c757d;
}

.about-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.news-section {
    margin: 2rem 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    padding: 1rem;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    border-left: 4px solid #8b0000;
}

.news-item h3 {
    margin-bottom: 0.5rem;
    color: #8b0000;
}

.news-date {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.image-caption {
    text-align: center;
    font-style: italic;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ========================================
   MITGLIEDER-SEITE
   ======================================== */
.mitglieder-content {
    max-width: 100%;
}

.rang-section {
    margin: 0.5rem 0;
    padding: 0.75rem;
    background-color: white;
    border-radius: 8px;
}

.rang-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.rang-section h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #333;
    text-align: center;
    font-size: 1.8rem;
}

.rang-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 0.5rem auto;
    display: block;
}

.mitglied-table {
    width: 100%;
    margin: 0.5rem 0;
    border-collapse: collapse;
}

.mitglied-table th {
    background-color: white;
    color: #333;
    padding: 0.75rem;
    font-weight: normal;
    font-size: 0.9rem;
    border-bottom: 2px solid #ddd;
}

.mitglied-table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.mitglied-image {
    max-width: 120px;
    max-height: 120px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.error-message {
    color: #333;
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #666;
    margin: 1rem 0;
}

.info-message {
    color: #0066cc;
    background-color: #e6f3ff;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #0066cc;
    margin: 1rem 0;
}

.rang-block {
    margin: 1rem auto;
    text-align: center;
}

.termine-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 3px solid #8b0000;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.termine-date {
    font-weight: bold;
    color: #8b0000;
}

/* ========================================
   TERMINE LAYOUT
   ======================================== */
.termine-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.termine-list {
    flex: 2;
    min-width: 0; /* Verhindert Überlauf */
}

.termine-image {
    flex: 1;
    flex-shrink: 0;
    max-width: 300px;
}

.termine-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ========================================
   LAYOUT-KLASSEN
   ======================================== */
.flex-container {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.flex-item {
    flex: 1;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.margin-top {
    margin-top: 1.5rem;
}

.margin-bottom {
    margin-bottom: 1.5rem;
}

.padding {
    padding: 1.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
}

.footer img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .page-container {
        margin: 0;
        box-shadow: none;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .nav-container {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-link img {
        height: 35px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .flex-container {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .mitglied-table {
        width: 100%;
    }
    
    input[type="submit"],
    button {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .nav-link img {
        height: 25px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .page-container {
        box-shadow: none;
        max-width: none;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .navigation {
        display: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    img {
        max-width: 300px;
    }
}

/* ========================================
   ANIMATIONEN
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeIn 0.5s ease-out;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #8b0000;
    outline-offset: 2px;
}

/* ========================================
   KNOWLEDGE ARTICLE STYLES
   ======================================== */
.knowledge-article {
    max-width: 100%;
    margin: 0 auto;
}

.article-content {
    margin: 2rem 0;
    line-height: 1.6;
}

.back-link {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.back-link a {
    color: #8b0000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #660000;
}

/* ========================================
   KOMTHUREY LAYOUT
   ======================================== */
.komthurey-content {
    max-width: 100%;
    margin: 0 auto;
}

.komthurey-main {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.komthurey-text {
    flex: 2;
    min-width: 0; /* Verhindert Überlauf */
}

.komthurey-sidebar {
    flex: 1;
    flex-shrink: 0;
    max-width: 300px;
}

.sidebar-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.sidebar-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: block;
}

.komthurey-example-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN FÜR KOMTHUREY
   ======================================== */
@media (max-width: 768px) {
    .komthurey-main {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .komthurey-text {
        flex: 2;
        order: 1;
    }
    
    .komthurey-sidebar {
        flex: 1;
        max-width: none;
        order: 2;
    }
    
    .sidebar-item {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .komthurey-main {
        gap: 1rem;
    }
    
    .sidebar-item {
        margin-bottom: 1rem;
        padding: 0.5rem;
    }
    
    .komthurey-example-image {
        margin: 0.75rem 0;
    }
} 

/* ========================================
   RESPONSIVE DESIGN FÜR TERMINE
   ======================================== */
@media (max-width: 768px) {
    .termine-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .termine-list {
        flex: 2;
        order: 1;
    }
    
    .termine-image {
        flex: 1;
        max-width: none;
        order: 2;
    }
}

@media (max-width: 480px) {
    .termine-content {
        gap: 1rem;
    }
} 