/*
Theme Name: nico's basetemplate
Author: Nico Signore
Author URI: https://azubi.bsomint.de
Description: basetemplatenico is a compatible theme made with WordPress. It is the best theme for you to start building your next WordPress Site
Version: 1.0
Text Domain: basetemplatenico
Tags: custom-infoSidebar, custom-logo, featured-images, footer-widgets, theme-options, translation-ready, blog
*/

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

body{
    font-family: 'Roboto', sans-serif;
    background-color: #fafafa;
}

.container{
    max-width: 1200px;
    margin: 0 auto;

}

#front-page-posts{
    background-color: #f5e6cc;
    padding: 50px 0;
}

#front-page-posts > h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

#ready_cooking_section{
    background-color: #2e2e2e;
    padding: 100px;
    text-align: center;
    ;
}

.readyheading{
    color: #fafafa;
    font-size: 32px;
    margin-bottom: 25px
}

/* Header styling */
header {
    background-color: #4aa84e; /* Light background */
    border-bottom: 1px solid #ddd; /* Subtle border */
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Centered container */
    margin: 0 auto;
    padding: 0 1rem; /* Padding for spacing */
}

/* Logo */
.header-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fafafa; /* Dark text */
    text-decoration: none;
}

.header-logo a:hover {
    color: #e8ba4c; /* Highlight on hover */
}

/* Navigation styling */
.main-navigation {
    display: flex;
}

.header-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.header-menu a {
    text-decoration: none;
    font-size: 1rem;
    color: #fafafa;
    transition: color 0.3s ease;
}

.header-menu a:hover {
    color: #f2c14d; /* Highlight color */
}

/* Responsive styling */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/*HERO*/
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
    height: 50vh; /* Adjust based on your preference */
    background-color: #f9f9f9; /* Light background */
    width: 100%;
}

.hero-left{
    height: 300px;
    width: 300px;
    margin-right: 100px;
}

.hero-left img {
    max-width: 100%;
    height: auto;
}

.hero-right {
    flex: 1;
    text-align: left;
}

.hero-right h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-right p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.hero-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #dc3835; /* Tomato color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease-in-out;
}

.hero-button:hover {
    background-color: #ff4500; /* Darker tomato */
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* Stack the containers vertically */
        height: auto;
        text-align: center;
    }

    .hero-right {
        text-align: center;
    }
}






/* FOOTER */

.footer{
    margin-top: auto;
}

.footer-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    background-color: #4aa84e;

}

.footer-logo p{
    font-size: 18px;
}

.footer-logo p > a, .footer-menu li > a{
    text-decoration: none;
    color: #fafafa;
}

/* Footer Menu */
.footer-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    justify-content: center;
}

.footer-menu li a {
    text-decoration: none;
    color: #fafafa;
    font-size: 14px;
}

.rezepte-box{
    height: 250px;
    width: 250px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    margin: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rezepte-container{
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, 400px);
    margin: 0 auto;
    justify-content: center;
}

.rezepte-item {
    padding: 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    background-color: #f9f9f9;
    width: 400px;
    height: auto;
}

.rezepte-item img {
    width: 100%; !important;
    height: 250px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
    object-fit: cover;
    overflow: hidden;
}

.rezepte-item a{
    color: #3a9b12;
}

.rezepte-item a:hover{
    color: #2c730e;
}
.rezepte-item a:visited{
    color: #163b07;
}

.rezepte-item a p{
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 5px;
}

.rezepte-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.rezepte-list img {
    border-radius: 8px;
}

