@import url(https://fonts.bunny.net/css?family=playfair-display:400,700,900|poppins:300,400,500,600);

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

:root {
    --navy: #142a41;
    --gold: #aa760a;
    --cream: #f5e6d3;
    --white: #ffffff;
    --gray: #6c757d;
    --logo-color: #b38c5a;
    --container-max: 1200px;      /* deine Section-Breite */
    --fab-gap: 16px;              /* Abstand vom Rand/Container */
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--navy);
    background-color: var(--cream);
}

a {
    color: var(--cream);
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--gold);
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gold);
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2a3a4a 100%);
    display: grid;
    place-items: center;
    /* stretch container height fully */
    position: relative;
    overflow: hidden;    
}

.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    height: 100%;
    /* so we can push the image to the bottom */
    align-items: stretch;
    /* allow children to control vertical alignment */
}

.hero-image {
    flex: 1.2;
    /* give image a bit more space */
    position: relative;
    animation: fadeInRight 1.2s ease-out;
    display: flex;
    align-items: flex-end;
    /* image sits at bottom */
    justify-content: flex-end;
    /* align image to the right */
    margin-top: auto;
    z-index: 1;
}

/* Smartphones: Bild komplett ausblenden */
@media screen and (max-width: 768px) {
    .hero-image {
        display: none;
    }
}

/* Tablets: Bild sichtbar und volle Breite */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-image {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
    }
}

/* Desktops: Bild mit fester Breite und Höhe */
@media screen and (min-width: 1025px) {
    .hero-image img {
        width: 100%;
        max-width: 650px;
        height: 1000px;
        object-fit: cover;
    }
}

.hero-image img {
    width: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 600px;
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
    border-radius: 300px 300px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cream) 0%, transparent 70%);
    opacity: 0.05;
    animation: float 25s ease-in-out infinite reverse;
    z-index: 0;
}

/* Ginko leaf patterns */
.hero-container::before {
    content: '';
    position: absolute;
    top: calc(50% - 1000px);
    left: calc(50% - 1000px);
    height: 2000px;
    width: 2000px;
    background-image:
        url('../images/ginko-gold.svg'),

        url('../images/ginko-blau.svg');
    background-size: 800px 800px,
        690px 600px;
    background-position: 70% 20%,
        25% 35%;
    background-repeat: no-repeat;
    /* transform: rotate(25deg); */
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: ginko-before-anim 1.5s ease-out 0.5s forwards;
}

.hero-container::after {
    content: '';
    position: absolute;
    top: calc(50% - 1000px);
    left: calc(50% - 1000px);
    height: 2000px;
    width: 2000px;
    background-image:
        url('../images/ginko-gold.svg'),
        url('../images/ginko-blau.svg');
    background-size: 1020px 840px,
        750px 750px;
    background-position: 5% 80%,
        70% 80%;
    background-repeat: no-repeat;
    /* transform: rotate(-15deg) scale(0.8); */
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: ginko-after-anim 1.5s ease-out 0.5s forwards;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes ginko-before-anim {
    from {
        opacity: 0;
        transform: rotate(25deg) translateY(20px);
    }

    to {
        opacity: 1;
        transform: rotate(25deg) translateY(0);
    }
}

@keyframes ginko-after-anim {
    from {
        opacity: 0;
        transform: rotate(-15deg) scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: rotate(-15deg) scale(0.8) translateY(0);
    }
}


.hero-content {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 1;
    padding: 2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    margin: auto 0;
    /* keep vertically centered while image anchors bottom */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- INSTAGRAM FAB (global auf allen Viewports) --- */
.instagram-link{
  position: fixed;
  bottom: calc(var(--fab-gap) + env(safe-area-inset-bottom));
  /* Wenn Viewport <= 1200px => 16px vom Rand.
     Wenn Viewport > 1200px => an die Section ausrichten: (VW - 1200)/2 + 16px */
  right: max(var(--fab-gap), calc((100vw - var(--container-max)) / 2 + var(--fab-gap)));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 10000;                        /* über allen Sektionen */
}

/* Icon-Größe */
.instagram-link i{
  font-size: 26px;
  display: block;
}

/* dezenter Hover nur auf Geräten mit Maus */
@media (hover:hover) and (pointer:fine){
  .instagram-link:hover{
    transform: translateY(-3px);
    opacity: .95;
  }
}

/* 
 * Fix für Firefox-SVG-Anzeigeproblem:
 * - `display: inline-block` in Kombination mit `loading="lazy"` kann verhindern,
 *   dass Firefox das Bild lädt, wenn der Container beim Initial-Layout 0px hoch ist.
 * - Lösung: `display: block` und `text-align: center` verwenden,
 *   Logo nicht lazy laden, damit es sofort erscheint.
 */
.logo {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.35));
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow:
        1px 1px 4px var(--navy),
        -1px 1px 4px var(--navy),
        1px -1px 4px var(--navy),
        -1px -1px 4px var(--navy);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
    background: #c49660;
}

