/*
wp-content/themes/Divi-child/my_style.css
Theme Name:     Divi Child
Theme URI:      https://marina.mikkelvik.com
Description:    Child Theme für Divi – Marina Onepager
Author:         Dein Name
Template:       Divi
Version:        1.0.0
Text Domain:    Divi-child
*/

/* ===============================
   Mikkelvik Custom Styles
   =============================== */

#main-footer {
    background-color: #e30613; /* rot */
    color: #fff; /* Weißer Text */
    text-align: center;
    padding: 20px 0;
}

#footer-bottom {
  /* display: none; Footer-Bottom ausblenden */
}

/* ==============================================
   Divi Wireframe View: Delete-Buttons unsichtbar
   Beeinflusst nur Wireframe View im Backend
   ============================================== */
body.et-boc .et_pb_wireframe button.et-fb-button {
    display: none !important;       /* gesamter Button wird ausgeblendet */
    pointer-events: none;           /* Klicks auf diesen Bereich ignorieren */
}

/* etwas höher bleiben, da Menü das Heading verdeckt */
.et_pb_section {
  scroll-margin-top: 140px !important;
}


/* -------------------------------------------- */
/* HERO SECTION: Vollbild, fixierter Hintergrund */
/* -------------------------------------------- */
#top-hg-section {
  height: 100vh; /* Hero nimmt volle Bildschirmhöhe */
  background-image: url('https://marina.mikkelvik.com/wp-content/uploads/2026/02/Marina_Mikkelvik_smabathavn_homepage_center.png');
  background-size: cover;           /* Bild füllt die Section */
  background-position: center;      /* zentriert */
  background-attachment: fixed;     /* Desktop fixiertes Hintergrundbild */
  position: relative;               /* für absolute Positionierung von Text/Bild */
  display: flex;
  flex-direction: column;
  justify-content: center;          /* Text vertikal zentrieren */
  align-items: center;              /* Text horizontal zentrieren */
  text-align: center;
  z-index: 1;                       /* Hintergrund unter Header */
}

/* Überschriften im Hero */
#top-hg-section h1 {
  color: #014894;
  margin: 0.2em 0;
  line-height: 1.2;
}

/* Pfeil unter dem Text */
#top-slide-img {
  margin-top: 1rem;
}

/* Mobile Anpassung: Hintergrund scrollt, JS übernimmt Parallax */
@media (max-width: 980px) {
  #top-hg-section {
    background-attachment: scroll;
  }
}

/* -------------------------------------------- */
/* STICKY HEADER: initial unsichtbar, fixiert */
/* -------------------------------------------- */
body.et-boc .et_pb_section_0 {
  opacity: 0;                        /* unsichtbar von Anfang an */
  transition: opacity 0.5s ease-in-out;
  position: fixed;                    /* Sticky */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* Editor / Wireframe sichtbar halten */
body.et_builder_inner_content .et_pb_section_0,
body.et_fb .et_pb_section_0 {
  opacity: 1 !important;             /* sichtbar im Builder */
  position: relative !important;      /* nicht fixiert im Builder */
}

/* -------------------------------------------- */
/* CSS direkt in den Bildern/Icon */
/* Logo responsive */
/* .top-menu-img img, .top-slide-img img {
  height: 4rem;
  width: auto;
  max-width: 100%; */
  /*object-fit: contain;  Logo behält Proportionen */
/* } */

/* Tablet */
@media (max-width: 980px) {
  /* .top-menu-img img, .top-slide-img img { height: 3rem; } */
}

/* Mobile */
@media (max-width: 767px) {
  /* .top-menu-img img, .top-slide-img img { height: 2.5rem; } */
}
/* abstand im Blurbs von oben wegen icon */
#toplink-sektion .et_pb_module_header {
  padding-top: 0.4rem;
  padding-bottom: 0;
}
/* Textfarbe der Blurbs auf normal Weiß */
#toplink-sektion .et_pb_blurb_content {
  background-color: #e30613;
  transition: color 0.3s; /* optional: Smooth Hover */
}

/* Hover: Text Blau */
#toplink-sektion .et_pb_blurb_content:hover {
  background-color: #014894;
}

/* Header-Bereich */
#main-header-menu {
  position: relative; /* Pseudo-Element positioniert sich relativ zum Header */
  background-color: #014894; /* Blau, gleiche Farbe wie Header */
}

