/*
Theme Name: Grundgerüst Theme
Theme URI: https://example.com
Author: Dein Name
Author URI: https://example.com
Description: Ein einfaches Grundgerüst-Theme mit Sticky-Header und responsive Menü
Version: 1.1
License: GPL v2 or later
Text Domain: grundgeruest-theme
*/


/* Montserrat Font lokal einbinden */
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat-v31-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat-v31-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat-v31-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat-v31-latin-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wp-block-table td, .wp-block-table th {
    border: 0px solid;
    padding: .2em;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding-top: 120px; /* Vergrößerter Platz für Header (80px * 1.33 = ~107px, aufgerundet auf 120px) */
    transition: padding-top 0.3s ease;
}

p,
li,
td,
input,
textarea,
select,
button {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

/* NUR Seitentitel ausblenden - nicht alle H1-Überschriften */
.page-title,
h1.page-title,
.entry-title,
h1.entry-title {
    display: none !important;
}

/* Aber Dummy-Section H2 und andere Überschriften bleiben sichtbar */
.dummy-section h2,
.content-area h2,
.content-area h3,
.content-area h1:not(.page-title):not(.entry-title) {
    display: block;
}

/* Überschriften - Bold (800) */
h1, h2, h3, h4, h5, h6,
.dummy-section h1,
.dummy-section h2,
.dummy-section h3,
.footer-widget-title {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* #########################################################################*/

/* Top-Balken */

.header-wrapper {
    background: #000000; /* Verhindert weißen Hintergrund beim Scrollen */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-bar {
    background: #000000;
    color: #ffffff;
    height: 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.header-scrolled .top-bar {
    height: 0;
    opacity: 0;
}

.top-bar-inner {
    max-width: 1130px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar-contact {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
    display: flex;
    align-items: center;
    gap: 0;
}

.top-bar-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 8px;
}

.top-bar-contact a:hover {
    color: #ff6800;
}

.top-bar-separator {
    color: #ffffff;
    opacity: 0.5;
}

/* Top-Balken verstecken beim Scrollen */
.header-scrolled .top-bar {
    transform: translateY(-100%);
    opacity: 0;
}

/* Sticky Header - Position unter dem Top-Balken */
.site-header {
    position: relative;
    top: 24px; /* Beginnt unter dem 24px Top-Balken */
     background-image: url('https://paragram.de/webseiten/knoell_wp/wp-content/uploads/2026/06/Balken.jpg');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 100%;
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    padding: 8px 0;
}

/* Wenn gescrollt wird - Header geht nach ganz oben */
.site-header.scrolled {
    top: 0; /* Header rutscht nach oben, Top-Balken verschwindet */
    padding: 3px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Body Padding - Platz für Top-Balken + Header */
body {
    padding-top: 144px; /* 120px (Header) + 24px (Top-Balken) */
}

/* Wenn gescrollt - nur noch Header-Höhe */
body.header-scrolled {
    padding-top: 120px; /* Nur Header-Höhe */
}

/* Mobile: Top-Balken ausblenden */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .site-header {
        top: 0; /* Header beginnt ganz oben auf Mobile */
    }
    
    body {
        padding-top: 100px; /* Mobile Header-Höhe */
    }
    
    body.header-scrolled {
        padding-top: 70px;
    }
}



/* #########################################################################*/







/* Sticky Header - mit Hintergrundbild 
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-image: url('https://paragram.de/webseiten/knoell_wp/wp-content/uploads/2026/06/Balken.jpg');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 100%;
    color: white;
    z-index: 1000;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.15); 
    transition: all 0.3s ease;
    padding: 8px 0;
}

.site-header.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
} Header verkleinert sich beim Scrollen */

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    max-width: 1130px;
    margin: 0 auto;
    transition: padding 0.3s ease;
}

.site-header.scrolled .header-inner {
    padding: 8px 20px;
}

/* Logo und Titel Container */
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    height: 96px; /* Vergrößertes Logo */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
   transition: filter 0.3s ease;
   transition: height 0.3s ease; 
}

.site-logo:hover {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.site-header.scrolled .site-logo {
    height: 50px; /* Verkleinertes Logo beim Scrollen */
}

/* Fallback für PNG Logo */
.site-logo img {
    height: 100%;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    white-space: nowrap;
}

.site-title:hover {
    color: #ecf0f1;
}

/* Hauptnavigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 5px;
}

.menu li {
    position: relative;
}

.menu a,
.main-navigation a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

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

/* Dropdown Menü */
.menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 200px;
    z-index: 1001;
}

.menu li:hover > .sub-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.menu .sub-menu a {
    color: #333;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.menu .sub-menu a:hover {
    background: #f8f9fa;
    color: #3498db;
    transform: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hauptinhalt */
.site-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.content-area {
    background: white;
    padding: 40px;
    border-radius: 4px;
/*    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.1), 
        0 3px 10px rgba(0, 0, 0, 0.15), 
        0 3px 15px rgba(0, 0, 0, 0.1);*/
    margin-bottom: 30px;
}

/* Dummy Content Styles */
.dummy-section {
    margin-bottom: 40px;
}

.dummy-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.dummy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.dummy-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.dummy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dummy-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.dummy-card p {
    color: #666;
    line-height: 1.8;
}

.dummy-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item i {
    font-size: 40px;
    margin-bottom: 15px;
}

.dummy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dummy-table th,
.dummy-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.dummy-table th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
}

.dummy-table tr:hover {
    background: #f8f9fa;
}

/* Footer */
.site-footer {
     background-image: url('https://paragram.de/webseiten/knoell_wp/wp-content/uploads/2026/06/Footer-2.jpg');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 100%;
    color: white;
    padding: 40px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget {
    padding: 20px;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    color: #ffffff;
}

.footer-widget h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 10px;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    font-weight: 600;
}

.footer-widget p,
.footer-widget li {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #ff6800;
}

.footer-bottom {
    background: #000000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333333;
}

.footer-bottom p {
    color: #cccccc;
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 100px; /* Angepasst für Mobile */
    }
    
    body.header-scrolled {
        padding-top: 70px;
    }
    
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-branding {
        width: 100%;
    }
    
    .site-logo {
        height: 60px; /* Kleineres Logo auf Mobile */
    }
    
    .site-header.scrolled .site-logo {
        height: 40px;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
    }
    
    .site-header.scrolled .menu-toggle {
        top: 15px;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2c3e50;
        padding: 10px 0;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        width: 100%;
    }
    
    .menu a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .menu .sub-menu {
        position: static;
        display: none;
        background: #34495e;
        box-shadow: none;
    }
    
    .menu .sub-menu.active {
        display: block;
    }
    
    .menu .sub-menu a {
        color: white;
        padding-left: 30px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .dummy-grid {
        grid-template-columns: 1fr;
    }
    
    .dummy-services {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 18px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .site-logo {
        height: 50px;
    }
    
    .site-header.scrolled .site-logo {
        height: 35px;
    }
}

/* ############################ Showcase Block ############################# */

/* Showcase Block */
.showcase-block {
    margin-bottom: 0px;
    margin-top: 30px;
}

.showcase-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 430px; /* Feste Höhe - bestimmt Bild- und Textfeldhöhe */
    padding-top: 30px;
    padding-bottom: 30px;
}

.showcase-image {
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%; /* Füllt die verfügbare Höhe */
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-content {
    position: absolute; /* Absolute Positionierung statt relative */
    top: calc(30px - 35px); /* padding-top minus Überlappung */
    right: 0;
    bottom: 70px; /* padding-bottom */
    width: calc(50% + 50px); /* Halbe Breite plus Überlappung */
    z-index: 2;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.3));
    overflow: hidden;
}

