﻿/* ==========================================================================
   Villa Hübner Warnemünde – responsives Stylesheet (Oktober 2026)
   Ersetzt styles/vh2010.css. Farbwelt bewußt beibehalten:
   Blau #3399FF (Titelleiste), Dunkelgrau #333 (Navigation), Orange #FF6600 (Links)
   ========================================================================== */

:root {
    --blue: #3399FF;
    --blue-deep: #0A7BDC;
    --blue-dark: #0A5FA8;
    --blue-soft: #EAF4FF;
    --orange: #FF6600;
    --orange-deep: #D95400;
    --orange-soft: #FFF1E6;
    --nav: #333333;
    --nav-line: #999999;
    --ink: #222222;
    --ink-soft: #555555;
    --ink-muted: #777777;
    --line: #DDE3EA;
    --paper: #FFFFFF;
    --bg: #F2F5F9;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(20, 40, 80, .08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, Helvetica, sans-serif;
    --gutter: clamp(16px, 4vw, 40px);
    --wrap: 1040px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}

img, svg, iframe { max-width: 100%; }
img { height: auto; }

a {
    color: var(--orange);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover, a:focus { color: var(--orange-deep); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(51, 153, 255, .45);
    outline-offset: 2px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h4 { font-size: 1.05rem; color: var(--blue-dark); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* Das ASP.NET-Form umschließt die ganze Seite */
form { margin: 0; }

/* ---------- Seitenrahmen ---------- */
#wrapper {
    max-width: var(--wrap);
    margin: 0 auto;
    background: var(--paper);
    box-shadow: var(--shadow);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
@media (min-width: 1100px) {
    #wrapper {
        margin: 20px auto;
        min-height: auto;
        border-radius: var(--radius);
        overflow: hidden;
    }
}

/* ---------- Titelleiste (blau, wie bisher) ---------- */
#sitetitle {
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    font-size: clamp(.95rem, 1.6vw, 1.1rem);
    font-weight: 600;
    letter-spacing: .01em;
    padding: 10px var(--gutter);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .15);
}

/* ---------- Navigation (dunkel, wie bisher – jetzt mit Burger-Menü) ---------- */
#nav {
    background: var(--nav);
    border-bottom: 3px solid var(--nav-line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 calc(var(--gutter) - 8px);
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font: 600 1rem var(--font);
    padding: 12px 8px;
    cursor: pointer;
    align-items: center;
    gap: 10px;
}
.nav-toggle .bars {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
    border-radius: 2px;
}
.nav-toggle .bars::before, .nav-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s ease;
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
}
#nav ul li { margin: 0; padding: 0; }
#nav ul li a {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: 13px 18px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: background-color .15s ease, border-color .15s ease;
}
#nav ul li a:hover, #nav ul li a:focus {
    background-color: var(--blue);
    color: #fff;
    text-decoration: none;
}
#nav ul li a.activepge {
    background-color: var(--blue-deep);
    border-bottom-color: #fff;
}
#nav ul li#lang {
    margin-left: auto;
}
#nav ul li#lang a {
    font-weight: 600;
    color: #ddd;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#nav ul li#lang a::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background:
        linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
    opacity: .85;
}
#nav ul li#lang a:hover { color: #fff; }

/* Sprachumschalter in der Burger-Leiste (nur mobil sichtbar) */
#nav .lang-mobile {
    display: none;
    color: #ddd;
    font-weight: 600;
    font-size: .9rem;
    padding: 12px 10px;
    text-decoration: none;
    align-items: center;
    gap: 6px;
}
#nav .lang-mobile:hover { color: #fff; text-decoration: none; }

@media (max-width: 759px) {
    .nav-bar { padding: 0 8px; }
    .nav-toggle { display: inline-flex; }
    #nav ul {
        flex-basis: 100%;
        flex-direction: column;
        order: 3;
        display: none;
        border-top: 1px solid #555;
    }
    .nav-open #nav ul, #nav.nav-open ul { display: flex; }
    .nav-bar { flex-wrap: wrap; }
    #nav ul li a { padding: 14px 16px; border-bottom: 1px solid #444; margin-bottom: 0; }
    #nav ul li a.activepge { border-bottom-color: #444; box-shadow: inset 4px 0 0 #fff; }
    #nav ul li#lang { margin-left: 0; }
    #nav .lang-mobile { display: inline-flex; }
    #nav ul li#lang { display: none; }
}

