/* ==========================================================================
   Collies vom Blendsteinhaus
   ========================================================================== */

/* CSS Variables */
:root {
    --primary: #8B2323;
    --primary-light: #A63030;
    --primary-dark: #6B1818;
    --accent: #C44536;
    --gold: #D4A853;
    --text-dark: #2D2D2D;
    --text-medium: #5A5A5A;
    --text-light: #ffffff;
    --bg-light: #FAFAFA;
    --bg-subtle: #F5F5F5;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(139, 35, 35, 0.85);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-glass: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glass: 0 8px 32px rgba(139, 35, 35, 0.15);
    --blur: blur(20px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --container-width: 1400px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);
    min-height: 100vh;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 400;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.75rem; }
h4 { font-size: 1.25rem; margin-top: 1.5rem; }

/* First heading in content shouldn't have top margin */
.content-main > h1:first-child,
.content-main > h2:first-child,
.content-main > h3:first-child,
.com-content-article > h1:first-child,
.com-content-article > h2:first-child {
    margin-top: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Header - Glass Effect
   ========================================================================== */
.site-header {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 3rem;
}

.brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.site-logo {
    max-height: 70px;
    width: auto;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.site-tagline {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 0.15rem;
    font-weight: 300;
}

/* Navigation */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
}

.main-nav li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a,
.main-nav > ul > li.current > a {
    background: rgba(139, 35, 35, 0.08);
    color: var(--primary);
}

/* Dropdown - Glass */
.main-nav ul ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: var(--shadow-medium);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.main-nav li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-nav ul ul li a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.main-nav ul ul li a:hover {
    background: rgba(139, 35, 35, 0.08);
    color: var(--primary);
}

/* Dropdown indicator - hidden */
.main-nav > ul > li.parent > a::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.menu-toggle:hover {
    background: rgba(139, 35, 35, 0.08);
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--primary);
    position: relative;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--primary);
    left: 0;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Hamburger → X animation */
.menu-toggle.is-active .hamburger {
    background-color: transparent;
}

.menu-toggle.is-active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs-section {
    background: transparent;
    padding: 0.5rem 0;
}

.breadcrumbs-section nav {
    font-size: 0.875rem;
}

.breadcrumbs-section ol,
.breadcrumbs-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs-section li {
    display: flex;
    align-items: center;
    color: var(--text-medium);
}

.breadcrumbs-section li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.4;
}

.breadcrumbs-section a {
    color: var(--text-medium);
}

.breadcrumbs-section a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    padding: 0.5rem 0 4rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.content-grid.has-sidebar-left {
    grid-template-columns: 280px 1fr;
}

.content-grid.has-sidebar-right {
    grid-template-columns: 1fr 280px;
}

.content-main {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Direct module styling in sidebar - Glass Design */
.sidebar > div,
.sidebar .card {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Module title as header */
.sidebar > div > h3,
.sidebar .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

.sidebar .card-header h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

.sidebar .card-body {
    padding: 0.5rem;
}

.sidebar .card-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .card-body li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
}

.sidebar .card-body li a:hover,
.sidebar .card-body li.active > a {
    background: rgba(139, 35, 35, 0.1);
    color: var(--primary);
}

/* Sidebar Menu (mod_menu) */
.sidebar .mod-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .mod-menu > .nav-item {
    border-bottom: 1px solid rgba(139, 35, 35, 0.08);
}

.sidebar .mod-menu > .nav-item:last-child {
    border-bottom: none;
}

.sidebar .mod-menu > .nav-item > a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.9rem;
    background: transparent;
    border-left: 3px solid transparent;
}

.sidebar .mod-menu > .nav-item > a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 0.65rem;
    opacity: 0.5;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar .mod-menu > .nav-item > a:hover,
