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

body {
    font-family: 'Dancing Script', cursive;
    font-size: 1.35em;
    line-height: 1.6;
    color: #333;
    background-color: #ffe6f2;
}

/* Rezept-Inhalte bleiben in normaler, gut lesbarer Schrift */
.recipe-card-content,
.recipe-card-content h3,
.recipe-card-content p,
.recipe-card-content .btn,
.comment-input,
.comment-text,
.comment-author,
.comment-date,
.form-group input,
.form-group textarea,
.form-group label,
.modal-content p,
.reaction-btn {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    background: linear-gradient(135deg, #E91E8C 0%, #FF69B4 100%);
    color: white;
    padding: 90px 20px 70px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.35);
    letter-spacing: 1px;
}

header p {
    font-size: 1.2em;
    opacity: 0.95;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

nav {
    background-color: #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #E91E8C;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background: white;
    padding: 60px 30px;
    text-align: center;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero h2 {
    color: #E91E8C;
    font-size: 2.4em;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: #555;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content.hidden {
    display: none;
}

.landing-hero {
    margin-top: 0;
}

/* ===== Cake Illustration ===== */
.cake-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px auto 20px;
    width: 300px;
    height: 310px;
}

.cake-svg {
    width: 300px;
    height: 300px;
    animation: cakeFloat 3.6s ease-in-out infinite;
    filter: drop-shadow(0 16px 32px rgba(233,30,140,0.25));
}

@keyframes cakeFloat {
    0%, 100% { transform: translateY(0px)   rotate(-1deg); }
    50%      { transform: translateY(-16px) rotate(1deg);  }
}

.float-heart {
    position: absolute;
    color: #E91E8C;
    animation: heartRise 3s ease-in infinite;
    opacity: 0;
    pointer-events: none;
    user-select: none;
}
.h1 { bottom: 30%; left:  8%;  animation-delay: 0s;   font-size: 1.4em; }
.h2 { bottom: 20%; right: 10%; animation-delay: 1.1s; font-size: 1em;   }
.h3 { bottom: 35%; left:  20%; animation-delay: 2s;   font-size: 0.85em;}

@keyframes heartRise {
    0%   { opacity: 0;   transform: translateY(0)     scale(0.6); }
    20%  { opacity: 0.9; transform: translateY(-20px) scale(1);   }
    100% { opacity: 0;   transform: translateY(-90px) scale(0.8); }
}

@media (max-width: 600px) {
    .cake-visual { width: 220px; height: 230px; margin: 14px auto 12px; }
    .cake-svg    { width: 220px; height: 220px; }
}

.btn {
    display: inline-block;
    background-color: #E91E8C;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background-color: #FF69B4;
}

#enterSiteBtn {
    font-size: 1.15em;
    padding: 14px 36px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

#enterSiteBtn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
}

/* Meal Section Colors */
#fruehstueck .recipe-card-image {
    background: linear-gradient(135deg, #FF9500 0%, #FFB84D 100%) !important;
}

#fruehstueck .recipe-card h3 {
    color: #FF9500 !important;
}

#fruehstueck .btn {
    background-color: #FF9500;
}

#fruehstueck .btn:hover {
    background-color: #FFB84D;
}

#fruehstueck > h2 {
    color: #FF9500 !important;
}

#mittag .recipe-card-image {
    background: linear-gradient(135deg, #4CAF50 0%, #4CAF50 100%) !important;
}

#mittag .recipe-card h3 {
    color: #4CAF50 !important;
}

#mittag .btn {
    background-color: #4CAF50;
}

#mittag .btn:hover {
    background-color: #81C784;
}

#mittag > h2 {
    color: #4CAF50 !important;
}

#abend .recipe-card-image {
    background: linear-gradient(135deg, #3F51B5 0%, #7986CB 100%) !important;
}

#abend .recipe-card h3 {
    color: #3F51B5 !important;
}

#abend .btn {
    background-color: #3F51B5;
}

#abend .btn:hover {
    background-color: #7986CB;
}

#abend > h2 {
    color: #3F51B5 !important;
}

#snacks .recipe-card-image {
    background: linear-gradient(135deg, #E91E8C 0%, #FF69B4 100%) !important;
}

#snacks .recipe-card h3 {
    color: #E91E8C !important;
}

#snacks .btn {
    background-color: #E91E8C;
}

#snacks .btn:hover {
    background-color: #FF69B4;
}

#snacks > h2 {
    color: #E91E8C !important;
}

.recipes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.recipe-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.recipe-card .recipe-card-content {
    flex: 1;
}

