/* 
Theme Name:    Derjosef-Child
Theme URI:     http://childtheme-generator.com/
Description:   Derjosef-Child is a child theme of DerJosef
Author:       Josef Gerhardter
Author URI:    https://derjosef.com
Template:      derjosef
Version:      1.0.0
Text Domain:   derjosef-child
*/

/*
    Add your custom styles here
*/

:root {
  --color-beige: #f5ebe0;
  --color-beige-dark: rgb(226, 212, 197);
  --color-black: #141212;

  --font-size-base: 14px;
  --font-size-h1: 3.96vw;
  --font-size-h2: 3.3vw;
  --font-size-h3: 3.3vw;
  --font-size-h4: 2.5vw;
  --font-size-h5: 1.71vw;
  --font-size-h6: 3.3vw;
  --line-height: 1.6;

  --spacing-small: 8px;
  --spacing-medium: 16px;
  --spacing-large: 32px;
  --spacing-xlarge: 150px;

  --corner-size-small: 25px;
  --corner-size-big: 50px;
}

/* Fonts */
/* =====================
   SOURCE SANS 3
===================== */

@font-face {
  font-family: "SourceSans3";
  src:
    url("/wp-content/themes/derjosef-child/fonts/SourceSans3/SourceSans3-Regular.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/SourceSans3/SourceSans3-Regular.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SourceSans3";
  src:
    url("/wp-content/themes/derjosef-child/fonts/SourceSans3/SourceSans3-Light.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/SourceSans3/SourceSans3-Light.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SourceSans3";
  src:
    url("/wp-content/themes/derjosef-child/fonts/SourceSans3/SourceSans3-Medium.woff2")
      format("woff2"),
    url("/wp-content/themes/derjosef-child/fonts/SourceSans3/SourceSans3-Medium.woff")
      format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =====================
   SOURCE SERIF 4
===================== */

@font-face {
  font-family: "SourceSerif4";
  src: url("/wp-content/themes/derjosef-child/fonts/SourceSerif4/SourceSerif4_18pt-Regular.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SourceSerif4";
  src: url("/wp-content/themes/derjosef-child/fonts/SourceSerif4/SourceSerif4_18pt-SemiBold.woff")
    format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SourceSerif4";
  src: url("/wp-content/themes/derjosef-child/fonts/SourceSerif4/SourceSerif4_18pt-Bold.woff")
    format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Fonts */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: fit-content;
  overflow-x: hidden;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
body {
  margin: 0;
  font-family:
    "SourceSans3",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
  background-color: var(--color-white-clear) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
.h1,
h1 p {
  font-size: calc(1.5rem + 1vw) !important;
  line-height: 1.2;
  font-family: "SourceSerif4" !important;
  font-weight: 600;
}

h2,
.h2 {
  font-size: calc(1.4rem + 0.8vw) !important;
  line-height: 1.3;
  font-family: "SourceSerif4" !important;
  font-weight: 600;
}

h3,
.h3 {
  font-size: calc(1.3rem + 0.4vw) !important;
  line-height: 1.4;
  font-family: "SourceSerif4" !important;
  font-weight: 600;
}

h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: "SourceSerif4" !important;
  font-weight: 600;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
  color: var(--color-green);
  font-family: "SourceSerif4" !important;
  font-weight: normal !important;
}
.subheadline {
  font-family: "SourceSans3" !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: calc(0.9rem + 0.2vw) !important;
  font-weight: 500;
}

.h1-xl {
  font-size: calc(2rem + 1vw) !important;
  font-family: "SourceSerif4";
  margin-bottom: 0.2em;
}
p,
li {
  margin-bottom: 1em;
  font-family: "SourceSans3" !important;
  font-weight: 400;
  font-size: 1rem !important;
}

main a {
  font-family: "SourceSans3" !important;
  color: var(--color-black) !important;
}
a {
  columns: var(--color-black) !important;
}
a:hover {
}
small {
  font-size: 0.8em !important;
}
strong {
  font-family: "SourceSans3" !important;
  font-weight: 600;
}
button {
  font-family: "SourceSerif4" !important;
  font-size: 0.8em !important;
  font-weight: 400;
  color: var(--color-black) !important;
}
.caption {
  font-family: "SourceSerif4" !important;
  font-weight: 400;
}

/* Color */

.bg-beige {
  background-color: var(--color-beige);
}
.bg-beige-dark {
  background-color: var(--color-beige-dark);
}
.bg-black {
  background-color: var(--color-black);
}

.text-beige {
  color: var(--color-beige);
}
.text-beige-dark {
  color: var(--color-beige-dark);
}
.text-black {
  color: var(--color-black);
}

/* Spacer */

.spacer-none {
  margin: 0px 0px;
}
.spacer-small {
  margin: 32px 0px;
}
.spacer-middle {
  margin: 64px 0px;
}
.spacer-big {
  margin: 128px 0px;
}
.spacer-biggest {
  margin: 200px 0px;
}
body #main {
  margin-top: 12px;
}
/* =========================
   Button – Main
   ========================= */

.button-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-beige); /* beige */
  color: var(--color-black);
  padding: 0.85rem 2.4rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
  text-transform: uppercase;
}
.button-main:hover,
.button-main:focus-visible {
  background-color: var(--color-beige-dark);
  color: var(--color-black);

  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}
.button-main:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.button-main:focus-visible {
  outline: 2px solidvar(--color-black);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .button-main {
    transition: background-color 0.2s ease;
    transform: none !important;
    box-shadow: none !important;
  }
}
/* =========================
   Button Outline Variante
========================= */

.button-main--outline {
  background-color: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-black);
  text-transform: uppercase;
}

/* Hover & Focus – gleicher Effekt wie Primary */
.button-main--outline:hover,
.button-main--outline:focus-visible {
  background-color: transparent;
  color: var(--color-black);

  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

/* Active */
.button-main--outline:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* Focus Ring – Fix für kleinen Typo */
.button-main--outline:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 4px;
}
/* =========================
   Secondary Button (Underline)
========================= */
.button-link-underline {
  background: none;
  border: none;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

.button-link-underline:hover,
.button-link-underline:focus {
  text-decoration-thickness: 2px;
}

/* menu */
/* =========================
   Header Bar
   ========================= */

.site-header {
  position: relative;
  z-index: 1000;
}

.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 1100;
}

.site-logo img {
  max-height: 40px;
}

/* Menu Toggle */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.2rem !important;
  font-weight: 500;
  cursor: pointer;
}

