/* ------------------------------------------------------------
   style.css - Vollständig, responsive, Hero links, Galerie no-stretch
------------------------------------------------------------ */

/* ---------------------------
   GLOBAL RESET & TYPOGRAPHY
--------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

html, body { height: 100%; }

body {
    background: #f2f2f2;
    color: #111;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

/* Typographie: größere, gut lesbare Absätze, Blocksatz */
p {
    font-size: 17px;
    color: #333;
    text-align: justify;
    max-width: 900px;
    margin-bottom: 18px;
}

/* HEADINGS */
h1 { font-size: 40px; line-height:1.05; margin-bottom:12px; font-weight:600; }
h2 { font-size: 26px; margin-bottom:12px; }

/* Links */
a { color: inherit; text-decoration: none; }

/* Page container */
.page {
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ---------------------------
   HEADER / NAVIGATION
--------------------------- */
.header {
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: relative;
}

.logo {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
}

/* Desktop nav */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    /* verhindern, dass das Menü umbricht; erlaubt horizontales Scrollen bei sehr kleinen Viewports */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Versteckte, dezente Scrollbar */
.nav::-webkit-scrollbar { height: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 10px; }

.nav a {
    margin-left: 18px;
    text-decoration: none;
    color: #222;
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap; /* Linktexte nicht umbrechen */
}

.nav a:hover { background: #f0f0f0; }
.nav a.active { background: #ededed; font-weight: 600; }

/* Mobile toggle (created by JS when needed) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle .bar { display:block; width:24px; height:2px; background:#222; margin:4px 0; transition:0.18s; }

/* mobile cloned menu */
.nav-mobile {
    display: none;
    position: absolute;
    top: 62px;
    right: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    padding: 12px;
    min-width: 180px;
    z-index: 3000;
    flex-direction: column;
    gap: 8px;
}
.nav-mobile.show { display: flex; }

/* ---------------------------
   HERO / HERO-CARD
--------------------------- */
.hero { position: relative; }

.hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* HERO-CARD: DESKTOP = links (wie gewünscht), MOBILE = static unter image */
/* IMPORTANT: left on desktop */
.hero-card,
.hero-box {
    position: absolute;
    left: 60px;    /* <-- geändert: left (user wanted left) */
    bottom: -40px;
    width: 330px;
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: left; /* linksbündig auf Desktop */
    z-index: 10;
}

/* Headline im Hero */
.hero-card h1,
.hero-box h1 {
    font-size: 34px;
    margin-bottom: 12px;
    line-height: 1.05;
    font-weight:700;
}

.hero-sub { font-size: 15px; color:#555; margin-bottom:14px; }

/* Buttons */
.btn-primary,
.button {
    display:inline-block;
    padding:10px 18px;
    background:#000;   /* sicher: schwarz */
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    border: none;
}

.btn-modern {
    display:inline-block;
    padding:12px 26px;
    background:#111;   /* schwarz-ish */
    color:#fff;
    border-radius:10px;
    font-size:17px;
    font-weight:600;
    text-decoration:none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.btn-modern:hover { background:#000; transform:translateY(-3px); box-shadow:0 6px 24px rgba(0,0,0,0.22); }

/* ensure external request button (Anfragen) is black */
.btn-external {
    display:inline-block;
    padding:12px 26px;
    background:#000;
    color:#fff;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

/* ---------------------------
   CONTENT / GALLERY / FEATURES
--------------------------- */
.content { padding: 80px 60px 60px; }

.about, .features { margin-bottom:60px; }

.img-row, .two-column {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:40px;
    margin-bottom: 60px;
}

.img-row img, .two-column img {
    width:100%;
    height:300px;
    object-fit:cover;
    border-radius:8px;
}

/* small page content */
.simple-page, .content-page { padding:60px; }

/* Footer */
footer { text-align:center; padding:30px; background:#fff; margin-top:20px; color:#666; }

/* ---------------------------
   KONTAKTFORMULAR STYLES
--------------------------- */
.contact-form { margin-top:30px; max-width:600px; }

.form-group { margin-bottom:20px; display:flex; flex-direction:column; }

.form-group label { font-weight:bold; margin-bottom:6px; }

.form-group input, .form-group textarea {
    padding:12px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:16px;
    background:#fff;
}

.form-group input:focus, .form-group textarea:focus { outline:none; border-color:#666; }

button.btn-primary {
    padding:12px 26px;
    font-size:16px;
    cursor:pointer;
    border:none;
    border-radius:6px;
    background:#000; /* sicherstellen: schwarz */
    color:#fff;
    transition:0.2s ease;
}

button.btn-primary:hover { background:#222; }

/* DSGVO Checkbox */
.checkbox-group label { display:flex; align-items:center; gap:10px; }
.checkbox-group input[type="checkbox"] { width:18px; height:18px; }

/* Overlay Danke */
.overlay {
    position: fixed;
    inset:0;
    background: rgba(0,0,0,0.55);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:2000;
}
.overlay.show { display:flex; }
.overlay-box {
    background:#fff;
    padding:40px;
    border-radius:12px;
    text-align:center;
    width:90%;
    max-width:400px;
    box-shadow:0 6px 25px rgba(0,0,0,0.25);
}

/* ---------------------------
   COOKIE / BANNER
--------------------------- */
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display:none; justify-content:center; align-items:center; z-index:4000; }
.cookie-overlay.show { display:flex; }
.cookie-box { background:#fff; padding:35px; border-radius:14px; width:90%; max-width:480px; text-align:center; box-shadow:0 8px 30px rgba(0,0,0,0.25); animation: fadeIn .25s ease; }
.cookie-box h3 { font-size:22px; margin-bottom:12px; }
.cookie-box p { font-size:15px; color:#444; margin-bottom:20px; }
.cookie-buttons { display:flex; gap:15px; justify-content:center; margin-top:12px; }
.btn-outline { display:inline-block; padding:12px 26px; border-radius:10px; border:2px solid #111; background:transparent; cursor:pointer; font-size:16px; font-weight:600; transition: .25s; }
.btn-outline:hover { background:#111; color:#fff; }

.cookie-banner { position: fixed; left:0; right:0; bottom:0; background:#fff; padding:22px 18px; display:none; justify-content:center; box-shadow:0 -4px 20px rgba(0,0,0,0.15); z-index:5000; animation: slideUp .35s ease; }
.cookie-banner.show { display:flex; }
.cookie-banner-inner { max-width:1200px; width:100%; display:flex; flex-direction:column; gap:14px; }
.cookie-banner p { font-size:15px; color:#444; }

@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ---------------------------
   ÜBER-UNS VORSCHAU (3 tiles)
--------------------------- */
.about-img-row {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:30px;
    margin: 40px 0;
}
.about-img-row img {
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:10px;
    cursor:pointer;
}
.gallery-open-box {
    background:#111;
    color:#fff;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    height:260px;
    font-size:18px;
    font-weight:600;
    transition: transform .18s ease, background .18s ease;
    padding:12px;
    text-align:center;
}
.gallery-open-box span { display:inline-block; white-space:nowrap; font-size:18px; }
.gallery-open-box:hover { background:#000; transform:translateY(-3px); }

/* ---------------------------
   EINZELBILDER (unter dem Text) - TWO ITEMS
--------------------------- */
.about-single-image-wrapper {
    margin-top: 48px; /* distance from text above */
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:22px;
    align-items:start;
    max-width:950px;
    padding:0 12px;
}
.about-single-image-box { text-align:center; }
.about-single-image {
    width:100%;
    height:auto;
    border-radius:8px;
    cursor:pointer;
    transition: transform .18s ease;
}
.about-single-image:hover { transform: translateY(-4px); }

/* ---------------------------
   GALERIE OVERLAY - LARGE VIEW (NO STRETCH)
--------------------------- */
.gallery-overlay {
    position:fixed;
    inset:0;
    background: rgba(0,0,0,0.85);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:6000;
    padding:20px;
}
.gallery-overlay.show { display:flex; }

.gallery-content {
    position:relative;
    max-width:95%;
    max-height:95%;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Image inside overlay: keep aspect ratio - do NOT stretch */
.gallery-image, .gallery-content img, #galleryImage {
    width:auto;
    max-width:100%;
    height:auto;
    max-height:85vh;
    object-fit:contain; /* prevents distortion */
    border-radius:10px;
    box-shadow:0 8px 30px rgba(0,0,0,0.5);
}

/* nav & close buttons in overlay */
.gallery-close {
    position:absolute;
    top:18px;
    right:18px;
    background:#fff;
    border:none;
    border-radius:50%;
    width:44px;
    height:44px;
    font-size:26px;
    cursor:pointer;
    box-shadow:0 4px 20px rgba(0,0,0,0.25);
}
.gallery-nav {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:#fff;
    border:none;
    border-radius:50%;
    width:56px;
    height:56px;
    font-size:34px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 3px 15px rgba(0,0,0,0.3);
}
.gallery-nav.left { left:12px; }
.gallery-nav.right { right:12px; }

/* Small enhancements: avoid scaling artifacts */
img { -webkit-user-drag: none; user-select: none; }

/* ---------------------------
   RESPONSIVE BREAKPOINTS (detailed)
--------------------------- */
@media (max-width: 1000px) {
    .content { padding: 40px 28px; }
    .hero-card { width:300px; left:30px; padding:20px; bottom:-36px; }
    .hero-card h1 { font-size:28px; }
}

@media (max-width: 820px) {
    /* show hamburger toggle (JS will create button when needed) */
    .nav { gap: 10px; }

    /* hero-card becomes static: placed under image to avoid overlap on mobile */
    .hero-card, .hero-box {
        position: static !important;
        width: auto;
        margin: -6px 20px 18px 20px; /* small negative margin to visually connect hero section */
        transform: none;
        text-align: center; /* center when placed under image */
    }

    .about-img-row { grid-template-columns: 1fr; }
    .about-img-row img, .gallery-open-box { height:220px; }

    .about-single-image-wrapper { grid-template-columns: 1fr; }
}

@media (max-width:600px) {
    .hero-img { height:260px; }
    .hero-card h1 { font-size:22px; }
    p { font-size:16px; }
    .gallery-open-box span { font-size:15px; white-space:normal; }
    .logo { font-size:18px; }
}

@media (max-width:420px) {
    .content { padding:20px; }
    .page { margin:12px; border-radius:10px; }
    .about-img-row { gap:18px; }
    .about-img-row img, .gallery-open-box { height:180px; }
    .about-single-image-wrapper { gap:14px; }
}

/* Small utility classes */
.hidden { display:none !important; }
.center { text-align:center; }

/* END OF FILE */