/* Dreieck unten mittig */
#main-header-menu::after {
  content: "";
  position: absolute;
  bottom: -14px; /* Abstand unter Header */
  left: 50%; /* horizontal zentrieren */
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #014894; /* gleiche Farbe wie Header */
}

/* Optional: sanfte Bewegung beim Scroll-Sticky */
.et-fixed-header #main-header-menu::after {
  transform: translateX(-50%) translateY(0); /* leicht einblenden */
  transition: transform 0.3s ease;
}


/* Blurbs in einer Spalte nebeneinander */
/* keine Mobile */
@media (min-width: 767px) {
  .batplasser-link-blurb,
  .adkomst-link-blurb,
  .service-link-blurb,
  .lage-link-blurb,
  .qualitaet-link-blurb {
    display: inline-block;   /* nebeneinander */
    width: 48%;              /* knapp 50% für zwei Buttons */
    margin-right: 4%;        /* Abstand zwischen den Buttons */
    vertical-align: top;     /* gleiche Höhe */
    /* padding-top: 0.4rem; */
    padding-bottom: 0;
  }
}

/* Letzter Button kein Margin rechts */
.batplasser-link-blurb:last-child,
.adkomst-link-blurb:last-child,
.service-link-blurb:last-child,
.lage-link-blurb:last-child,
.qualitaet-link-blurb:last-child {
    margin-right: 0;
}

.batplasser-link-blurb .et_pb_module_header,
.adkomst-link-blurb .et_pb_module_header,
.service-link-blurb .et_pb_module_header,
.lage-link-blurb .et_pb_module_header,
.qualitaet-link-blurb .et_pb_module_header{
    padding-top: 0.4rem;
    padding-bottom: 0;
}

#batplasser-link-blurb-links .et_pb_blurb_content,
#adkomst-link-blurb-links .et_pb_blurb_content,
#service-link-blurb-links .et_pb_blurb_content,
#lage-link-blurb-links .et_pb_blurb_content,
#qualitaet-link-blurb-links .et_pb_blurb_content{
    /* background-color: #e30613; */
    background-color: #014894;
}

/* Hover: Text rot */
#batplasser-link-blurb-links .et_pb_blurb_content:hover,
#adkomst-link-blurb-links .et_pb_blurb_content:hover,
#service-link-blurb-links .et_pb_blurb_content:hover,
#lage-link-blurb-links .et_pb_blurb_content:hover,
#qualitaet-link-blurb-links  .et_pb_blurb_content:hover {
  /* background-color: #014894; */
  background-color: #e30613;
}

#batplasser-link-blurb-rechts .et_pb_blurb_content,
#adkomst-link-blurb-rechts .et_pb_blurb_content,
#service-link-blurb-rechts .et_pb_blurb_content,
#lage-link-blurb-rechts .et_pb_blurb_content,
#qualitaet-link-blurb-rechts .et_pb_blurb_content{
    background-color: #e30613;
    /* background-color: #014894; */

}

/* Hover: Text Blau */
#batplasser-link-blurb-rechts .et_pb_blurb_content:hover,
#adkomst-link-blurb-rechts .et_pb_blurb_content:hover,
#service-link-blurb-rechts .et_pb_blurb_content:hover,
#lage-link-blurb-rechts .et_pb_blurb_content:hover,
#qualitaet-link-blurb-rechts .et_pb_blurb_content:hover {
  background-color: #014894;
  /* background-color: #e30613; */
}

/* -------------------------------------------- */

.price-toggle .et_pb_toggle_title:before {
  color: #e30613;
}

/* Fixiertes Hintergrundbild für die Toggle-Section */
#preisliste  {
    background-attachment: fixed;   /* Hintergrund bleibt stehen */
    background-size: contain;
}

#qualitaet  {
    margin-top: -10px;
}

/* -------------------------------------------- */
/* Kontaktformular Input- und Textarea-Felder leicht weiß durchscheinend */
.et_pb_contact_form input,
.et_pb_contact_form textarea,
.et_pb_contact_form select {
    background-color: rgba(255, 255, 255, 0.7) !important; /* weiß mit 20% Deckkraft */
    border: 1px solid rgba(255,255,255,0.5);                 /* leichter weißer Rand */
    color: #000;                                             /* Textfarbe weiß */
}

/* Placeholder Text schwarz lassen */
.et_pb_contact_form input::placeholder,
.et_pb_contact_form textarea::placeholder {
    color: #000 !important; /* Schwarz */
}