/* =========================
   Fullscreen Menu
   ========================= */

.fullscreen-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-100%);
  transition:
    transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.3s ease,
    visibility 0.7s;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 200px;
  border-bottom-right-radius: 200px;

  z-index: 999;
}

/* Open */
.fullscreen-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
/* Submenus verstecken */
.fullscreen-menu .sub-menu {
  display: none;
  margin-top: 0.75rem;
  list-style: none !important;
}

/* kleinere Schrift */
.fullscreen-menu .sub-menu a {
  font-size: 1.1rem;
  opacity: 0.8;
}
.fullscreen-menu li.menu-item-has-children > a {
  position: relative;
  padding-right: 2rem;
}

/* Plus */
.fullscreen-menu li.menu-item-has-children > a::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  transition: transform 0.3s ease;
}

/* Offen → Minus */
.fullscreen-menu li.is-open > a::after {
  content: "–";
}
.fullscreen-menu li.is-open > .sub-menu {
  display: block;
}
.fullscreen-menu .sub-menu {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.fullscreen-menu li.is-open > .sub-menu {
  max-height: 400px; /* genug für Inhalt */
}
/* Responsive Radius */
@media (max-width: 991px) {
  .fullscreen-menu {
    border-bottom-left-radius: 120px;
    border-bottom-right-radius: 120px;
  }
}

@media (max-width: 575px) {
  .fullscreen-menu {
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
  }
  .header-anfrage-button,
  .header-language-switcher {
    display: none;
  }
}
.header-bar {
  position: relative;
  z-index: 1001;
}
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}
/* =========================
   Menu Items
   ========================= */

.fullscreen-menu-inner {
  text-align: center;
}

.fullscreen-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fullscreen-menu-list li {
  margin-bottom: 1.5rem;
}

.fullscreen-menu-list a {
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  font-family: "SourceSerif4" !important;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.fullscreen-menu-list a:hover {
  text-decoration: underline;
}

/* Optional: Staggered Items */
.fullscreen-menu-list li {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.fullscreen-menu.is-open .fullscreen-menu-list li {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 575px) {
  .fullscreen-menu-list li {
    margin-bottom: 10px !important;
  }
}
/* =========================
   Fixed Header – Default
   ========================= */

.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  pointer-events: none; /* wichtig */
}

.header-bar-inner {
  pointer-events: auto;
  background-color: transparent;
  transition:
    background-color 0.4s ease,
    padding 0.4s ease,
    border-radius 0.4s ease,
    box-shadow 0.4s ease;
}

/* Scroll State */

.header-bar.is-scrolled .header-bar-inner {
  background-color: var(--color-beige);
  margin: 12px;
  padding: 1rem 0;
  border-radius: 14px;
}
.header-bar.is-scrolled {
  padding: 0rem 0;
}
@media (max-width: 575px) {
  .header-bar.is-scrolled .header-bar-inner {
    margin: 12px;
    border-radius: 16px;
  }
}
/* menu end */

/* footer */
.footer-section {
  background-color: var(--color-beige);
}

.footer-brand img {
  max-width: 180px;
  height: auto;
}

.footer-content p,
.footer-content a {
  font-size: 0.95rem;
  color: var(--color-black);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-content h4,
.footer-content h5 {
  margin-bottom: 1rem;
}

.footer-bottom {
  background-color: #fff;
  font-size: 0.9rem;
}

/* form */
.apartment-request-form {
  background: #f6efe7; /* warmes Beige */
  border-radius: 48px;
  padding: 3.5rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}
.apartment-request-form .form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6f6a63;
  margin-bottom: 0.35rem;
}
.apartment-request-form .form-control,
.apartment-request-form .form-select {
  background: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.apartment-request-form .form-control:focus,
.apartment-request-form .form-select:focus {
  outline: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}
.apartment-request-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}
.apartment-request-form .form-check {
  background: rgba(255, 255, 255, 0.6);
  padding: 14px 16px;
  border-radius: 16px;
}

.apartment-request-form .form-check-label {
  font-size: 0.85rem;
  color: #6f6a63;
}
.apartment-request-form input[type="submit"] {
  background: transparent;
  border: 1.5px solid #1c1c1c;
  color: #1c1c1c;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.apartment-request-form input[type="submit"]:hover {
  background: #1c1c1c;
  color: #ffffff;
}
@media (max-width: 768px) {
  .apartment-request-form {
    padding: 2.5rem 1.5rem;
    border-radius: 32px;
  }
}
.wpcf7-response-output {
  display: none !important;
}
.form-success-message {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  text-align: center;
}

.form-success-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* form end */
/* polylang */
.header-language-switcher ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-language-switcher li {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-language-switcher a {
  color: #1c1c1c;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-language-switcher a:hover,
.header-language-switcher .current-lang a {
  opacity: 1;
  font-weight: 600;
}
/* polylang end */