/* Weißer Hintergrund mit schräger Kante und Schatten */
.showcase-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%);
    z-index: -1;
}

.showcase-content-inner {
        padding: 40px 40px 40px 110px;
    width: 100%;
    position: relative;
    z-index: 1;
    max-height: 100%; /* Begrenzt auf Container-Höhe */
    overflow-y: auto; /* Scrollbar falls nötig (optional) */
}

.showcase-title {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.showcase-subtitle {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #bc6326;
    margin-bottom: 10px;
    line-height: 1.4;
}

.showcase-text {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.showcase-link {
    display: inline-block;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: #b65a00;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.showcase-link:hover {
    color: #ff6800;
}

/* Einfache CSS-Animation beim Laden
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} */

/* Animation nur beim ersten Laden ausführen 
.showcase-image {
    animation: slideInLeft 1s ease-out forwards;
}

.showcase-content {
    animation: slideInRight 1s ease-out 0.3s forwards;
    opacity: 0;
}

.showcase-content-inner {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}*/

/* Verhindert Animation bei Geräten die reduzierte Bewegung bevorzugen */
@media (prefers-reduced-motion: reduce) {
    .showcase-image,
    .showcase-content,
    .showcase-content-inner {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ################################# GESPIEGELTE VERSION ################################## */

.showcase-reversed .showcase-inner {
    direction: rtl;
    top:-40px;
}

.showcase-reversed .showcase-image {
    direction: ltr;
}

.showcase-reversed .showcase-content {
    order: 1;
    left: 0;
    right: auto;
    margin-left: 0;
    margin-right: -50px;
    top: auto;
    bottom: calc(30px - 35px);
    /* clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 100%, 0 100%);*/
    text-align: left;
    direction: ltr;
   /* animation: slideInLeft 1s ease-out 0.3s forwards; */
    width: calc(50% + 50px);
        filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.3));
    
}

.showcase-reversed .showcase-content::before {
     clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
    /* Verhindert Subpixel-Artefakte an der Kante */
    outline: 1px solid transparent;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Entfernt den Punkt - das ist der entscheidende Fix */
.showcase-reversed .showcase-text::first-letter {
    /* Verhindert, dass der erste Buchstabe als Bullet gerendert wird */
}

.showcase-reversed .showcase-content-inner * {
    /* Verhindert Rendering-Artefakte */
    transform: translateZ(0);
}

.showcase-reversed .showcase-content-inner {
    padding: 40px 110px 40px 40px;
}

/* Animation für reversed - Bild kommt von rechts, Text von links 
.showcase-reversed .showcase-image {
    animation: slideInRight 1s ease-out forwards;
}

.showcase-reversed .showcase-content {
    animation: slideInLeft 1s ease-out 0.3s forwards;
}*/

/* Mobile: Keine Spiegelung */

@media (max-width: 768px) {
    .showcase-inner {
                display: block;
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .showcase-image {
        height: 250px;
    }
    
    .showcase-content {
        position: relative;
        top: -20px;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .showcase-content::before {
        clip-path: none;
    }
    
    .showcase-content-inner {
        padding: 30px 20px;
    }
    
    .showcase-title {
        font-size: 22px;
    }
    
    /* Reversed Mobile */
    .showcase-reversed .showcase-inner {
        direction: ltr;
    }
    
    .showcase-reversed .showcase-content {
        left: auto;
        right: auto;
        margin-right: 0;
        top: -20px;
        bottom: auto;
        clip-path: none;
    }
    
    .showcase-reversed .showcase-content::before {
        clip-path: none;
    }
    
    .showcase-reversed .showcase-content-inner {
        padding: 30px 20px;
    }
}
