@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --nav-bg: rgba(0, 0, 0, 0.3);
    --nav-bg-scrolled: rgba(0, 0, 0, 1);
    --nav-a-color: white;
    --hero-bg-img: url("../img/hero.png");
    --color-gold: #866C40;
    --card-color: #444;
    --card-color-hover: #333;
    --h1-underscore-color: orange;
    --footer-color: white;
}
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    width: 100%;
    min-height: 50px;
    height: auto;
    max-height: 200px;
    position: fixed;
    z-index: 999;
    background-color: var(--nav-bg);
    display: flex;
    justify-content: center;
    transition: background-color .6s ease;
    text-transform: uppercase;
}
nav.scrolled {
    background-color:  var(--nav-bg-scrolled); /* oder #fff für weiße Version */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.navbar {
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-weight: bold;
}
.navbar img {
    width: 80px;
    height: 80px;
    align-self: left;
}
.navbar .nav-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    list-style: none;
}
.navbar .nav-links li {
    margin-right: 1rem;
    position: relative;
}
.navbar .nav-links li:last-child {
    margin-right: 0;
}
.nav-links a {
    color: var(--nav-a-color);
    text-decoration: none;
    line-height: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111;
    padding: 0.5rem 0;
    min-width: 160px;
    border: 1px solid #222;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    list-style: none !important;
}

.dropdown li {
    white-space: nowrap;
}

.dropdown a {
    color: white;
    padding: 0.5rem 1rem;
    display: block;
    cursor: pointer;
}

.dropdown a:hover {
    background-color: #222;
    cursor: pointer;
}

.nav-links li:hover .dropdown {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
/* NAVBAR ende */
/* HERO start */
.hero {
    position: relative;
    height: 100vh;
    background: url('../img/hero.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* Abdunklung */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.2s ease forwards;
}
.hero-content img {
    width: 400px;
    margin-bottom: 1rem;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ff6347;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}
.cta:last-child {
    background-color: var(--card-color);
}
.cta:hover {
    background: #e5533d;
}
.cta:last-child:hover {
    background: var(--card-color-hover);
}
  
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    font-size: 2rem;
    color: var(--color-gold);
    animation: blink 1.8s infinite ease-in-out;
    z-index: 2;
    scale: 2;
    cursor: pointer;
}
  
@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
  
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* HERO ende */
/* infosection index.php */

.info-section {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}
.info-section h1 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}
h1::after,
h2::after,
h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--h1-underscore-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    color: var(--card-);
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.info-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.info-image {
    flex: 1 1 300px;
}
.info-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.info-text {
    flex: 1 1 300px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Card section index.php */
.card-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    text-align: center;
    color: var();
}
.card-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/coffee.png') no-repeat center center/cover;
    filter: blur(8px);
    transform: scale(1.05); /* verhindert Ränder beim Blur */
    z-index: 0;
}
.card-section .container {
    position: relative;
    z-index: 1;
  }
.card-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: black;
}
.card-section .intro {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.card {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.card p {
    font-size: 0.95rem;
    color: var(--card-color);
}

/* FOOTER */
.site-footer {
    color: black;
}  
.footer-top {
    /* background: url('../img/wood.png') no-repeat center center / cover; */
    background: #222;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    padding: 3rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-left {
    align-self: center;
    width: 500px;
}
.footer-right {
    align-self: center;
}
.footer-top h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--footer-color);
}
.footer-top p {
    text-decoration: none;
    line-height: 1.6;
    font-size: 1.1rem !important;
    color: var(--footer-color);
}
.footer-top p a {
    text-decoration: none;
    line-height: 1.6;
    font-size: 1.1rem !important;
    color: var(--footer-color);
}
.footer-top p i {
    color: var(--h1-underscore-color);
    scale: 1.2;
}
.footer-bottom {
    background-color: #222; 
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--footer-color);
}
.footer-bottom a {
    color: #ff6347;
    text-decoration: none;
}

/* page hero */

.page-hero {
    height: 33vh;
    background: var(--bg-img) no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
  
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* dunkles Overlay für Lesbarkeit */
    z-index: 0;
}
  
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 1rem;
}
  
.page-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
  
.page-hero p {
    font-size: 1rem;
    opacity: 0.85;
}


/* reservieren.php */
.reservation-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}
  
.form-group {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}
  
.form-group.full-width {
    flex: 1 1 100%;
}
  
.form-group label {
    margin-bottom: 0.4rem;
    font-weight: bold;
}
  
.form-group input {
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
}
  
input.flatpickr-datetime {
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
}
  
.submit-button {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    background: orange;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    align-self: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: translateY(0);
}
  
.submit-button:hover {
    background: #e28b00;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

  
.center-button {
    display: flex;
    justify-content: center;
}
  
label[for]:has(+ input[required]),
label[for]:has(+ textarea[required]),
label[for]:has(+ select[required]) {
  position: relative;
}

label[for]:has(+ input[required])::after,
label[for]:has(+ textarea[required])::after,
label[for]:has(+ select[required])::after {
  content: '*';
  color: red;
  font-size: 0.75em;
  vertical-align: super;
  position: absolute;
  top: 0;
  margin-left: 4px;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: #f3f1ed;
  border: none;
  color: #333;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

input:focus,
textarea:focus,
select:focus {
  border-color: orange;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.25);
}

input:hover,
textarea:hover,
select:hover {
  border-color: #aaa;
}

label {
    font-weight: 600;
    color: #222;
    margin-bottom: 0.4rem;
}
  
input::placeholder,
textarea::placeholder {
    color: #999;
    font-style: italic;
}
/* input:invalid {
  border-color: red;
} */

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-wrapper input {
    width: 100%;
    padding-right: 2.5rem;
}
.input-wrapper .icon {
    position: absolute;
    right: 0.75rem;
    font-size: 1.1rem;
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
}
.input-wrapper input:focus + .icon {
    color: orange;
}
.form-hint {
    flex: 1 1 100%;
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-top: 1.5rem;
}
.form-hint a {
    color: black;
    text-decoration: none;
}

/* kontakt.php */

    .contact-page {
  padding: 3rem 1rem;
  background-color: #fafafa;
  font-family: 'Segoe UI', sans-serif;
}

.contact-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.contact-box {
  flex: 1 1 300px;
  max-width: 500px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-box h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #333;
}

.contact-box p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}