/* ---------- Bildleiste ---------- */
.banner {
    display: block;
    width: 100%;
    height: clamp(38px, 6vw, 60px);
    object-fit: cover;
    object-position: center;
}

/* ---------- Inhalt ---------- */
#content.container {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    padding: clamp(20px, 3.5vw, 36px) var(--gutter) clamp(28px, 4vw, 48px);
    margin: 0;
}
#content p {
    font-size: 1rem;
    line-height: 1.6;
}
#content h1 {
    font-size: 1.35rem;
    color: var(--orange);
    font-weight: 700;
}
#content h2 {
    font-size: 1.15rem;
    color: var(--ink);
    font-weight: 700;
}

.HomeTitle {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0 0 1rem;
    line-height: 1.3;
}
.HomeText { color: #414243; }
.homeTextL { font-size: .95rem; }
.bold14px { font-size: 1rem; font-weight: 700; }
.widelines { line-height: 1.6; }
.blacktext { color: #000; font-weight: 700; }
.ortext { font-weight: 700; color: var(--orange); }
.ErrorMsg { color: #C00; }
.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 70ch; }
.muted { color: var(--ink-muted); }

/* ---------- Karten / Boxen ---------- */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(16px, 2.5vw, 24px);
}
.card + .card { margin-top: 1rem; }
.card h2, .card h3 { margin-top: 0; }
.card--soft { background: var(--blue-soft); border-color: #cfe3fb; box-shadow: none; }
.card--accent { border-left: 4px solid var(--orange); }

/* ---------- Buttons ---------- */
.btn, input.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 600 .95rem var(--font);
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid var(--orange);
    background: var(--orange);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover, .btn:focus, input.btn:hover {
    background: var(--orange-deep);
    border-color: var(--orange-deep);
    color: #fff;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-ghost, input.btn-ghost {
    background: transparent;
    color: var(--orange);
}
.btn-ghost:hover, input.btn-ghost:hover { background: var(--orange-soft); color: var(--orange-deep); }
.btn-blue, input.btn-blue { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-blue:hover, input.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-small { padding: 7px 14px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Startseite ---------- */
.hero { margin-bottom: 1.5rem; }
.hero-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 1rem;
}
#content .hero-text h1 { margin: 0; font-size: clamp(1.3rem, 2.8vw, 1.7rem); color: var(--blue-dark); }
.hero-text .lead { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1rem; }
.chips li {
    background: var(--blue-soft);
    color: var(--blue-dark);
    border: 1px solid #cfe3fb;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: .82rem;
    font-weight: 600;
}

.house {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    line-height: 0;
}
.house img { width: 100%; height: auto; display: block; }
.house .hotspots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hotspots a { cursor: pointer; }
.hotspots circle {
    fill: rgba(51, 153, 255, .28);
    stroke: #fff;
    stroke-width: 3;
    paint-order: stroke;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
    transition: fill .15s ease, stroke .15s ease;
}
.hotspots text {
    fill: #fff;
    font: 700 28px var(--font);
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, .35);
    stroke-width: 2px;
}
.hotspots a:hover circle, .hotspots a:focus circle, .hotspots a.is-hot circle {
    fill: rgba(255, 102, 0, .75);
    stroke: #fff;
}
.hotspots a:focus { outline: none; }

.apt-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
    gap: 8px;
}
.apt-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    font-size: .9rem;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.apt-links a .num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.apt-links a:hover, .apt-links a:focus, .apt-links a.is-hot {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-soft);
    text-decoration: none;
}
.apt-links a:hover .num, .apt-links a.is-hot .num { background: var(--orange); }
.hint { font-size: .9rem; color: var(--ink-muted); margin: .75rem 0 0; }

/* ---------- Wohnungen ---------- */
.apt {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px 24px;
    padding: clamp(16px, 2.5vw, 24px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
    .apt { grid-template-columns: 170px 1fr; }
}
.apt-plan {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fafbfc;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.apt-plan img { max-height: 280px; width: auto; }
.apt-plan:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.apt-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    font-size: 1.2rem;
    color: var(--blue-dark);
    margin: 0 0 .5rem;
}
.apt-title .apt-pers {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--bg);
    border-radius: 999px;
    padding: 3px 10px;
}
.apt-desc { margin: 0 0 .9rem; }
.prices {
    margin: 0 0 1rem;
    border-top: 1px solid var(--line);
}
.prices > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
    .prices > div { grid-template-columns: minmax(210px, 2fr) 3fr; }
}
.prices dt { font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.prices dd { margin: 0; }
.prices-label {
    font-weight: 700;
    margin: 0 0 .25rem;
    display: block;
}
.apt-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Anfahrt ---------- */
.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    background: var(--bg);
}
@media (min-width: 760px) { .map-embed { aspect-ratio: 16 / 9; } }
.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.map-link { margin: .5rem 0 1.5rem; font-size: .9rem; }
.directions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}
@media (min-width: 860px) { .directions { grid-template-columns: 3fr 2fr; } }
.directions h4 { font-size: 1.1rem; margin-bottom: .6rem; display: flex; align-items: center; gap: 8px; }
.directions p:last-child { margin-bottom: 0; }
.address-line { font-weight: 600; margin: 0 0 1rem; }

