﻿/* zusatz CSS: Doorway- Einstiegs-Seite */


/* Hilfsmenü für Offline-Arbeiten ausblenden (wird durch "offline.css" eingeblendet) */
#offline-menu  { display:none; }
#offline-debug { display:none; }





/* ========================= */
/* ===== Basis-Styles ===== */
/* ========================= */

/* Grundlayout der Seite */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #FCEDBA;   /* Humberg-Hof CI-Farbe */
    color: #000;
}

/* Zentrierter Hauptbereich */
main.doorway {
    max-width: 1200px;     /* verhindert zu breite Zeilen auf großen Monitoren */
    margin: 0 auto;
    padding: 20px;
}

/* Sichtbarkeitsklassen für responsive Texte */
.desktop    { display: block; }   /* wird im Smartphone-Block überschrieben */
.smartphone { display: none; }

/* Standard-Bild in einer Kachel */
.kachel img {
    width: 100%;            /* Bild füllt die Kachel */
    height: auto;
    display: block;         /* verhindert weiße Lücken unter Bildern */
}

/* Schattenvarianten für Bilder */
.img-shadow        { box-shadow: 2px 4px 6px rgba(0,0,0,0.2); }
.img-shadow-small  { box-shadow: 2px 4px 6px rgba(0,0,0,0.2); }

/* Universeller Hover-Zoom für kleine Bilder (QR, Icons, etc.) */
.hover-zoom {
    transition: transform 0.3s ease;  /* weiche Animation */
    display: block;
}

/* Stärkerer Zoom für kleine Elemente */
.hover-zoom-small:hover { transform: scale(1.05); }

/* Dezenter Zoom für größere Elemente */
.hover-zoom-big:hover   { transform: scale(1.02); }


/* Beschriftung unter QR-Kacheln */
.kachel-label {
    text-align: center;        /* zentriert den Text unter dem QR-Bild */
    margin-top: 3px;           /* Abstand zwischen Bild und Label */
    font-size: 13px;           /* kleine, kompakte Schrift */
    font-weight: bold;         /* QR-Labels sollen fett sein */
    white-space: nowrap;       /* verhindert Zeilenumbruch */
    overflow: hidden;          /* falls Text zu lang ist */
    text-overflow: ellipsis;   /* ... am Ende, wenn zu lang */
}



/* Textblock unter den Kacheln */
.textblock {
    max-width: 760px;      /* gleiche Breite wie QR-Spalte */
    margin: 0 auto;
}

.textblock p {
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
}






/* ========================= */
/* ===== Cards / Buttons === */
/* ========================= */

/* Container für alle Cards */
.doorway-cards {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Jede Card ist ein eigener Block */
.doorway-cards .card {
    margin-bottom: 14px;
}

/* 
   Basis-Button (Desktop):
   - flach
   - dezente Linie
   - neutrale Box
   - wird im Smartphone-Block zum 3D-Button erweitert
*/
.blockbutton {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffffaa;      /* leicht transparent */
    border: 1px solid #00000022;
    border-radius: 6px;
    padding: 10px 12px;
    max-width: 700px;           /* verhindert zu breite Buttons */
    margin-left: 0;
    margin-right: auto;
    transition: transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Wrapper für Titel + Text */
.button-inner { display: block; }

/* Titelzeile */
.button-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0;
}

/* QR-Code rechts im Button (nur Smartphone sichtbar) */
.qr-inline { display: none; }

.qr-inline img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 10px;
}

