/* ══════════════════════════════════════════════════════════
   HausHeimHandwerk — main.css
   Layout: Breite = 160% der Bildschirmhöhe (16:10)
   Seitenverhältnis bleibt auf allen Screens gleich.
   Seitlicher Leerraum auf großen Monitoren = gewollt.
   ══════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/roboto-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
:root {
    --primary-color:    #1a364d;
    --secondary-color:  #c09e6c;
    --text-color:       #333;
    --background-color: #f8f9fa;
    --header-height:    110px;
    --transition-speed: 0.4s;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    background-color: var(--background-color);
    overflow-x: hidden;
}
html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}
body {
    overflow-x: hidden;
    animation: softPageFadeIn 1s ease-out forwards;
}
@keyframes softPageFadeIn {
    0%   { opacity: 0; transform: translateY(0.5px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* ══════════════════════════════════════════════════════════
   PAGE WRAPPER — Kern des proportionalen Layouts
   min(calc(100dvh * 1.6), 100vw):
   → 100dvh = aktuelle Bildschirmhöhe (dynamic viewport height)
   → × 1.6  = 16:10 Verhältnis
   → min(…, 100vw) = nie breiter als der Viewport
   Beispiele:
   → 900px hoch  → 1440px breit  (auf 1920px: 240px Rand)
   → 1080px hoch → 1728px breit  (auf 2560px: 416px Rand)
   → 1440px hoch → 2304px breit  (auf 3440px: 568px Rand)
   → Tablet 800px hoch → 1280px  (auf 1024px: 100vw greift)
   ══════════════════════════════════════════════════════════ */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: min(calc(100dvh * 1.6), 100vw);
    margin: 0 auto;
    padding: 0 40px;
}
.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    padding: 0 20px;
    position: relative;
    flex-shrink: 0;
}
.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.logo-container img { height: 75px; width: auto; }
.logo-container:hover { transform: scale(1.02); }
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.2px;
    font-weight: 700;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--secondary-color); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.main-content {
    flex: 1;
    display: flex;
    gap: 35px;
    padding: 40px 0;
}
.content-block {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    border-top: 6px solid var(--secondary-color);
    transition: transform var(--transition-speed) ease;
}
.content-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 55px rgba(0,0,0,0.12);
}
.block-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.text-area {
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.main-title {
    color: var(--primary-color);
    font-size: 1.7rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.leistungspunkte {
    list-style: none;
    margin-bottom: 25px;
    flex: 1;
}
.leistungspunkte li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #555;
}
.button {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 16px 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 2px;
    transition: background 0.3s;
    display: inline-block;
}
.button:hover { background: var(--secondary-color); }
.main-footer {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.main-footer a { color: inherit; text-decoration: none; }
.main-footer a:hover { color: var(--secondary-color); }
.vcard-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    background-color: #fff;
    opacity: 0;
    transform: scale(0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 1.2s cubic-bezier(0.68,-0.55,0.27,1.55), opacity 0.5s, visibility 0.5s;
}
.vcard-overlay.is-active {
    opacity: 1; transform: scale(1);
    visibility: visible; pointer-events: auto;
}
.vcard-overlay iframe { width: 100%; height: 100%; border: none; }
.cookie-overlay {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.8) !important;
    color: white;
    padding: 25px;
    text-align: center;
    z-index: 100000;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    border-top: 2px solid var(--secondary-color);
}
.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.btn-primary {
    background: var(--secondary-color); color: white;
    border: none; padding: 12px 25px; cursor: pointer;
    border-radius: 2px; font-weight: 700;
    text-transform: uppercase; font-size: 0.8rem;
    transition: background 0.3s ease;
}
.btn-secondary {
    background: rgba(255,255,255,0.1); color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 25px; cursor: pointer;
    border-radius: 2px; font-size: 0.8rem;
    text-transform: uppercase; transition: all 0.3s ease;
}
.btn-primary:hover  { background: #d4b17d; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); border-color: white; }
/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
    .main-nav ul { gap: 24px; }
    .main-nav a  { font-size: 0.82rem; letter-spacing: 1px; }
    .page-wrapper { padding: 0 28px; }
}
@media (max-width: 1024px) {
    .page-wrapper { padding: 0 20px; }
    .main-nav ul  { gap: 16px; }
    .main-nav a   { font-size: 0.76rem; letter-spacing: 0.7px; }
    .logo-container img { height: 58px; }
    .main-content { gap: 20px; padding: 28px 0; }
    .block-img    { height: 200px; }
    .text-area    { padding: 24px; }
}
@media (max-width: 768px) {
    :root { --header-height: 72px; }
    .page-wrapper { padding: 0 14px; }
    .logo-container img { height: 46px; }
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0; right: 0;
        background: #fff;
        border-bottom: 3px solid var(--secondary-color);
        box-shadow: 0 8px 24px rgba(0,0,0,0.14);
        z-index: 1000;
        padding: 6px 0;
    }
    .main-nav.open { display: block; }
    .main-nav ul   { flex-direction: column; gap: 0; }
    .main-nav ul li a {
        display: block;
        padding: 13px 22px;
        font-size: 0.82rem;
        border-bottom: 1px solid #f0f0f0;
        letter-spacing: 1px;
        transition: background 0.2s, padding-left 0.2s;
    }
    .main-nav ul li:last-child a { border-bottom: none; }
    .main-nav a:hover { background: #fdfaf5; padding-left: 30px; }
    .main-content { flex-direction: column; gap: 14px; padding: 16px 0; }
    .content-block:hover { transform: none; } 
    .block-img  { height: 170px; }
    .text-area  { padding: 18px; }
    .main-title { font-size: 1.3rem; }
    .leistungspunkte li { font-size: 0.88rem; }
    .main-footer {
        height: auto;
        padding: 14px 10px;
        text-align: center;
        font-size: 0.72rem;
        line-height: 2;
    }
    .cookie-overlay { padding: 18px 14px; }
    .cookie-buttons { gap: 10px; }
}
@media (max-width: 480px) {
    :root { --header-height: 62px; }
    .page-wrapper { padding: 0 10px; }
    .logo-container img { height: 38px; }
    .main-nav ul li a   { padding: 12px 16px; font-size: 0.78rem; }
    .block-img  { height: 140px; }
    .text-area  { padding: 14px; }
    .main-title { font-size: 1.1rem; }
    .btn-primary, .btn-secondary { padding: 10px 16px; font-size: 0.74rem; }
}