.recipe-card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.recipe-card-image {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
}

.recipe-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.recipe-card-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

.recipe-card h3 {
    color: #8B4513;
    margin-bottom: 10px;
}

.recipe-card p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* Comments and Reactions */
.recipe-comments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.reactions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.reaction-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 3px;
}

.reaction-btn:hover {
    border-color: #E91E8C;
    background-color: #fff5f7;
}

.reaction-btn.active {
    background-color: #E91E8C;
    border-color: #E91E8C;
    color: white;
}

.reaction-count {
    font-size: 0.8em;
    font-weight: bold;
}

.comments-section {
    margin-top: 10px;
}

.comment {
    background-color: #f8f9fa;
    padding: 10px 36px 10px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9em;
    position: relative;
}

.comment-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1em;
    cursor: pointer;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: color 0.2s, background-color 0.2s;
}

.comment-delete-btn:hover {
    color: white;
    background-color: #E91E8C;
}

.comment-author {
    font-weight: bold;
    color: #E91E8C;
    margin-bottom: 3px;
}

.comment-text {
    color: #333;
}

.comment-date {
    font-size: 0.8em;
    color: #999;
    margin-top: 3px;
}

.add-comment {
    margin-top: 10px;
}

.comment-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    min-height: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 8px;
}

.comment-submit-btn {
    background-color: #E91E8C;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.comment-submit-btn:hover {
    background-color: #FF69B4;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
}

.add-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 auto;
}

.add-recipe-card .recipe-card-content {
    text-align: center;
    padding: 20px;
}

.add-recipe-card .recipe-card-content h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

.add-recipe-card .recipe-card-content p {
    color: #666;
    margin: 0;
}

  

.add-card--fruehstueck .recipe-card-content h3 {
    color: #FF9500;
}

.add-card--mittag .add-circle,
#mittag .add-circle }

.add-card--mittag .recipe-card-content h3 {
    color: #4CAF50;
}


.add-card--abend .recipe-card-content h3 {
    color: #3F51B5;
}

   

.add-card--snacks .recipe-card-content h3 {
    color: #E91E8C;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
    position: relative;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #E91E8C;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E91E8C;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.ingredients-list {
    margin-top: 15px;
}

.ingredient-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.ingredient-item input {
    flex: 1;
}

.ingredient-item button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ingredient-item button:hover {
    background-color: #ff5252;
}

.add-ingredient-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.add-ingredient-btn:hover {
    background-color: #81C784;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.save-btn {
    background-color: #E91E8C;
    color: white;
}

.save-btn:hover {
    background-color: #FF69B4;
}

.cancel-btn {
    background-color: #ddd;
    color: #333;
}

.cancel-btn:hover {
    background-color: #bbb;
}

.add-recipe-card {
    border: 2px dashed #ddd;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-recipe-card:hover {
    border-color: #E91E8C;
    background-color: #fff5f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.1);
}

/* Suchleiste */
.search-bar-section {
    background-color: #fce4f3;
    padding: 14px 20px;
    border-bottom: 1px solid #f0c8e4;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    border-radius: 30px;
    padding: 8px 18px;
    gap: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper:focus-within {
    border-color: #E91E8C;
    box-shadow: 0 0 0 3px rgba(233,30,140,0.12);
}

.search-icon { font-size: 1.1em; }

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Dancing Script', cursive;
    font-size: 1.15em;
    color: #333;
    background: transparent;
}

