/* Stylesheet Turtle Diving Resort */

/* Schriften laden */
@font-face {
    font-family: 'Fraunces';
    src: url('fonts/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf');
}
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.ttf');
    font-weight: 400;
}
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Bold.ttf');
    font-weight: 700;
}
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Italic.ttf');
    font-weight: 400;
    font-style: italic;
}


/* alle Elemente zurueksetzen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    color: #2E3A36;
    background-color: #FAF7F2;
    line-height: 1.7;
    font-size: 17px;
    min-width: 1280px;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    color: #1A1A1A;
    line-height: 1.2;
}

h1 {
    font-size: 56px;
    font-weight: bold;
}

h2 {
    font-size: 38px;
    font-weight: 600;
}

h3 {
    font-size: 22px;
    font-weight: 600;
}

p {
    margin-bottom: 18px;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: #4F7468;
    text-decoration: underline;
}

a:hover {
    color: #3F5E54;
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}


/* Bilder */
.intro-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.section-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.betty-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.team-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}


/* Navigation oben */
.hero-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 28px 40px;
}

.site-nav {
    display: flex;
    list-style: none;
}

.site-nav li {
    margin-left: 28px;
}

.site-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.site-nav a:hover, .site-nav a.active {
    opacity: 1;
    border-bottom: 2px solid rgba(255,255,255,0.65);
}


/* Sticky Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #4F7468;
    box-shadow: 0 2px 10px rgba(0,0,0,0.22);
    transform: translateY(-100%);
    transition: transform 0.35s;
}

.site-header.visible {
    transform: translateY(0);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}


/* Sektionen */
.page-section {
    display: block;
    scroll-margin-top: 66px;
}

#home {
    scroll-margin-top: 0;
}

.section {
    padding: 88px 0;
}

.s-white {
    background-color: #FFFFFF;
}

.s-cream {
    background-color: #FAF7F2;
}

.s-sand {
    background-color: #CDB499;
}

.s-foam {
    background-color: #B8C5B9;
}

.s-dark {
    background-color: #4F7468;
    color: #FFFFFF;
}

.s-dark h1, .s-dark h2, .s-dark h3, .s-dark p {
    color: #FFFFFF;
}

.section-title {
    margin-bottom: 18px;
}

.section-lead {
    font-size: 19px;
    max-width: 720px;
    margin-bottom: 36px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
}

.t-center {
    text-align: center;
}

.mt-24 {
    margin-top: 24px;
}

.mt-40 {
    margin-top: 40px;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 34px;
    background-color: #4F7468;
    color: #FFFFFF;
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 3px;
    border: 2px solid #4F7468;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #3F5E54;
    border-color: #3F5E54;
    color: #FFFFFF;
}

.btn-white {
    background-color: #FFFFFF;
    color: #4F7468;
    border-color: #FFFFFF;
}

.btn-white:hover {
    background-color: #FAF7F2;
    color: #3F5E54;
    border-color: #FAF7F2;
}

.btn-lg {
    padding: 15px 42px;
    font-size: 17px;
    width: 100%;
    text-align: center;
}


/* Trennlinie */
hr.divider {
    border: none;
    height: 3px;
    background: linear-gradient(to right, #8AA494, #78AAA1, #B8C5B9);
    margin: 0;
}


/* Hero Bereich */
.hero {
    position: relative;
    height: 90vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1e3d38;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(46,58,54,0.52), rgba(46,58,54,0.32));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    padding: 0 24px;
    max-width: 820px;
}


/* Highlight Box */
.highlight-box {
    background-color: #CDB499;
    border-left: 5px solid #4F7468;
    padding: 38px 44px;
    border-radius: 0 6px 6px 0;
    margin-top: 40px;
}

.highlight-box h3 {
    color: #4F7468;
    margin-bottom: 14px;
}


/* Kurs Karten */
.kurse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 44px;
}