.single-article{
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    border: none;
    border-radius: 5px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.single-article-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.single-article-description{
    padding: 25px;
}

.single-article-description > h1{
    text-align: left;
    color: #091638;
    font-size: 2rem;
    font-weight: 500;
    padding: 20px;
}

.single-article-description > p {
    padding: 0 25px;
    margin-bottom: 50px;
    text-align: left;
    color: #091638;
    font-size: 1.2rem;
    line-height: 1.3;
}

.line{
    border-bottom: 1px solid rgba(255,255,255,.05);
    width: 80%;
    margin: 0 auto;
}

.description-wrapper{
    display: flex;
    padding: 25px;
}

.rezept-zubereitung-container,
.rezept-zutaten-container{
    margin-top: 20px;
    color: #091638;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    gap: 25px;
}

.taxonomies-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.taxonomies-single{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;

}

.taxonomies-single > h3 {
    margin-right: 10px;
    text-align: left;
    float: left;
}

.taxonomies-single > ul {
    text-decoration: none;
    list-style-type: none;
    background-color:#0066B3 ;
    padding: 5px 15px;
    border-radius: 20px;
    color: #fff;
    margin-bottom: 5px;

}

.custom-select {
    max-width: 700px;
    margin-left: auto;
    text-align: left;
    margin: 0 auto;
    display: flex;

    gap: 15px;
    margin-top: 50px;
    margin-bottom: 50px;
}



.custom-select select {
    background-color: #fafafa;
    width: 100%;
    height: 40px;
    padding: 5px 30px;
    text-align: left;
    margin-right: auto;
    border-radius: 5px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    -moz-padding-start: calc(10px - 3px);
    font-size: 14px;
    outline: none;
    color: #505050;
    font-weight: lighter;
}

#myButton{
    margin: 0 auto;
    padding: 0 10px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    background-color: #fafafa;
}


#recipe-search{
    padding: 10px 15px;
    border-radius: 20px;
    border:1px solid #3a9b12;
}

#recipe-search:focus{
    border-color: #3a9b12;
    border: 1px solid;
    outline: none;
}

.topbar-wrapper{
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

#filter-form{
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    max-width: 1300px;
}

.btn {
    padding: 10px;

}

.registration-form, .login-form{
    width: 500px;
    margin: 0 auto;
    background-color: #999999;
}

/* Add new recipe Form */

.recipe-form {
    max-width: 400px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: 'Roboto', sans-serif;
}

.recipe-form > h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.recipe-form div{
    margin-bottom: 15px;
}

.recipe-form label{
    display: block;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.recipe-form input[type="text"],
.recipe-form textarea,
.recipe-form select
{
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    transition: border-color 0.3s ease-in-out;
}

.recipe-form input[type="file"]{
    display:none;
}

.custom-file-upload {
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fafafa;
    color: #3a9b12;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    text-align: center;
    font-weight: 400;
}

.recipe-form input[type="text"]:focus,
.recipe-form textarea:focus,
.recipe-form select:focus,
.recipe-form input[type="file"]:focus {
    border-color: #3a9b12;
    outline: none;
}

.recipe-form textarea{
    resize: none;
    max-height: 75px;
}
.recipe-form select{
    margin-bottom: 10px;
    background-color: #fff;
    appearance: none;
}

.success-message,
.error-message {
    font-size: 0.9rem;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: none;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.recipe-form button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background-color: #3a9b12;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;


}

.recipe-form button[type="submit"]:hover {
    background-color: #1e5009;
    transform: translateY(-1px);
}

.archive-recipes{
    background-color: #3a9b12;

}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    padding-top: 100px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

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

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#open-recipe-modal {
    color: #fff;
    display: block;
    width: 200px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #3a9b12;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s background-color ease-in;
}

#open-recipe-modal:hover {
    background-color: #1e5009;
}

.login-form {
    width: 320px;
    margin: 50px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.errors {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.login-form label {
    display: block;
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
    font-size: 14px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}


.login-form input:focus {
    border-color: #276b0c;
    outline: none;
}


.login-form label[for="remember"] {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 10px 0;
}

.login-form input[type="checkbox"] {
    margin-right: 8px;
}

.login-form .btn {
    width: 100%;
    background: #3a9b12;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-form .btn:hover {
    background: #276b0c;
}

.registration-form {
    width: 320px;
    margin: 50px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.registration-form label {
    display: block;
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
    font-size: 14px;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"],
.registration-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}

.registration-form input:focus,
.registration-form select:focus {
    border-color: #276b0c;
    outline: none;
}

.registration-form select {
    appearance: none;
    background: white;
    cursor: pointer;
}

.registration-form .btn {
    width: 100%;
    background: #3a9b12;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 15px;
}


.registration-form .btn:hover {
    background: #276b0c;
}

.loginredirect, .registerredirect{
    font-size: 14px;
    margin-top: 20px;
    text-decoration: none;
    color: #0066B3;
    display: block;
    margin-left: auto;
}
.loginredirect:hover, .registerredirect:hover{

    color: #005798;

}