/*
Theme Name:   Divi Child
Theme URI:
Description:  Child Theme für Divi 5 – photolium.de
Author:       Tom Radecke
Author URI:   https://www.photolium.de
Template:     Divi
Version:      1.0.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  divi-child
*/

@import url('opensans-fonts.css');

/* ============================================
   Schrift
   ============================================ */

body,
h1, h2, h3, h4, h5, h6,
p, li, a, blockquote,
input, textarea, select, button,
.et_pb_button {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ============================================
   Schriftgrößen – Basis 16px
   ============================================ */

html {
  font-size: 100%;
}

body,
p,
li {
  font-size: 1rem;          /* 16px */
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); }    /* 30 → 44px */
h2 { font-size: clamp(1.5rem, 1.2rem + 1.25vw, 2rem); }      /* 24 → 32px */
h3 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); }   /* 20 → 24px */
h4 { font-size: 1.125rem; }                                  /* 18px */
h5 { font-size: 1rem; }                                      /* 16px */
h6 { font-size: 1rem; }                                      /* 16px */

h5, h6 {
  font-weight: 600;
}

small,
figcaption {
  font-size: 0.875rem;      /* 14px */
}

/* ============================================
   Farben
   Akzentfarbe = Blau des Hero-Buttons
   (exakten Hex-Wert prüfen und hier eintragen)
   ============================================ */

:root {
  --farbe-akzent: #1e4fc2;
  --farbe-akzent-hover: #163a91;
  --farbe-text: #333333;
}

/* Links im Fließtext */
.et_pb_text a,
.et_pb_blurb_description a,
.entry-content a {
  color: var(--farbe-akzent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.et_pb_text a:hover,
.et_pb_blurb_description a:hover,
.entry-content a:hover {
  color: var(--farbe-akzent-hover);
}

/* Hauptmenü (Standard-Header) */
#top-menu a {
  color: var(--farbe-text);
}

#top-menu li.current-menu-item > a,
#top-menu li.current-menu-ancestor > a,
#top-menu a:hover {
  color: var(--farbe-akzent) !important;
  opacity: 1;
}

/* Mobiles Menü */
.mobile_menu_bar:before,
.et_mobile_menu li a {
  color: var(--farbe-akzent);
}

/* ============================================
   Kontaktformular (Contact Form 7)
   ============================================ */

.wpcf7-form label {
  display: block;
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--farbe-text);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  background-color: #ffffff;
  font-weight: 400;
  font-size: 1rem;
  color: var(--farbe-text);
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: 2px solid var(--farbe-akzent);
  outline-offset: 1px;
  border-color: var(--farbe-akzent);
}

.wpcf7-form textarea {
  min-height: 10rem;
}

.wpcf7-acceptance {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.wpcf7-form input[type="submit"] {
  padding: 0.75rem 2rem;
  border: 0;
  border-radius: 4px;
  background-color: var(--farbe-akzent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: var(--farbe-akzent-hover);
}

/* ============================================
   Lange Wörter in Überschriften korrekt trennen
   (z. B. „Suchmaschinen-optimierung“ statt „…optimierun / g“)
   ============================================ */

h2, h3, h4,
.et_pb_module_header {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;
}

/* ============================================
   Footer (Theme Builder)
   ============================================ */

.et-l--footer {
  --footer-bg: #0f1f44;
  --footer-bg-unten: #0a1630;
  --footer-text: #cbd5e1;
  --footer-link: #9db8ff;
}

.et-l--footer,
.et-l--footer p,
.et-l--footer li {
  color: var(--footer-text);
}

.et-l--footer strong {
  color: #ffffff;
}

.et-l--footer ul {
  list-style: none;
  padding-left: 0;
}

.et-l--footer li {
  margin-bottom: 0.4rem;
}

.et-l--footer a,
.et-l--footer .et_pb_text a {
  color: var(--footer-link);
  text-decoration: none;
}

.et-l--footer a:hover,
.et-l--footer .et_pb_text a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================
   Eigene Anpassungen ab hier
   ============================================ */