/* Remove box-shadow for hero call-to-action */
.hero-content .cta-button {
    box-shadow: none;
    background-color: var(--logo-color);
    border: 2px solid var(--navy);
}


/* Section Styles */
.section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: white;
}

.section a {
    color:var(--navy)
}

.section:nth-child(even) {
    background: var(--cream) !important;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.about-image {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--cream) 100%);
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: var(--navy);
    opacity: 0.1;
    border-radius: 50%;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, var(--navy) 0%, #2a3a4a 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 3px solid var(--gold);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.service-card ul li {
    font-weight: 300;
    color: white;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
}

.stars {
    color: var(--gold);
    margin-bottom: 1rem;
}

.testimonial p {
    font-weight: 300;
    line-height: 1.7;
}

.testimonial-author {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-top: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-online {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--navy) 0%, #2a3a4a 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.contact-online h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-online .cta-button {
    box-shadow: none;
    background-color: var(--logo-color);
    font-size: 1.2rem;
    padding: 1.2rem 3.5rem;
}

.contact-card {
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}


.contact-online .contact-icon {
    /* background: white; */
    /* color: var(--gold); */
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.hours-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.hours-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--cream);
}

.hours-table td:first-child {
    font-weight: 500;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

.hours-table td:last-child {
    text-align: right;
}

/* Footer */
footer {
    position: relative;
    /* Referenz für absolute Positionierung */
    background: var(--navy);
    color: var(--cream);
    text-align: center;
    padding: 2rem;
    padding-bottom: 6rem; /* bisschen mehr Platz für den FAB in der mobilen Version */
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    z-index: 0;
    /* eigener Stacking-Context */
}

footer::before {
    content: "";
    /* wichtig! */
    position: absolute;
    inset: 0;
    background-image:
        url('../images/ginko-gold.svg'),
        url('../images/ginko-blau.svg');
    background-size: 800px 800px, 690px 600px;
    background-position: 70% 20%, 25% 35%;
    background-repeat: no-repeat;
    opacity: 0.3;
    /* Dominanz regeln */
    z-index: 0;
    /* über dem Footer-Hintergrund */
    pointer-events: none;
    /* sicherheitshalber klicks durchlassen */
}

/* sorgt dafür, dass Inhalt über dem ::before liegt */
footer>* {
    position: relative;
    z-index: 1;
}

.impressum h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.impressum-content p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.impressum-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-container {
        flex-direction: column;
        /* Changed from column-reverse */
        gap: 2rem;
        height: auto;
        /* reset height for stacked layout */
        align-items: center;
        /* center items in column layout */
    }

    .hero-content {
        text-align: center;
        padding: 1rem;
    }

    .hero-image {
        max-width: 300px;
        align-items: center;
        /* center image on mobile */
    }

    .hero-image-placeholder {
        height: 400px;
        max-width: 300px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-online {
        margin-top: 1rem;
    }
}