.search-input::placeholder { color: #bbb; }

.search-clear {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 1em;
    padding: 0 4px;
    font-family: 'Segoe UI', sans-serif;
    transition: color 0.2s;
}

.search-clear:hover { color: #E91E8C; }

.no-search-results {
    text-align: center;
    padding: 50px 20px;
    color: #aaa;
    font-size: 1.2em;
}

/* Foto-Auswahl im Modal */
.photo-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.photo-type-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    transition: border-color 0.2s, background-color 0.2s;
    user-select: none;
}

.photo-type-label:hover { border-color: #E91E8C; background-color: #fff5f7; }
.photo-type-label input[type="radio"] { accent-color: #E91E8C; }

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 8px;
}

.emoji-option {
    font-size: 1.5em;
    text-align: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: none;
    transition: background-color 0.15s, transform 0.15s;
}

.emoji-option:hover { background-color: #fff5f7; transform: scale(1.25); }
.emoji-option.selected { border-color: #E91E8C; background-color: #ffe0f0; }

.selected-emoji-preview {
    text-align: center;
    font-size: 2.5em;
    margin-top: 8px;
    min-height: 1.5em;
}

.ai-loading {
    text-align: center;
    color: #888;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    font-style: italic;
}

.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ai-suggestion-btn {
    font-size: 2.4em;
    background: none;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 6px 12px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
}

.ai-suggestion-btn:hover {
    border-color: #E91E8C;
    background-color: #fff5f7;
    transform: scale(1.15);
}

.no-image-info {
    color: #888;
    font-style: italic;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    margin-top: 8px;
}

/* ===== 3D DESIGN ===== */

/* Titel: 3D-Extrusion */
header h1 {
    text-shadow:
        1px 1px 0 rgba(160,0,70,0.8),
        2px 2px 0 rgba(140,0,60,0.7),
        3px 3px 0 rgba(120,0,50,0.5),
        4px 4px 0 rgba(100,0,40,0.4),
        5px 5px 0 rgba(80,0,30,0.3),
        6px 6px 15px rgba(0,0,0,0.35);
}

/* Buttons: physisch drückbar */
.btn {
    box-shadow: 0 7px 0 #8c0f52, 0 10px 22px rgba(233,30,140,0.3);
    transform: translateY(0);
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.1s;
    position: relative;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 0 #8c0f52, 0 14px 30px rgba(233,30,140,0.4);
}
.btn:active {
    transform: translateY(5px);
    box-shadow: 0 2px 0 #8c0f52, 0 4px 10px rgba(233,30,140,0.2);
}

/* Hero-Sektion: nur Tiefenschatten, kein Kippen */
.hero {
    box-shadow:
        0 25px 70px rgba(0,0,0,0.14),
        0 8px 25px rgba(233,30,140,0.09),
        0 0 0 1px rgba(255,255,255,0.6) inset;
}

/* Abschnittsüberschriften: leichter 3D-Schatten */
.meal-section > h2 {
    text-shadow: 2px 2px 0 rgba(0,0,0,0.07), 5px 5px 10px rgba(0,0,0,0.06);
}

/* Footer: tiefe Schattenkante */
footer {
    box-shadow: 0 -8px 35px rgba(0,0,0,0.28);
}

/* Hintergrund: dezente Tiefenwirkung */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.45) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.container, header, footer {
    position: relative;
    z-index: 1;
}

/* Recipe View Modal */
.recipe-view-content {
    max-width: 600px;
}

.recipe-view-image {
    text-align: center;
    font-size: 5em;
    margin: 10px 0 5px;
    line-height: 1;
}

.recipe-view-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    object-fit: cover;
}

#recipeViewTitle {
    text-align: center;
    color: #E91E8C;
    font-family: 'Dancing Script', cursive;
    font-size: 2em;
    margin-bottom: 16px;
}

.recipe-view-meta {
    text-align: center;
    background: #fce4f3;
    border-radius: 20px;
    padding: 6px 18px;
    display: inline-block;
    margin: 0 auto 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85em;
    color: #a0006a;
    width: 100%;
    box-sizing: border-box;
}

.recipe-view-section {
    margin: 14px 0;
    padding: 14px 16px;
    background: #fff5fa;
    border-radius: 10px;
    border-left: 4px solid #E91E8C;
}

.recipe-view-section h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5em;
    color: #E91E8C;
    margin-bottom: 8px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-list li {
    padding: 5px 0;
    border-bottom: 1px solid #ffd6ec;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.88em;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.prep-steps {
    padding-left: 22px;
    margin: 0;
}

.prep-steps li {
    padding: 6px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.88em;
    line-height: 1.5;
    border-bottom: 1px solid #ffd6ec;
}

.prep-steps li:last-child {
    border-bottom: none;
}

.nutrition-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.88em;
    line-height: 1.7;
    margin: 0;
}

.no-recipe-info {
    color: #aaa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-style: italic;
    font-size: 0.88em;
    margin: 0;
}

/* Löschen im Rezept-Detail-Modal */
.recipe-view-delete-btn {
    background: none;
    border: 2px solid #ddd;
    color: #aaa;
    border-radius: 8px;
    padding: 9px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.recipe-view-delete-btn:hover {
    border-color: #E91E8C;
    color: #E91E8C;
    background-color: #fff5f7;
}

.delete-confirm-panel {
    margin-top: 20px;
    padding: 16px;
    background: #fff5f7;
    border-radius: 10px;
    border: 1px solid #ffd6ec;
    text-align: center;
}

.delete-confirm-panel p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 14px;
}