.sidebar .mod-menu > .nav-item.active > a {
    background: rgba(139, 35, 35, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar .mod-menu > .nav-item > a:hover::before,
.sidebar .mod-menu > .nav-item.active > a::before {
    opacity: 1;
    transform: scale(1.2);
}

/* Memoriam separator (parent with children) */
.sidebar .mod-menu > .nav-item.parent {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(139, 35, 35, 0.15);
    border-bottom: none;
}

.sidebar .mod-menu > .nav-item.parent > a::before {
    background: #999;
    opacity: 0.4;
}

/* Sidebar Submenu (children under Memoriam) */
.sidebar .mod-menu__sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .mod-menu__sub > .nav-item {
    border-bottom: 1px solid rgba(139, 35, 35, 0.05);
}

.sidebar .mod-menu__sub > .nav-item:last-child {
    border-bottom: none;
}

.sidebar .mod-menu__sub > .nav-item > a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 2rem;
    color: var(--text-medium);
    font-size: 0.85rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar .mod-menu__sub > .nav-item > a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #999;
    border-radius: 50%;
    margin-right: 0.5rem;
    opacity: 0.4;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar .mod-menu__sub > .nav-item > a:hover,
.sidebar .mod-menu__sub > .nav-item.active > a {
    background: rgba(139, 35, 35, 0.05);
    color: var(--primary);
    border-left-color: rgba(139, 35, 35, 0.3);
}

.sidebar .mod-menu__sub > .nav-item > a:hover::before,
.sidebar .mod-menu__sub > .nav-item.active > a::before {
    background: var(--primary);
    opacity: 0.7;
}

/* Sidebar: always show submenus, hide toggle button */
.sidebar .mod-menu__toggle-sub {
    display: none;
}

.sidebar .mod-menu__sub {
    display: block !important;
}

/* ==========================================================================
   Footer - Modern Multi-Column
   ========================================================================== */
.site-footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.footer-column ul,
.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li,
.footer-links li,
.footer-contact li {
    margin-bottom: 0.6rem;
}

.footer-column a,
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-column a:hover,
.footer-links a:hover {
    color: var(--text-light);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-member {
    font-size: 0.8rem !important;
    opacity: 0.6 !important;
}

/* Footer Logos */
.footer-logos {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: center;
}

.footer-logos img {
    height: 50px;
    width: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logos img:hover {
    opacity: 1;
}

.footer-logos .logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Footer Contact */
.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-bottom-links a:hover {
    opacity: 1;
}

/* Old footer content styling (module) */
.footer-content {
    margin-bottom: 2rem;
}

.site-footer .mod-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .mod-menu li {
    margin-bottom: 0.5rem;
}

.site-footer .mod-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.site-footer .mod-menu a:hover {
    color: var(--text-light);
}

/* ==========================================================================
   Content Styling
   ========================================================================== */

/* Lead Paragraph */
.lead {
    font-size: 1.25rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Welcome Section */
.welcome-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Quality Grid */
.collie-qualities h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.quality-item {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: var(--transition);
}

.quality-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(139, 35, 35, 0.2);
}

.quality-item h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.quality-item p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* CTA */
.cta {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 35, 35, 0.08) 0%, rgba(139, 35, 35, 0.04) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 35, 35, 0.1);
}

.cta-phone {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

.cta-phone a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.cta-phone a:hover {
    color: var(--primary-light);
}

/* Dog Profile */
.dog-profile {
    max-width: 100%;
}

.dog-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.dog-header h2 {
    margin-bottom: 0.25rem;
    font-size: 2.25rem;
}

.dog-nickname {
    font-style: italic;
    color: var(--text-medium);
    font-size: 1.1rem;
    margin: 0;
}

.dog-data,
.litter-data {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

/* Spacing after tables for headings */
table + h2,
table + h3,
.dog-data + h2,
.dog-data + h3,
.litter-data + h2,
.litter-data + h3 {
    margin-top: 2.5rem;
}

.dog-data th,
.dog-data td,
.litter-data th,
.litter-data td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.dog-data th,
.litter-data th {
    width: 180px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(139, 35, 35, 0.04);
}

.dog-data tr:last-child th,
.dog-data tr:last-child td,
.litter-data tr:last-child th,
.litter-data tr:last-child td {
    border-bottom: none;
}

/* Erfolge Table */
.erfolge-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1.5rem 0 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.erfolge-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.erfolge-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.erfolge-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.erfolge-table tbody tr:hover {
    background: rgba(139, 35, 35, 0.04);
}

.erfolge-table tbody tr:last-child td {
    border-bottom: none;
}

.erfolge-table a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(139, 35, 35, 0.3);
}

.erfolge-table a:hover {
    text-decoration-color: var(--primary);
}

.erfolge-table .gold {
    color: #B8860B;
}

.erfolge-table strong {
    font-weight: 600;
}

/* Photo Gallery with Captions */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-item {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 35, 35, 0.15);
}

.photo-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.photo-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.photo-gallery .photo-item:only-child img {
    height: 450px;
}

.photo-item figcaption,
.photo-caption {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.5);
}

/* Memoriam */
.memoriam-section {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.memorial-quote {
    font-style: italic;
    padding: 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(139, 35, 35, 0.06) 0%, rgba(139, 35, 35, 0.02) 100%);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Contact */
.contact-info {
    background: var(--bg-subtle);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

/* News */
.news-item {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Hide article info */
.article-info,
.article-info.muted,
.article-info.text-muted,
.com-content-article .article-info {
    display: none;
}

/* Page header */
.page-header h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--primary);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Joomla Overrides
   ========================================================================== */
.com-content-article .page-header {
    display: none;
}

.com-content-article__body {
    line-height: 1.8;
}

.com-content-article__body img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.com-content-article__body .photo-item img {
    border-radius: 0;
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-glass);
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 35, 35, 0.1);
}

button,
.btn,
input[type="submit"] {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: rgba(139, 35, 35, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
    background: rgba(139, 35, 35, 0.95);
    color: var(--text-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 35, 35, 0.3);
}

/* Joomla Article Navigation */
.com-content-article__links,
.article-footer-links,
.pager,
.pagination {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.com-content-article__links a,
.readmore a,
a.readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 35, 35, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary) !important;
    border: 1px solid rgba(139, 35, 35, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.com-content-article__links a:hover,
.readmore a:hover,
a.readmore:hover {
    background: rgba(139, 35, 35, 0.9);
    color: var(--text-light) !important;
    border-color: var(--primary);
}

/* Smaller ghost button variant */
.btn-ghost,
.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: var(--primary) !important;
    border: 1px solid rgba(139, 35, 35, 0.2);
}

.btn-ghost:hover,
.btn-sm:hover {
    background: var(--primary);
    color: var(--text-light) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1100px) {
    .site-logo-text {
        font-size: 1.1rem;
    }

    .site-tagline {
        font-size: 0.7rem;
    }

    .main-nav > ul > li > a {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }

    .main-nav > ul {
        gap: 0;
    }
}

@media (max-width: 992px) {
    .content-grid.has-sidebar-left,
    .content-grid.has-sidebar-right {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 1;
    }

    .content-main {
        order: 0;
    }

    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .container {
        padding: 0 1.25rem;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 0.75rem 0;
        justify-content: space-between;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        order: 1;
    }

    .brand {
        order: 0;
        flex: 1;
    }

    .main-nav {
        order: 2;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(139, 35, 35, 0.95) 0%, rgba(100, 20, 20, 0.97) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.is-open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-nav > ul {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0;
        align-items: stretch;
    }

    .main-nav > ul > li > a {
        padding: 0.85rem 1rem;
        display: block;
        text-align: left;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        transition: all 0.2s ease;
    }

    .main-nav > ul > li:last-child > a {
        border-bottom: none;
    }

    .main-nav > ul > li > a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    .main-nav > ul > li.active > a,
    .main-nav > ul > li.current > a {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        border-bottom-color: transparent;
    }

    /* Untermenüs im Mobilmenü ausblenden */
    .main-nav ul ul {
        display: none;
    }

    .content-main {
        padding: 1.5rem;
    }

    .quality-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .back-to-top,
    .breadcrumbs-section {
        display: none !important;
    }

    .content-main {
        box-shadow: none;
        padding: 0;
        background: white;
    }

    body {
        background: white;
    }
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 3rem;
}

.lightbox-overlay.visible {
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 70vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.visible img {
    transform: scale(1);
}

.lightbox-caption {
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(139, 35, 35, 0.7);
    border-color: white;
    transform: scale(1.1);
}

.photo-item {
    cursor: pointer;
}

/* ==========================================================================
   Blendsteinhaus - Haus mit Hunden in Fenstern
   ========================================================================== */

.blendsteinhaus-section {
    max-width: 1100px;
    margin: 2rem auto;
}

.blendsteinhaus-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.blendsteinhaus-container > img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.window-dog {
    position: absolute;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.window-dog img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.window-dog a {
    display: block;
    width: 100%;
    height: 100%;
}

.window-dog:hover img {
    transform: scale(1.08);
}

.window-dog .dog-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 35, 35, 0.85);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.window-dog:hover .dog-label {
    opacity: 1;
}

/* Fensterpositionen (prozentual zum Bild 2048x1536) */
/* Untere Reihe - 3 Fenster */
.window-bottom-left {
    top: 58%;
    left: 18%;
    width: 11%;
    height: 22%;
}

.window-bottom-center {
    top: 58%;
    left: 46%;
    width: 11%;
    height: 22%;
}

.window-bottom-right {
    top: 58%;
    left: 66%;
    width: 11%;
    height: 22%;
}

@media (max-width: 600px) {
    .blendsteinhaus-section {
        margin: 1rem auto;
    }
    .window-dog .dog-label {
        font-size: 0.55rem;
        padding: 1px 6px;
        bottom: -16px;
    }
}