/* Fokus-Effekt für Felder */
.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus,
.et_pb_contact_form select:focus {
    background-color: rgba(255, 255, 255, 0.3); /* leicht stärker durchscheinend beim Fokus */
    border-color: #fff;                           /* weißer Rand beim Klicken */
    color: #fff;                                  /* Textfarbe weiß */
}

/* Captcha-Frage im Kontaktformular */
.et_pb_contact_right {
    color: #e30613 !important;   /* rot */
    font-weight: bold !important;  /* Fett */
    font-size: 1.2em;              /* Optional: etwas größer */
}

/* 10jahrespacht Checkbox */

.et_pb_contact_field_9 .et_pb_contact_field_options_wrapper {
  padding-top: 0.9rem;
}
.et_pb_contact_field_9 .et_pb_contact_field_options_title {
    color: #ffffff !important;                    /* Textfarbe weiss */
    display: none; /* Versteckt den Text "10 Jahre Pachtvertrag" */
}
.et_pb_contact_field_9 .et_pb_contact_field_checkbox label {
    color: #ffffff !important;                    /* Textfarbe weiss */
}

.et_pb_contact_main_title {
    color: #ffffff !important;                    /* Textfarbe weiss */
}
.et-pb-contact-message {
    color: #ffffff !important;                    /* Textfarbe weiss */
}

.listen_header_row {
    padding:0; /* Abstand zwischen Header und Blurbs */
}

.listenblurb .et_pb_main_blurb_image {
    width: 12px !important;
}
.listenblurb .et_pb_module_header {
  position: relative;
  top: 2px;
}

/* ============================= */
/* CF7 Kontaktformular Mikkelvik */
/* ============================= */

/* Hauptcontainer */
#mikkelvik-form {
    width: 100%;
}

/* Flexbox Zeilen */
#mikkelvik-form .et_pb_contact_row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* mobile */
    margin-bottom: 20px;
}

@media (min-width: 900px) {
  #mikkelvik-form .wpcf7-form-control-wrap {
    position: relative;
    width: 48%;
  }
}


/* Halbe Breite Felder */
#mikkelvik-form .et_pb_contact_field_half {
    flex: 1 1 48%; /* flexible Breite, max 48% für Abstand */
}

/* Volle Breite Textareas */
#mikkelvik-form .et_pb_contact_row_full .et_pb_contact_field_full {
    width: 98%;
    margin-bottom: 20px;
}

/* Inputs & Textareas */
#mikkelvik-form input,
#mikkelvik-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 0;                  /* keine Abrundung */
    border: 1px solid rgba(255,255,255,0.9); /* leicht weiß-transparent */
    background-color: rgba(255,255,255,0.7); /* leicht transparent */
    font-size: 16px;
    color: #000;                        /* Text schwarz */
    box-sizing: border-box;
}

/* Platzhalter schwarz */
#mikkelvik-form input::placeholder,
#mikkelvik-form textarea::placeholder {
    color: #000;
    opacity: 1;
}


/* Button selbst */
#mikkelvik-form .et_pb_button {
    width: auto;        /* nicht volle Breite */
    padding: 12px 30px;
    border-radius: 0;   /* keine Abrundung */
    float: right;
    background-color: #014894;
    color: #fff;
}

#mikkelvik-form .et_pb_button:hover {
    background-color: #1d8ce0;
}

/* ============================= */
/* Checkbox + Label inline */
/* ============================= */

/* Oberer Container */
#mikkelvik-form .wpcf7-checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Text darf umbrechen */
    width: 100%;
}

/* Innerer List-Item */
#mikkelvik-form .wpcf7-list-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap; /* erlaubt Zeilenumbruch bei langen Texten */
}

/* Checkbox + Label inline korrekt */
#mikkelvik-form .wpcf7-checkbox {
    display: flex !important;
    align-items: center; /* Checkbox vertikal mittig */
    gap: 10px;
    flex-wrap: wrap; /* erlaubt Zeilenumbruch bei sehr langen Texten */
}

/* Checkbox selbst */
#mikkelvik-form .wpcf7-list-item input[type="checkbox"] {
    flex-shrink: 0;
    transform: scale(1.2);
    margin: 0;
    width: 2rem;
}

