/*
Theme Name: notarin-loeffler
Author: Antigravity
Description: WordPress theme for Tina Löffler - Notarin in Sömmerda
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    background-color: #f5f5f5;
    color: #333;
}

/* Header & Nav */
.site-header {
    background-color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.site-branding-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

.branding-wappen {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
}

.nav-links a:hover {
    background-color: #34495e;
}

.dropdown, .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    list-style: none;
    min-width: 220px;
    z-index: 1001;
}

/* Last two nav items: dropdown aligned right to prevent overflow */
.nav-links > li:nth-last-child(-n+2) > .dropdown,
.nav-links > li:nth-last-child(-n+2) > .sub-menu {
    left: auto;
    right: 0;
}

.has-dropdown:hover > .dropdown,
.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.burger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
}

/* Hero Section */
.hero {
    width: 100vw;
    height: 350px;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    background: rgba(44, 62, 80, 0.7);
    padding: 20px;
    border-radius: 8px;
}

.hero-logo {
    max-width: 200px;
}

/* Main Content */
.main-content {
    background-color: #fff;
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

.content-main {
    flex: 1;
}

.sidebar {
    width: 300px;
}

/* Teaser Grid */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.teaser-card {
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.teaser-card img {
    max-width: 80px;
    margin-bottom: 15px;
}

.teaser-card a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

/* Two Columns */
.two-columns {
    display: flex;
    gap: 40px;
}

.two-columns > div {
    flex: 1;
}

/* Form Styles */
.kontakt-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kontakt-form .full-width {
    grid-column: span 2;
}

.kontakt-form input[type="text"],
.kontakt-form input[type="email"],
.kontakt-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.kontakt-form textarea {
    height: 150px;
}

.kontakt-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

/* DSGVO checkbox inline with text */
.kontakt-form .full-width label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.kontakt-form input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.success-msg {
    color: #27ae60;
    font-weight: 600;
    padding: 15px;
    background: #eafaf1;
    border-radius: 4px;
    grid-column: span 2;
}

.error-msg {
    color: #c0392b;
    font-weight: 600;
    padding: 15px;
    background: #fdedec;
    border-radius: 4px;
    grid-column: span 2;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #2c3e50;
    color: #fff;
}

.btn-secondary {
    background-color: #34495e;
    color: #fff;
}

/* Sidebar Info */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.info-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.info-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    color: #2c3e50;
    width: 110px;
}

.sidebar h3 {
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.sidebar .wappen {
    max-width: 100%;
    margin-top: 20px;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
}

/* Aktuelles Feed */
.bnotk-feed-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bnotk-feed-date {
    font-size: 0.9em;
    color: #666;
}

.bnotk-feed-title {
    font-weight: 600;
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
    }
    .nav-links.active {
        display: flex;
    }
    .burger-btn {
        display: flex;
    }
    .teaser-grid {
        grid-template-columns: 1fr 1fr;
    }
    .two-columns, .content-wrapper, .kontakt-form {
        flex-direction: column;
    }
    .sidebar, .kontakt-form .full-width {
        width: 100%;
    }
    .hero {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .teaser-grid {
        grid-template-columns: 1fr;
    }
}
