/* File: style | Version: 1.08 | Date: 2026-07-07 */
/* --- Style v1.08 · CSS

/* --- 1. Variablen & Basis-Setup --- */
:root {
    --bg-gray: #f4f4f4;
    --bg-white: #fafcfa;
    --app-white: #ffffff; 
    --primary: #547a8c;
    --primary-red: #ff7f50; /* Deine neue aktive Farbe */
    --text: #333;
    --max-width: 1200px;
    --header-h: 60px;
    --nav-h: 65px;
    --nav-bg: #ffffff;
	--nav-blue: #1E90FF;

    --icon-gray: #8E8E93;
    --icon-light: #dedcdc;
}
/* #547a8c  bg-gray: #f4f4f4;
/* Verhindert das blaue Highlight auf Mobilgeräten */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Verhindert das Kontextmenü bei Links und Bildern */
a, img {
    -webkit-touch-callout: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Sorgt dafür, dass die Basis immer 100% hoch ist */
    height: 100%;
    /* overflow-x hier sicher – erzeugt keinen neuen Scroll-Container für position:fixed */
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh; /* Nutzt die volle Viewport-Höhe */
    
    /* Hintergrundfarbe mit der korrekten Variablen-Syntax */
    background-color: var(--bg-gray);
    
    font-family: sans-serif;
    /* overflow-x: hidden entfernt – bricht position:fixed in Opera Mobile!
       Stattdessen auf html gesetzt, das diesen Bug nicht hat. */

    /* Dein Flexbox-Layout */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (display-mode: standalone) {
    body {
        background-color: var(--bg-gray:);
    }
}

/* --- 2. Container --- */

/* Schiebt den Inhalt unter den fixierten transparenten Header */
.content-grid {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

.app-container {
    width: 100%;
    max-width: var(--max-width);
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- Submit Button --- */
.btn-submit {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

/* --- FAB --- */
.fab {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 900;
    transition: right 0.3s ease;
}

@media (min-width: 600px) {
    .fab {
        right: calc(50% - 300px + 20px);
    }
}

.fab-button {
    width: 56px;
    height: 56px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(84, 122, 140, 0.4);
    transition: transform 0.2s ease;
}

.fab-button:active {
    transform: scale(0.9);
}

/* --- Status Toast --- */
.status-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 3000;
    text-align: center;
    font-weight: bold;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}



/* --- Tag Overlay --- */
.tag-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: none;
}

.overlay-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.tag-sheet {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.tag-overlay.open { display: block; }
.tag-overlay.open .tag-sheet { transform: translateY(0); }

.handle {
    width: 40px; height: 5px; background: #ddd;
    border-radius: 10px; margin: 0 auto 15px; display: block;
}

.new-tag-input-group {
    display: flex; gap: 10px; margin-bottom: 20px;
}

/* --- Hero / Slider Widget --- */
/* Gleiche Breite wie das 3-Spalten-Grid darunter */
@media (min-width: 1000px) {
    .slider-wrapper,
    .hero-slider,
    .hero-widget,
    .swiper {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
        border-radius: 12px;
        overflow: hidden;
    }
}
.content-grid.page-profil {
    padding-top: 0;
}