/* Label Text */
#mikkelvik-form .wpcf7-list-item-label {
    flex: 1;                      /* Restbreite nehmen */
    white-space: normal;           /* Text darf umbrechen */
    overflow-wrap: break-word;     /* lange Wörter umbrechen */
    word-break: break-word;
    margin: 0;
    cursor: pointer;               /* klickbar */
    color:#000;                      /* Textfarbe schwarz */
    background-color: rgba(255,255,255,0.5); /* leicht transparent */
    padding: 2px 4px;
  }

#mikkelvik-form .wpcf7 form.spam .wpcf7-response-output{
    border: 1px solid rgba(255,255,255,0.7); /* leicht weiß-transparent */
    background-color: rgba(255,255,255,0.5); /* leicht transparent */
    font-size: 16px;
    color: #e30613;
}
#mikkelvik-form .wpcf7-response-output{

    border: 1px solid #ffffff;
    background-color: rgba(255,255,255,0.5); /* leicht transparent */
    font-size: 16px;
    color: #000;
}

/* ============================= */
/* CF7 Erfolgsmeldung neben Button */
/* ============================= */

/* Formular als Flex-Container (nur für Button + Response relevant) */
#mikkelvik-form .wpcf7 form {
    display: flex;
    flex-wrap: wrap;              /* wichtig für mobile */
    align-items: center;
}

/* Erfolgs- & Fehlermeldung */
#mikkelvik-form .wpcf7-response-output {
    order: 1;                     /* links vom Button */
    margin: 0 15px 0 0;           /* Abstand zum Button */
    padding: 10px 16px;
    align-self: center;
    width: auto;
    margin-top: -6rem;
}

/* Send-Button */
#mikkelvik-form .et_pb_button {
    order: 2;                     /* rechts */
   /* float: none;                   wichtig: Float aufheben */
   margin-right: 2%; /* Abstand zum rechten Rand */
}

/* Meldung nur anzeigen, wenn vorhanden */
#mikkelvik-form .wpcf7-response-output:empty {
    display: none;
}

/* Bitte füllen Sie dieses Feld aus - Vennligst fyll ut dette feltet. Obligatoriske felt */
 .wpcf7-not-valid-tip {
    background-color: rgba(255,255,255,0.5); /* leicht transparent */
    border: 1px solid #e30613;
    border-top: none;
    padding-left: 1rem;
}

/* * Pflichtfelder */
#mikkelvik-form .infospan {
    margin-top: 2rem;
    margin-right: 1.5rem;
    display: block;
    text-align: right;
    color: #000;
}

/* ============================= */
/* Slider Anpassungen */
/* ============================= */
#datum_slider_section {
  height: 7.5rem; /* Höhe der gesamten Section, kann nach Bedarf angepasst werden */
  padding: 0;
  margin: 0;
  padding-top: 1rem;
}

#wertung_slider_section {
  height: 14rem; /* Höhe der gesamten Section, kann nach Bedarf angepasst werden */
  padding: 0;
  margin: 0;
  padding-top: 1rem;
}

/* Slide-Inhalt: Titel ausblenden, nur Datum + Text sichtbar */
#datum_slider .et_pb_slide_title,
#wertung_slider .et_pb_slide_title {
    display: none !important;
    font-size: 2rem !important;
    font-weight: 400;
    margin-top: 0;
}
#datum_slider .et_pb_slide_content,
#wertung_slider .et_pb_slide_content {
  margin-bottom: 1rem;

}

/* Dot Navigation unten */
#datum_slider .et-pb-controllers,
#wertung_slider .et-pb-controllers {
    /*bottom: 15px !important;  Abstand vom unteren Rand */
    /* top: auto !important;   zwingt Divi nicht oben zu positionieren */
    position: unset;
}

/* ============================= */
/* Optional: mobile Anpassung */
/* ============================= */
@media (max-width: 768px) {
    #mikkelvik-form .et_pb_contact_row {
        flex-direction: column;
    }
    #mikkelvik-form .et_pb_contact_field_half {
        flex: 1 1 100%;
    }
    /* Erfolgs- & Fehlermeldung */

    #mikkelvik-form .wpcf7-response-output {
        margin-top: 0.5rem;
    }

    #datum_slider_section {
        height: 11rem !important; /* etwas mehr Höhe für mobile, da Text größer */
    }

    #wertung_slider_section {
        height: 20rem !important; /* etwas mehr Höhe für mobile, da Text größer */
    }
}

@media only screen and (min-width: 1350px) {
  .et_pb_row {
    padding: 10px 0 !important;
  }
}