.kurs-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(46,58,54,0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kurs-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.kurs-body {
    padding: 22px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kurs-card h3 {
    color: #4F7468;
    margin-bottom: 10px;
    font-size: 18px;
}

.kurs-meta {
    margin: 12px 0 18px;
}

.kurs-meta p {
    font-size: 15px;
    margin-bottom: 3px;
}


/* Formular */
.form-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1A1A1A;
    font-size: 15px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #8AA494;
    border-radius: 3px;
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #2E3A36;
    background-color: #FFFFFF;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #4F7468;
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.form-check input[type="checkbox"] {
    margin-top: 3px;
    width: 17px;
    height: 17px;
}

.form-check label {
    font-size: 14px;
    line-height: 1.55;
}

.form-submit {
    margin-top: 32px;
}


/* Kontakt */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}


/* Footer */
.site-footer {
    background-color: #3F5E54;
    color: #FFFFFF;
    padding: 52px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer p, .site-footer a {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    line-height: 1.85;
}

.site-footer a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.18);
    margin-top: 44px;
    padding: 22px 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 28px;
    font-size: 14px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: #FFFFFF;
}


/* Page Hero (Unterseiten) */
.page-hero {
    background-color: #4F7468;
    padding: 64px 0;
    text-align: center;
}

.page-hero h1 {
    color: #FFFFFF;
}

.page-hero p {
    color: rgba(255,255,255,0.88);
    max-width: 620px;
    margin: 16px auto 0;
}


/* nach oben Button */
.btn-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    z-index: 200;
    width: 48px;
    height: 48px;
    background-color: #4F7468;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.btn-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.btn-top:hover {
    background-color: #3F5E54;
}

.btn-top svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Tauchspot Karte */
.map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(46,58,54,0.18);
    margin-top: 32px;
    background: #78AAA1;
}

.map-container svg {
    display: block;
    width: 100%;
    height: auto;
}

#Spots > g {
    cursor: pointer;
}

#Spots > g circle {
    transition: all 0.18s;
    transform-box: fill-box;
    transform-origin: center;
}

#Spots > g:hover circle {
    transform: scale(1.35);
    filter: drop-shadow(0 0 6px rgba(250,247,242,0.85));
}

#Spots > g.active circle {
    transform: scale(1.4);
    fill: #FAF7F2 !important;
    stroke: #4F7468 !important;
}

#Spots > g.active text {
    font-weight: 900;
}


/* Spot Popup */
.spot-popup {
    position: absolute;
    bottom: 16px;
    left: 16px;
    max-width: 340px;
    width: calc(100% - 32px);
    background: rgba(250,247,242,0.96);
    border-radius: 8px;
    box-shadow: 0 6px 32px rgba(46,58,54,0.28);
    padding: 18px 20px 16px;
    border-left: 4px solid #4F7468;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 16px;
    align-items: start;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.22s;
    z-index: 10;
}

.spot-popup.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.spot-popup-main {
    grid-column: 1;
}

.spot-popup-close {
    grid-column: 2;
    grid-row: 1;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #8AA494;
    line-height: 1;
    padding: 0;
    margin-top: -2px;
    align-self: start;
}

.spot-popup-close:hover {
    color: #4F7468;
}

.spot-popup h3 {
    color: #4F7468;
    margin-bottom: 10px;
    font-size: 21px;
}

.spot-popup p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #2E3A36;
}


/* Karten Vorschau auf Home */
.map-preview-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(46,58,54,0.16);
    cursor: pointer;
}

.map-preview-wrap img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

.map-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46,58,54,0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.map-preview-wrap:hover .map-preview-overlay {
    background: rgba(46,58,54,0.38);
}

.map-preview-overlay span {
    color: #FFFFFF;
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    background: #4F7468;
    padding: 10px 24px;
    border-radius: 3px;
    transition: all 0.3s;
}

.map-preview-wrap:hover .map-preview-overlay span {
    opacity: 1;
}
