/* =============================================================================
   web.css – Xionahris Steinseite
   ============================================================================= */


/* -----------------------------------------------------------------------------
   Basis
   ----------------------------------------------------------------------------- */

body {
    background-color: #fae29c;
}


/* -----------------------------------------------------------------------------
   Banner & Navigation
   ----------------------------------------------------------------------------- */

div.my_banner {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

/* Navigationslinks über dem Banner */
a.banner-link {
    color: blue;
    font-size: clamp(12px, 2.8vw, 28px);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

a.banner-link:hover {
    text-decoration: underline;
}

/* Positionshelfer für Banner-Overlays */
.top-left {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 0 12px;
 
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
}

.top-right {
    position: absolute;
    top: 8px;
    right: 16px;
}

.bottom-left {
    position: absolute;
    bottom: 8px;
    left: 16px;
}

.bottom-right {
    position: absolute;
    bottom: 8px;
    right: 16px;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Sprachumschalter */
div.language {
    position: absolute;
    bottom: 10px;
    right: 16px;
}

div.language a {
    margin-left: 6px;
    color: blue;
    font-weight: bold;
    text-decoration: none;
}

div.language a:hover {
    text-decoration: underline;
}


/* -----------------------------------------------------------------------------
   Startseite Layout
   ----------------------------------------------------------------------------- */

div.my_main-left {
    float: left;
    width: 30%;
    padding: 10px;
}

div.my_main-right {
    float: right;
    width: 68%;
    padding: 10px;
}

div.my_main-left-image {
    width: 100%;
}

div.my_main-left-image img {
    width: 100%;
    height: auto;
}

/* Regelliste */
ul.rules {
    padding-left: 20px;
}


/* -----------------------------------------------------------------------------
   Post-Kacheln
   ----------------------------------------------------------------------------- */

/* Äußerer Container */
div.posts {
    text-align: center;
    /* clearfix: enthält die gefloateten my_main-left / my_main-right */
    overflow: auto;
}

/* Einzelne Kachel */
div.post_frame {
    display: inline-grid;
    margin: 10px;
    padding: 5px;
    text-align: center;
    border: 1px solid black;
    vertical-align: top;
    max-width: 320px;
}

div.post_by {
    text-align: center;
    font-size: 0.85em;
    color: #555;
}

div.post_title {
    font-weight: bold;
    margin: 4px 0;
}

div.post_img {
    padding: 10px 20px;
}

div.post_img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

div.post_text {
    text-align: center;
    font-family: "Lucida Handwriting", cursive;
    margin-top: 6px;
}


/* -----------------------------------------------------------------------------
   Formular
   ----------------------------------------------------------------------------- */

div.my_wrapper {
    display: inline-block;
    width: 100%;
}

div.my_bg_gray {
    background-color: lightgray;
    padding: 8px;
    margin-bottom: 4px;
}

div.my_bg_dgray {
    background-color: rgba(211, 211, 211, 0.57);
    padding: 8px;
    margin-bottom: 4px;
}

/* Honeypot-Felder – für Menschen unsichtbar */
.hidden {
    display: none !important;
}


/* -----------------------------------------------------------------------------
   Rückmeldungen (Erfolg / Fehler)
   ----------------------------------------------------------------------------- */

p.post_success {
    color: #2a6e00;
    background-color: #d4edda;
    border: 1px solid #a8d5b5;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 12px 0;
}

p.post_error {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 12px 0;
}

p.post_empty {
    color: #555;
    font-style: italic;
    text-align: center;
    padding: 20px;
}


/* -----------------------------------------------------------------------------
   Admin-Bereich
   ----------------------------------------------------------------------------- */

div.admin_header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    margin-bottom: 8px;
}


/* -----------------------------------------------------------------------------
   Responsive: Smartphones
   ----------------------------------------------------------------------------- */

@media (max-width: 700px) {
    div.my_main-left,
    div.my_main-right {
        float: none;
        width: 100%;
    }

    a.banner-link {
        font-size: 6vw;
    }
}