/* menu.php */

.menu-page {
    padding: 3rem 1rem;
    background-color: #fafafa;
    min-height: auto;  
}
.menu-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.menu-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 3rem;
} 
.menu-category {
    margin-bottom: 2.5rem;
}  
.menu-category h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    display: inline-block;
    padding-bottom: 4px;
} 
.menu-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
  
@media (min-width: 768px) {
    .menu-items {
      grid-template-columns: 1fr 1fr;
    }
}
  
.menu-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
  
.menu-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
  
.menu-content {
    flex: 1;
}
.menu-item h3 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    color: #222;
}
.menu-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}
.menu-item .price {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-weight: bold;
    color: orange;
    font-size: 1.1rem;
}
/* Gallerie */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 10px;
    min-height: 100vh;
}
.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
}
.grid-item img {
    max-width: 350px;
}
.modal {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;  
    height: 100vh;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}
.modal.visible {
  opacity: 1;
  visibility: visible;
}
.lightbox {
    position: relative;
    width: 70%;
    height: auto;
    min-height: 50%;
    margin-top: 10px;
    margin-bottom: 10px;
}
.lightbox img {
    width: auto;
    height: 700px;
}
.lightbox .container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-burger {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-burger span {
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: white;
    transition: transform 0.3s ease;
}
.lightbox-burger span:first-child {
    transform: rotate(45deg);
}

.lightbox-burger span:last-child {
    transform: rotate(-45deg);
}
.lightbox-burger:hover {
    background-color: orange;
    border-radius: 8px;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
  padding: 0 1rem;
  transition: color 0.2s ease;
}

.arrow:hover {
  color: orange;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

/* datenschutz.php impresusm.php */
.datenschutz {
    padding: 0 10% 0 10%;
}

/* weinkarte */

.wine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.1rem; 
}
.wine-category h2 {
    text-align: center;
    font-size: 1.6rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
}
.wine-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    max-width: 300px;
    margin: 0 auto;
}

.wine-card:hover {
    transform: translateY(-4px);
}

.wine-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.wine-details {
    padding: 1rem;
}

.wine-details h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.wine-details p {
    margin: 0.3rem 0 0.8rem;
    font-size: 0.95rem;
    color: #666;
}

.wine-prices {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-weight: bold;
    color: #b84a00;
}
@media (max-width: 600px) {
    .wine-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .wine-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .wine-prices {
        align-items: flex-start;
        margin-top: 0.5rem;
    }
}
/* ======================
 Responsive Anpassungen
 ====================== */
   /* Burger Button sichtbar auf Mobile */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    z-index: 1001;
    background-color: transparent;
    border: none;
}

.burger span {
    width: 32px;
    height: 4px;
    background: var(--nav-a-color);
    border-radius: 3px;
    transition: 0.3s ease;
}
/* Email Popup */
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: bold;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}
.popup.hidden {
    opacity: 0;
    pointer-events: none;
}
.popup.success {
    background: #4caf50;
}
.popup.failed {
    background: #f44336;
}
.popup.invalid {
    background: #ff9800;
}
   
@media (max-width: 1024px) {
    .navbar {
        width: 90%;
        gap: 1rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
  
    .hero-content p {
        font-size: 1rem;
    }
  
    .menu-item .price {
        font-size: 1rem;
    }
    .grid-container {
        display: flex;
        flex-direction: column;
    }
}
/* Responsive Design */
@media (max-width: 361px) {
    .hero-content p {
        width: auto;
        max-width: 300px;
    }
    .hero-content img {
        width: 300px;
        margin-bottom: 1rem;
    }
}
@media (max-width: 768px) {
    .burger {
       display: flex; 
    }
    .nav-links {
        visibility: hidden;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: black;
        padding: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        gap: 0.5rem;
    }
  
    .nav-links.open {
        visibility: visible;
        max-height: 1000px;
    }
  
    .nav-links li {
        width: 100%;
    }
  
    .dropdown {
      position: static;
      padding-left: 1rem;
    }
    .reservation-form {
        flex-direction: column;
        padding: 1rem;
    }
    
    .form-group {
        flex: 1 1 100%;
    }

    .input-wrapper input,
    .form-group input,
    input.flatpickr-datetime {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .submit-button {
        width: 100%;
        max-width: none;
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .form-hint {
        font-size: 1rem;
        margin-top: 1rem;
        padding: 0 0.5rem;
    }
    
    .input-wrapper .icon {
        font-size: 1.3rem;
        right: 1rem;
    }
}

@media (max-width: 600px) {
 
    .menu-item img {
        width: 100px !important;
        height: 100px !important;
    }
  
    .menu-item .price {
      position: static;
      margin-top: 0.5rem;
    }
  
    .menu-content {
      width: 100%;
    }
}