/* Farbvarianten für Cards */
.doorway-cards .hofladen .blockbutton       { background: rgba(60, 30, 0, 0.10); color: #4d3300; }
.doorway-cards .bauernmarkt .blockbutton    { background: rgba(0, 0, 255, 0.10); color: #002080; }
.doorway-cards .instagram .blockbutton      { background: rgba(102, 0, 102, 0.10); color: #4d004d; }
.doorway-cards .whatsapp-kanal .blockbutton { background: rgba(0, 60, 0, 0.10); color: #003000; }
.doorway-cards .whatsapp-chat .blockbutton  { background: rgba(0, 110, 0, 0.10); color: #005d00; }

/* Desktop-Hover: leichtes Aufhellen */
@media (hover: hover) {
    .doorway-cards .blockbutton:hover {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0px 6px rgba(0,0,0,0.15);
        transform: scale(1.02);
    }
}






/* ========================= */
/* ===== Großes Bild ======= */
/* ========================= */

/* 
   Wrapper für Bild + Overlay:
   - wichtig: overflow:hidden für runde Ecken
   - hier liegt der Hover-Zoom (nicht am <img>)
*/
.kachel-image-wrapper {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease;
}

/* Zoom-Effekt für das große Bild */
.kachel-image-wrapper:hover {
    transform: scale(1.04);
}

/* Bild selbst */
.kachel-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow:
        0 3px 6px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.5);
}

/* ============================================================
   OVERLAY-BASIS (gilt für ALLE Geräte)
   - Positionierung IMMER gleich
   - Design NICHT hier definieren
   ============================================================ */

.kachel-image-label {
    position: absolute;   /* Overlay liegt IMMER im Bild */
    bottom: 0;
    left: 0;
    width: 100%;
}






/* ========================= */
/* ===== Desktop-Layout ==== */
/* ========================= */

@media (min-width: 1001px) {

    /* 
       Hauptlayout:
       - links großes Bild
       - rechts QR-Kacheln
    */
    .kachelgrid {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        width: 760px;
        margin: 0 auto;
    }

    .kachel-website {
        flex: 0 0 580px; /* feste Breite für das große Bild */
    }

    /* QR-Kacheln sichtbar */
    .kachelgruppe {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 0 0 140px;
    }


    .kachelgruppe .kachel img {
        width: 135px;
        height: 135px;
        object-fit: cover;
    }

    /* Desktop-Text */
    .textblock {
        font-size: 18px;
        line-height: 1.4;
    }

    p.desktop {
        margin: 0;
        text-indent: 5px;
    }


/* ============================================================
   Label für das große Bild 
   - Vollständiges Design für DESKTOP-Ansicht
   - Overlay aktuell AUS - Kann später leicht aktiviert werden
   ============================================================ */
.kachel-image-label {
    display: none;   /* Desktop: Overlay AUS */

    /* Wenn du es später aktivieren willst:
    display: block;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    */
}


}




/* ========================================================= */
/* ================== SMARTPHONE-LAYOUT ==================== */
/* ========================================================= */

@media (max-width: 1000px) {   /* Alles hier gilt NUR für Smartphones/Tablets */

main.doorway {
    padding: 10px 15px;        /* engerer Rand → mehr Platz für Inhalt */
}

/* --------------------------------------------------------- */
/* 1) GRID-LAYOUT FÜR DAS OBERSTE BILD + QR-KACHELN          */
/* --------------------------------------------------------- */

.kachelgrid {
    display: grid;                                      /* 2×2 Raster */
    grid-template-columns: repeat(2, minmax(120px, 1fr)); /* beide Spalten gleich breit, nie kleiner als 120px */
    row-gap: 2px;                                       /* vertikaler Abstand */
    column-gap: 20px;                                   /* horizontaler Abstand */
    margin-bottom: 0;
}

/* QR-Kacheln oben komplett ausblenden */
.kachelgruppe { 
    display: none;                                      /* Smartphone: QR-Codes wandern in die Buttons */
}

/* --------------------------------------------------------- */
/* 2) QR-CODES IN DEN BUTTONS (CARDS)                       */
/* --------------------------------------------------------- */

.only-mobile { 
    display: block;                                     /* QR rechts im Button anzeigen */
}

/* --------------------------------------------------------- */
/* 3) BUTTONS / CARDS — SMARTPHONE 3D-LOOK                  */
/* --------------------------------------------------------- */

.blockbutton {
    display: flex;                                      /* Text links, QR rechts */
    justify-content: space-between;                     /* Abstand zwischen Text und QR */
    align-items: center;                                /* vertikal zentriert */
    max-width: 600px;                                   /* verhindert zu breite Buttons */
    margin: 0 auto;                                     /* zentriert */
    box-sizing: border-box;                             /* Padding zählt zur Breite */

    /* 3D-Look (Apple-Style) */
    background: #ffffff;                              /* reines Weiß → wirkt wie eine Karte */
    border-radius: 8px;                                 /* weiche Ecken */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),          /* Lichtkante oben */
        0 2px 4px rgba(0,0,0,0.15);                   /* Schatten unten */
}

/* Tap-Feedback (Button sinkt leicht ein) */
.blockbutton:active {
    transform: scale(0.98);                             /* leicht kleiner → wirkt gedrückt */
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.25),             /* stärkerer Innenschatten */
        0 1px 2px rgba(0,0,0,0.2);                    /* kleiner Außenschatten */
}

/* --------------------------------------------------------- */
/* 4) TEXTBEREICH IM BUTTON                                 */
/* --------------------------------------------------------- */

.button-inner {
    flex: 1;                                            /* nimmt gesamte linke Fläche ein */
    padding-right: 10px;                                /* Abstand zum QR-Code */
}

/* Titelbereich (2 Zeilen: Haupttitel + Untertitel) */
.button-title {
    display: flex;
    flex-direction: column;
    gap: 3px;                                           /* Abstand zwischen Titel und Untertitel */
    line-height: 1.0;
}

/* Haupttitel (größer, fett) */
.button-title .title-main {
    font-size: 1.3rem;                                  /* wichtigste Stellschraube für Button-Größe */
    font-weight: 800;
}

/* Untertitel (kleiner, eingerückt) */
.button-title .title-sub {
    font-size: 1.0rem;
    font-weight: 600;
    opacity: 0.9;                                       /* etwas dezenter */
    margin-left: 1.1rem;                                /* unter dem Pfeil eingerückt */
}

/* Fließtext im Button */
.button-inner p {
    font-size: 1.0rem;                                  /* gleiche Größe wie Untertitel */
    margin-left: 1.1rem;                                /* bündig mit Untertitel */
    margin-top: 0.4rem;
    line-height: 1.0;
}

/* --------------------------------------------------------- */
/* 5) GROSSES WEBSITE-BILD                                  */
/* --------------------------------------------------------- */

.kachel-website {
    grid-column: 1 / -1;                                /* über beide Spalten */
    max-width: 600px;                                   /* verhindert übermäßige Breite */
    margin: 0 auto;                                     /* zentriert */
}

/* Wrapper für Bild + Overlay */
.kachel-image-wrapper {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;                                   /* wichtig für runde Ecken */
    transition: transform 0.25s ease;                   /* Hover-Zoom */
}

/* Hover-Zoom fürs große Bild */
.kachel-image-wrapper:hover {
    transform: scale(1.04);                             /* etwas stärkerer Zoom */
}

/* Bild selbst */
.kachel-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow:
        0 3px 6px rgba(0,0,0,0.25),                     /* Außenschatten */
        inset 0 1px 1px rgba(255,255,255,0.5);          /* leichte Lichtkante */
}


/* --------------------------------------------------------- */
/* 6) OVERLAY-BESCHRIFTUNG IM BILD                           */
/* --------------------------------------------------------- 
   - Overlay ist sichtbar
   - Vollständiges Design NUR für Smartphone
   --------------------------------------------------------- */
    .kachel-image-label {
        display: block;                     /* Smartphone: sichtbar */
        padding: 15px 12px;
        background: rgba(0, 0, 0, 0.322);    /* halbtransparent */
        color: rgba(255, 254, 182, 0.808);
        font-size: 1.5rem;
        font-weight: 600;
        text-align: center;

        /* Eingravierter Text-Effekt */   /* dunkler Schatten unten → eingedrückt */ /* helle Kante oben → Lichtkante */ 
       /*  text-shadow:
            0 1px 1px rgba(231, 231, 231, 0.6),   
            0 -1px 1px rgba(0, 0, 0, 0.4);        
 */
        backdrop-filter: blur(2px);         /* moderner Glas-Effekt */
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); /* Lichtkante oben */
    }


/* --------------------------------------------------------- */
/* 7) TEXTSICHTBARKEIT                                      */
/* --------------------------------------------------------- */

.desktop { display: none; }                             /* Desktop-Texte ausblenden */
.smartphone { display: block; }                         /* Smartphone-Texte anzeigen */

}
