/* Allgemeine Stile */
/* body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #849BB3;
    overflow-y: scroll; /* Always show scrollbar to prevent layout shifts */
}*/

html, body {
    
    margin: 0;
    padding: 0;
    height: 100%; /* Stellt sicher, dass das Overlay den gesamten Viewport einnimmt */
    width: 100%;
    /* overflow: hidden; /* Verhindert Scrollen im Hintergrund */
    background-color: #000; /* Hintergrundfarbe (optional, falls nötig) */
    padding-top: env(safe-area-inset-top); /* Platz für Statusleiste (z. B. bei iPhones) */
    padding-bottom: env(safe-area-inset-bottom); /* Platz für Home-Indikator */
    padding-left: env(safe-area-inset-left); /* Platz für Ränder links */
    padding-right: env(safe-area-inset-right); /* Platz für Ränder rechts */
    box-sizing: border-box; /* Umfasst Safe-Area in Berechnungen */
}

body {font-family: Arial, sans-serif;}

/* Container für maximale Breite */
.container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header */
header {
    width: 100%;
    background-color: white;
    color: #849BB3;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

header h1 {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Prompt-Container */
.prompt-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 860px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-bottom: 70px;
}

/* Quadratische Kacheln */
.prompt-tile {
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    word-wrap: break-word;
    aspect-ratio: 1;
}

.prompt-tile:hover {
    background-color: #e8e8e8;
    transform: scale(1.05);
}

/* Edit Container */
.edit-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    z-index: 1000;
}

.edit-container.active {
    display: block;
}

.edit-container input,
.edit-container textarea {
    width: 100%;
    margin-bottom: 16px;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#editShortcut {
    height: 45px;
}

#editTextarea {
    min-height: 150px;
    max-height: 400px;
    resize: vertical;
}

#editDescription {
    min-height: 80px;
    max-height: 200px;
    resize: vertical;
}

.edit-container input:focus,
.edit-container textarea:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

/* Buttons */
.edit-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.edit-buttons button {
    padding: 8px 16px;
    background-color: #849BB3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex: 1;
    font-size: 14px;
}

.edit-buttons button:hover {
    background-color: #6d839b;
}

.edit-buttons button:active {
    background-color: #5a6d82;
}

/* Spezieller Style nur für Cancel Button */
.edit-buttons button[onclick="closeEditMode()"] {
    background-color: #FF6B6B;
}

.edit-buttons button[onclick="closeEditMode()"]:hover {
    background-color: #ff5252;
}

.edit-buttons button[onclick="closeEditMode()"]:active {
    background-color: #ff3939;
}

/* Share Button */
.share-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.share-button:hover {
    transform: scale(1.1);
}

/* Share Overlay */
.share-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-overlay.active {
    display: flex;
}

.share-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    position: relative;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.share-content h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
}

.share-content h3 {
    color: #555;
    margin: 20px 0 10px;
}

.qr-code {
    text-align: center;
    /*margin: 20px 0;*/
    padding: 20px;
    /*background: #f5f5f5;*/
    border-radius: 4px;
}

.app-info {
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.app-info h3 {
    color: #333;
    margin: 20px 0 10px;
}

.app-info p {
    margin: 0 0 15px 0;
}

.app-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.app-info a {text-decoration: none; color: #849BB3;}

/* Build Info */
#buildInfo {
    margin-bottom: 30px;
    text-align: left;
}



#buildInfo h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

#buildInfo .version {
    color: #666;
    font-size: 14px;
    margin: 4px 0 20px 0;
}

.release-notes {
    /*background: #f5f5f5;*/
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.release-notes h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.release-notes ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.release-notes li {
    margin: 5px 0;
    font-size: 14px;
}

/* Feedback Section */
.feedback {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 3px solid #849BB3;
}

.feedback p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.feedback a.email-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #849BB3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feedback a.email-button:hover {
    background-color: #6d839b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feedback a.email-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.credits {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.credits a {
    color: #849BB3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.credits a:hover {
    color: #6d839b;
    text-decoration: underline;
}

/* Footer */
footer {
    width: 100%;
    background-color: #849BB3;
    color: white;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content span {
    font-size: 14px;
    white-space: nowrap;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 0.9;
}

.footer-logo img {
    height: 24px;
    width: auto;
}

.footer-logo span {
    font-size: 14px;
    white-space: nowrap;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
    margin-left: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FF6B6B;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Media Queries */
@media screen and (max-width: 900px) {
    .prompt-container {
        gap: 15px;
        padding: 15px 20px;
    }
}

@media screen and (max-width: 768px) {
    .prompt-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 10px 20px;
    }
    
    .prompt-tile {
        font-size: 14px;
    }
    
    footer p {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    footer p {
        font-size: 12px;
    }
}