.delete-confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.delete-yes-btn {
    background-color: #E91E8C !important;
    box-shadow: 0 4px 0 #8c0f52, 0 6px 14px rgba(233,30,140,0.25) !important;
}

.delete-no-btn {
    background-color: #888 !important;
    box-shadow: 0 4px 0 #444, 0 6px 14px rgba(0,0,0,0.15) !important;
}

/* Camera UI */
#cameraPreview,
#cameraCanvas {
    width: 100%;
    border-radius: 10px;
    display: block;
    background: #000;
    max-height: 300px;
    object-fit: cover;
}

.camera-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.camera-retake-btn {
    background: #888 !important;
}

.camera-confirm-btn {
    background: #4CAF50 !important;
}

.camera-confirmed-msg {
    margin-top: 10px;
    color: #4CAF50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.88em;
    font-weight: bold;
}

/* ===================== Responsive Design ===================== */

/* Verhindert horizontales Überlaufen auf allen Geräten */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Tablet (≤900px) */
@media (max-width: 900px) {
    .recipes {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    header h1  { font-size: 3em; }
    .hero      { padding: 36px 20px; }
}

/* Mobil (≤600px) — feste px-Werte, um die 1.35em-Basis zu brechen */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 22px 14px 18px;
    }
    header h1 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    header p  { font-size: 13px; }

    /* Navigation: horizontal scrollbar */
    nav       { padding: 8px 0; }
    nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 8px;
        scrollbar-width: none;
    }
    nav ul::-webkit-scrollbar { display: none; }
    nav li  { flex-shrink: 0; }
    nav a   { padding: 8px 12px; white-space: nowrap; font-size: 13px; }

    .container { padding: 0 10px; }

    .hero {
        padding: 20px 12px;
        margin: 10px 0;
        border-radius: 8px;
    }
    .hero h2  { font-size: 18px; margin-bottom: 8px; }
    .hero p   { font-size: 13px; margin-bottom: 16px; }

    .btn {
        padding: 10px 18px;
        font-size: 13px;
        min-height: 42px;
    }

    .search-bar-section { padding: 8px 10px; }
    .search-wrapper     { padding: 7px 12px; }
    .search-input       { font-size: 16px; }

    .meal-section > h2  { font-size: 17px !important; margin: 20px 0 12px !important; }

    .recipes {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 16px 0;
    }

    .recipe-card-image  { height: 110px; font-size: 2.8em; }
    .recipe-card-content { padding: 12px; }
    .recipe-card h3     { font-size: 15px; margin-bottom: 6px; }
    .recipe-card p      { font-size: 12px; margin-bottom: 10px; }

    .reaction-btn       { padding: 6px 8px; font-size: 14px; }
    .reactions          { flex-wrap: wrap; gap: 5px; }

    .comment-input      { font-size: 16px; min-height: 60px; }
    .comment-submit-btn { width: 100%; padding: 9px; font-size: 13px; }

    /* Modal */
    .modal-content {
        width: 98%;
        margin: 2% auto 4%;
        padding: 14px 12px;
        border-radius: 10px;
    }
    .modal h2           { font-size: 18px; }

    /* iOS-Fix: kein automatisches Hereinzoomen */
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group textarea { font-size: 16px; }
    .form-group textarea { min-height: 70px; }
    .form-group label    { font-size: 13px; }

    .photo-type-options  { flex-direction: column; gap: 5px; }
    .photo-type-label    { padding: 9px 12px; font-size: 13px; }
    .emoji-grid          { grid-template-columns: repeat(6, 1fr); }

    #cameraPreview,
    #cameraCanvas        { max-height: 200px; }
    .camera-btn-row      { flex-wrap: wrap; }
    .camera-btn-row .btn { flex: 1; }

    .modal-buttons       { flex-direction: column; gap: 7px; }
    .modal-buttons button { width: 100%; padding: 11px; font-size: 14px; }

    footer { padding: 18px 14px; font-size: 12px; margin-top: 24px; }

    .recipe-view-image  { font-size: 3.5em; }
    #recipeViewTitle    { font-size: 20px; }
    .recipe-view-section { padding: 10px 12px; }
    .recipe-view-section h3 { font-size: 16px; }
}

/* Sehr kleine Bildschirme (≤380px) */
@media (max-width: 380px) {
    header h1            { font-size: 22px; }
    .hero h2             { font-size: 16px; }
    .recipe-card-image   { height: 90px; font-size: 2.4em; }
    .emoji-grid          { grid-template-columns: repeat(5, 1fr); }
}
