@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ========================================
   MODERN DESIGN - FERIENWOHNUNG IM GRUND
   ======================================== */

/* === GLOBAL RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-weight: 400;
}

/* === TYPOGRAPHY === */
h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.3;
    color: #59191b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h1 small {
    display: block;
    font-size: 1.2rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 400;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #59191b;
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* === LINKS === */
a:link,
a:visited {
    color: #5d1b1e;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover,
a:active {
    color: #431314;
    border-bottom: 1px solid #5d1b1e;
}

/* Spezielle Links in der Navigation */
.nav a:link,
.nav a:visited {
    border-bottom: none;
}

/* Galerie Links */
.my-gallery a:link,
.my-gallery a:visited,
.my-gallery a:hover,
.my-gallery a:active {
    border-bottom: none !important;
}

/* === LAYOUT === */
.bg {
    background: transparent;
    width: 100%;
    min-height: 100vh;
    margin: 0;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* === HEADER === */
.head {
    width: 100%;
    padding: 2rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.head table {
    width: 100%;
}

.logo {
    max-width: 280px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.slogan img {
    max-width: 100%;
    height: auto;
}

/* === NAVIGATION === */
.nav {
    background: linear-gradient(135deg, #59191b 0%, #5d1b1e 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav .mobileNavTrigger {
    display: none;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-size: 1rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.nav .mobileNavTrigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav .mobileNavTrigger.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav ul.mainnav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav ul.mainnav li {
    position: relative;
}

.nav ul.mainnav li a {
    display: block;
    color: white;
    padding: 1.2rem 2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
    border-bottom: none;
}

.nav ul.mainnav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav ul.mainnav li a.active,
.nav ul.mainnav li a[class*="active"] {
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid #faee9f !important;
}

/* === TITLE IMAGE === */
.titelImage {
    width: 100%;
    overflow: hidden;
    max-height: 450px;
}

.titelImage img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* === CONTENT === */
.content {
    padding: 3rem 2.5rem;
    background: white;
    min-height: 400px;
}

/* === LAYOUT COLUMNS === */
.left {
    width: 65%;
    float: left;
    padding-right: 3rem;
}

.right {
    width: 35%;
    float: right;
}

.full {
    width: 100%;
    float: none;
    clear: both;
}

/* === PROMOTION BOX === */
.promotion {
    background: linear-gradient(135deg, #fef5f3 0%, #fdeae6 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #59191b;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.promotion h3 {
    margin-top: 0;
    color: #59191b;
}

/* === FORMS === */
input,
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #59191b;
    box-shadow: 0 0 0 3px rgba(89, 25, 27, 0.1);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.95rem;
}

.halfwidth {
    width: 50%;
    float: left;
    padding-right: 0.5rem;
}

.halfwidth:nth-child(even) {
    padding-right: 0;
    padding-left: 0.5rem;
}

.btnSend {
    background: linear-gradient(135deg, #59191b 0%, #5d1b1e 100%);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(89, 25, 27, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btnSend:hover {
    background: linear-gradient(135deg, #431314 0%, #59191b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(89, 25, 27, 0.4);
}

.btnSend:active {
    transform: translateY(0);
}

/* === CONTENT NAVIGATION === */
.contentnav {
    display: none;
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.contentnav li {
    border-bottom: 1px solid #e2e8f0;
}

.contentnav li:last-child {
    border-bottom: none;
}

.contentnav li a {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    font-weight: 500;
    color: #334155;
    position: relative;
    transition: all 0.2s ease;
    border-bottom: none;
}

.contentnav li a:after {
    content: "→";
    position: absolute;
    right: 1.25rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.contentnav li a:hover {
    background: white;
    color: #5d1b1e;
}

.contentnav li a:hover:after {
    right: 1rem;
    opacity: 1;
}

/* === FOOTER === */
.footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.footer a {
    margin: 0 1rem;
    color: #64748b;
}

/* === GALLERY === */
.my-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.my-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.my-gallery figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.my-gallery figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.my-gallery figure img:hover {
    transform: scale(1.05);
}

.my-gallery figure a {
    display: block;
    border-bottom: none !important;
}

.my-gallery figure a:hover {
    border-bottom: none !important;
}

/* === MASONRY LAYOUT === */
.masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry .item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.masonry .item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.masonry .item img {
    width: 100%;
    display: block;
}

/* === OWL CAROUSEL === */
.owl-carousel {
    position: relative;
}

.owl-prev-btn,
.owl-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem 1.25rem;
    background: rgba(89, 25, 27, 0.7);
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 50;
    backdrop-filter: blur(4px);
    border: none;
    font-size: 1.5rem;
}

.owl-prev-btn {
    left: 1rem;
}

.owl-next-btn {
    right: 1rem;
}

.owl-prev-btn:hover,
.owl-next-btn:hover {
    background: rgba(89, 25, 27, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* === UTILITIES === */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.facebook {
    display: none;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content > * {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   MOBILE RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    /* Typography */
    body {
        font-size: 16px;
        line-height: 1.65;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    h3 {
        font-size: 1.25rem;
        text-align: center;
    }
    
    p {
        text-align: center;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem;
    }
    
    /* Layout */
    .wrapper {
        padding: 0;
    }
    
    .head {
        flex-direction: column;
        padding: 1.5rem 1rem 1rem;
        text-align: center;
    }
    
    .logo {
        max-width: 200px;
        margin: 0 auto 0.5rem;
    }
    
    .slogan {
        display: none;
    }
    
    /* Navigation */
    .nav .mobileNavTrigger {
        display: block;
    }
    
    .nav .mobileNavTrigger:after {
        content: "☰";
        position: absolute;
        right: 1.5rem;
        font-size: 1.5rem;
    }
    
    .nav ul.mainnav {
        display: none;
        flex-direction: column;
    }
    
    .nav ul.mainnav.active {
        display: flex !important;
    }
    
    .nav ul.mainnav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav ul.mainnav li a {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Content */
    .content {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .titelImage {
        margin: 0;
    }
    
    img {
        max-width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    /* Layout Columns */
    .left {
        width: 100%;
        float: none;
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .right {
        width: 100%;
        float: none;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 2px solid #e2e8f0;
        text-align: center;
    }
    
    /* Promotion */
    .promotion {
        text-align: center;
        border-left: none;
        border-top: 4px solid #59191b;
        margin: 1.5rem auto;
    }
    
    /* Forms */
    input,
    select,
    textarea {
        padding: 1rem 1.1rem;
        font-size: 16px;
        margin-bottom: 1.2rem;
    }
    
    .halfwidth {
        width: 100%;
        float: none;
        padding-right: 0;
        padding-left: 0;
    }
    
    .halfwidth input,
    .halfwidth select {
        width: 100% !important;
    }
    
    .btnSend {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1.05rem;
    }
    
    /* Content Navigation */
    .contentnav {
        display: block;
        text-align: center;
    }
    
    .contentnav li a {
        text-align: left;
        min-height: 50px;
        font-size: 1rem;
        padding: 1.1rem 1.25rem;
    }
    
    /* Gallery */
    .my-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .masonry {
        column-count: 2;
        column-gap: 1rem;
    }
    
    /* Carousel */
    .owl-prev-btn,
    .owl-next-btn {
        padding: 1.2rem 1rem;
        font-size: 1.2rem;
        min-width: 50px;
        min-height: 50px;
        opacity: 0.8;
        background: rgba(89, 25, 27, 0.8);
    }
    
    .owl-prev-btn {
        left: 0.5rem;
    }
    
    .owl-next-btn {
        right: 0.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .footer a {
        display: block;
        text-align: center;
        margin: 0.75rem auto;
        max-width: 90%;
    }
    
    /* Lists */
    ul, ol {
        text-align: left;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.5rem;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        font-size: 0.9rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .right table {
        float: none !important;
        margin: 0 auto !important;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Touch Targets */
    a,
    button,
    .btnSend,
    .nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Tap Highlight */
    a, button {
        -webkit-tap-highlight-color: rgba(89, 25, 27, 0.2);
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    p {
        max-width: 95%;
        font-size: 0.95rem;
    }
    
    .head {
        padding: 1rem 0.75rem 0.75rem;
    }
    
    .logo {
        max-width: 160px;
    }
    
    .nav .mobileNavTrigger {
        padding: 1.1rem 1rem;
        font-size: 0.95rem;
    }
    
    .nav .mobileNavTrigger:after {
        right: 1rem;
        font-size: 1.4rem;
    }
    
    .nav ul.mainnav li a {
        padding: 1rem 1rem;
        font-size: 0.95rem;
    }
    
    .content {
        padding: 1.5rem 1rem;
    }
    
    .left {
        margin-bottom: 1.5rem;
    }
    
    .right {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .btnSend {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .my-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .masonry {
        column-count: 1;
        column-gap: 0.75rem;
    }
    
    .masonry .item {
        margin-bottom: 0.75rem;
    }
    
    .owl-prev-btn,
    .owl-next-btn {
        padding: 1rem 0.75rem;
    }
    
    .footer {
        padding: 1.25rem 0.75rem;
        font-size: 0.8rem;
    }
    
    ul, ol {
        max-width: 95%;
        font-size: 0.95rem;
    }
    
    label {
        text-align: center;
        display: block;
    }
    
    select,
    input,
    textarea {
        text-align: center;
    }
    
    input[type="date"],
    input[type="email"],
    input[type="tel"],
    input[type="text"] {
        text-align: center;
    }
    
    textarea {
        text-align: left;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    h1 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .head {
        padding: 1rem 1.5rem;
    }
    
    .content {
        padding: 1.5rem 2rem;
    }
}

/* Very Small Screens */
@media (max-width: 375px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .content {
        padding: 1.25rem 0.75rem;
    }
}

/* Better Text Flow on Mobile */
@media (max-width: 768px) {
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .content p,
    .left p,
    .right p {
        line-height: 1.8;
    }
    
    br {
        display: block;
        margin: 0.5rem 0;
        content: '';
    }
    
    b, strong {
        font-weight: 600;
    }
}

/* === PRINT === */
@media print {
    .nav,
    .facebook,
    .contentnav,
    .footer,
    .owl-prev-btn,
    .owl-next-btn {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .wrapper {
        box-shadow: none;
    }
}