/* ---------- Kontakt / Buchungsanfrage ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}
@media (min-width: 860px) {
    .contact-grid { grid-template-columns: 280px 1fr; }
    .contact-card { position: sticky; top: 64px; }
}
.contact-card address { font-style: normal; line-height: 1.6; }
.contact-card .label {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    margin-top: .9rem;
}
.contact-card a { word-break: break-word; }

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.6rem 0 .7rem;
    color: var(--blue-dark);
}
.form-section-title:first-child { margin-top: 0; }

.radio-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.radio-row label { margin: 0 22px 0 7px; font-weight: 600; cursor: pointer; }
.radio-row input[type="radio"] { width: 18px; height: 18px; accent-color: var(--blue-deep); vertical-align: -3px; cursor: pointer; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 18px;
}
@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .field-full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label {
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink-soft);
}
.field label .req { color: var(--orange); }
.field input[type="text"], .field select, .field textarea, .input {
    width: 100%;
    font: 1rem var(--font);
    color: var(--ink);
    background: #fff;
    border: 1px solid #c9d2dd;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 180px; resize: vertical; }
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--blue-deep);
    box-shadow: 0 0 0 3px rgba(51, 153, 255, .25);
    outline: none;
}
.field ::placeholder { color: #9aa4b1; font-style: italic; }

/* Validatoren (ASP.NET rendert <span>) */
.val { color: #C00; font-weight: 700; font-size: .9rem; }
.val-msg {
    display: block;
    color: #C00;
    font-size: .875rem;
    margin-top: 2px;
}
.form-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-note { font-size: .85rem; color: var(--ink-muted); margin: .75rem 0 0; }

/* Bestätigungs-Popup (AjaxControlToolkit ModalPopupExtender) */
.modalBackground {
    background-color: #0b1a2b;
    opacity: .55;
}
.modal-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    padding: clamp(18px, 3vw, 28px);
    max-width: calc(100vw - 32px);
    width: 500px;
    max-height: calc(100vh - 32px);
    overflow: auto;
}
.modal-panel .HomeTitle { font-size: 1.2rem; margin-bottom: .75rem; }
.modal-text { display: block; line-height: 1.6; margin: 0 0 1rem; word-break: break-word; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.impressum {
    margin-top: 2rem;
    padding: 18px 22px;
    background: aliceblue;
    border-radius: var(--radius);
    font-size: .92rem;
    line-height: 1.7;
}
.impressum strong { display: block; margin-bottom: .25rem; }

/* ---------- Bestätigungsseite ---------- */
.confirm-card { max-width: 720px; }

/* ---------- Fußzeile ---------- */
h5.site-footer, .site-footer {
    margin: 0;
    padding: 16px var(--gutter);
    border-top: 1px solid var(--line);
    background: #fafbfc;
    color: var(--ink-muted);
    font-size: .8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.6;
}
.site-footer a { color: var(--ink-soft); }
.site-footer .sep { margin: 0 .5em; opacity: .5; }

/* ---------- Altlasten-Klassen (weiter verwendet) ---------- */
.leftimage { float: left; margin-right: 10px; }
.rightimage { float: right; margin-left: 15px; margin-bottom: 5px; }
img.floatLeft { float: left; margin: 4px; }
img.floatRight { float: right; margin: 4px; }
.margin10left { margin: 10px; }
.margin10right { margin: 10px; }
.watermarkNormal, .watermarkDeposit { color: #808080; font-style: italic; }

/* Spam-Schutz: Honeypot-Feld (fuer Menschen unsichtbar, Bots fuellen es aus) */
.vh-hp {
    position: absolute !important;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.field-captcha input[type="text"] { max-width: 220px; }

/* ---------- Hilfsklassen ---------- */
.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;
}
@media print {
    #nav, .banner, .btn, .nav-toggle { display: none !important; }
    #wrapper { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
