/*
Theme Name: 3ezwa
Theme URI: http://localhost/3ezwa
Author: Your Name
Author URI:
Description: Custom multilingual theme for 3ezwa with support for English, German, and Arabic (RTL).
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: threezwa
Tags: custom-logo, custom-menu, translation-ready, rtl-language-support
*/

:root {
  --primary-color: #da3b15;
  --background-color: #ffffff;
  --text-color: #000000;
  --font-en: "Franklin Gothic", Arial, sans-serif;
  --font-ar: "Franklin Gothic", "Idris Sharp", Arial, sans-serif;
}

/* Font Faces */
@font-face {
  font-family: "Franklin Gothic";
  src:
    url("assets/fonts/FranklinGothic.woff2") format("woff2"),
    url("assets/fonts/FranklinGothic.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Idris Sharp";
  src:
    url("assets/fonts/IdrisSharpRegular.woff2") format("woff2"),
    url("assets/fonts/IdrisSharpRegular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-U+06FF, U+0750-U+077F, U+08A0-U+08FF,
                 U+FB50-U+FDFF, U+FE70-U+FEFF, U+200C-U+200F, U+25CC;
}

@font-face {
  font-family: "Idris Sharp";
  src:
    url("assets/fonts/IdrisSharpExtraBold.woff2") format("woff2"),
    url("assets/fonts/IdrisSharpExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-U+06FF, U+0750-U+077F, U+08A0-U+08FF,
                 U+FB50-U+FDFF, U+FE70-U+FEFF, U+200C-U+200F, U+25CC;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-en);
  background: var(--background-color);
  color: var(--text-color);
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

main {
  min-height: calc(100vh - 200px);
  margin-bottom: 40px;
}

[lang^="ar"] body {
  font-family: var(--font-ar);
  direction: rtl;
}

.seperator {
  width: 120%;
  height: auto;
  margin: 20px 0;
}

/* Typography */
h1 {
  font-size: 3rem; /* 48px if root is 16px */
  font-weight: bold;
  margin: 1.5rem 0 1rem 0;
}
h2,
h3,
h4,
h5,
h6 {
  font-size: 1.5rem; /* 24px */
  font-weight: bold;
  margin: 1.25rem 0 0.75rem 0;
}
p {
  font-size: 1.25rem; /* 20px */
  margin: 1rem 0;
}

blockquote,
blockquote p {
  font-size: 2rem;
  line-height: 1.1;
  margin: 1.5rem 0;
}

blockquote {
  background: var(--text-color);
  color: var(--background-color);
  border-left: 10px solid var(--primary-color);
  padding-left: 10px;
}

a {
  color: var(--text-color);
}

/* Main content text alignment per language */
/* [lang^="en"] #main-content,
[lang^="en"] .entry-content,
[lang^="en"] .site-hero {
  text-align: left;
}

[lang^="de"] #main-content,
[lang^="de"] .entry-content,
[lang^="de"] .site-hero {
  text-align: center;
}

[lang^="ar"] #main-content,
[lang^="ar"] .entry-content,
[lang^="ar"] .site-hero {
  text-align: right;
} */

[lang^="de"] .lang-align {
  margin-left: auto;
  margin-right: auto;
}

.prose {
  max-width: 65ch;
}

/* Language Switcher */
#language-switcher {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--background-color);
  box-sizing: border-box;
  direction: ltr;
  margin: 20px 0;
  font-size: 1.2rem;
}

.lang-item {
  flex: 1;
}

.lang-item.lang-en {
  text-align: left;
}

.lang-item.lang-de {
  text-align: center;
}

.lang-item.lang-ar {
  text-align: right;
}

#language-switcher a {
  text-decoration: none;
  color: var(--text-color);
}

#language-switcher .active,
#language-switcher a.active,
.lang-item.active a {
  color: var(--primary-color) !important;
  font-weight: bold;
}

#language-switcher a:hover {
  text-decoration: underline;
}

.lang-en a {
  font-family: var(--font-en);
}

.lang-de a {
  font-family: var(--font-en);
}

.lang-ar a {
  font-family: var(--font-ar);
}

#language-switcher a:hover {
  background-color: var(--background-color);
}

.lang-item.active a,
#language-switcher a.active {
  color: var(--primary-color);
  font-weight: bold;
}

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
}

/* Homepage */
.site-hero {
}

.site-heading {
  background: var(--background-color);
  max-width: 550px;
}

.site-subheading {
  background: var(--background-color);
  max-width: 550px;
  margin-bottom: 40px;
}

.green-line {
  position: fixed;
  width: auto;
  height: 100vh;
  left: 0px;
  top: 0px;
  z-index: -1;
}

.logo-marker {
  position: fixed;
  width: 437.57px;
  height: 392.36px;
  right: -50px;
  top: 195.82px;
  z-index: -1;
  mix-blend-mode: multiply;
}

/* Homepage Image Links */
.homepage-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.homepage-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.homepage-link:hover h3 {
  text-decoration: underline;
}

.homepage-link-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.homepage-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.homepage-link h3 {
  margin-top: 6px;
  color: var(--text-color);
  text-align: center;
}

/* Primary Menu - always on right */

.main-menu,
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.footer-nav {
  margin-top: 20px;
}

.main-menu li,
.footer-nav li {
  display: inline;
}

.main-menu a,
.footer-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.main-menu a:hover,
.footer-nav a:hover {
  text-decoration: underline;
}

.main-menu .current-menu-item a,
.footer-nav .current-menu-item a {
  font-weight: bold;
  color: var(--primary-color);
}

.footer-translation {
  font-size: 2rem;
}

/* RTL Menu Support */
[lang^="ar"] .main-menu,
[lang^="ar"] .footer-nav {
  flex-direction: row-reverse;
}

/* --- Footer, nav, hamburger: mobile-first --- */
.footer-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  width: 100%;
}
.footer-menu,
.footer-logo,
.footer-contact {
  flex: unset;
  text-align: center;
  margin-bottom: 0;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.footer-nav {
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 0;
  margin-bottom: 20px;
}
.footer-nav li {
  margin: 0.5rem 0;
  display: block;
}
.footer-nav a {
  font-size: 1.5em;
}
.footer-translation {
  font-size: 2rem;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.desktop-menu {
  display: none;
}
.mobile-nav-wrapper .hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
}
.mobile-nav-wrapper .hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--text-color, #000);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  box-sizing: border-box;
  transition: opacity 0.2s;
  font-size: 3rem;
  color: var(--text-color);
}
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.mobile-menu-list li {
  margin: 1.5rem 0;
}
.mobile-menu .close {
  position: absolute;
  top: 120px;
  right: 30px;
  background: none;
  border: none;
}

/* Desktop: side by side */
@media (min-width: 768px) {
  .homepage-links {
    flex-direction: row;
    justify-content: center;
  }

  .homepage-link {
    flex: 1;
    max-width: 33.333%;
  }
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.skip-link:focus {
  background-color: #fff;
  color: #000;
}

/* Archive and Search Headers */
.page-header {
  padding: 30px 20px;
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  font-size: 2rem;
  color: #222;
}

.archive-description {
  margin-top: 10px;
  color: #666;
}

/* Posts Navigation */
.posts-navigation {
  padding: 20px;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
}

.posts-navigation a {
  color: #0066cc;
  text-decoration: none;
}

.posts-navigation a:hover {
  text-decoration: underline;
}

/* Single Post */
.entry-header {
  padding: 30px 20px 20px;
}

.entry-title {
  margin: 0 0 10px 0;
  font-size: 2.25rem;
  color: #222;
}

.entry-meta {
  font-size: 0.875rem;
  color: #666;
}

.entry-meta .entry-date {
  margin-right: 15px;
}

.entry-thumbnail {
  margin: 0 20px 20px;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.entry-content {
  padding: 0 20px 20px;
  line-height: 1.7;
}

.entry-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  font-size: 0.875rem;
  color: #666;
}

.entry-footer .cat-links,
.entry-footer .tag-links {
  display: block;
  margin-bottom: 5px;
}

.entry-footer a {
  color: #0066cc;
  text-decoration: none;
}

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

/* Post Navigation */
.post-navigation {
  padding: 20px;
  border-top: 1px solid #eee;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  color: #0066cc;
  text-decoration: none;
}

.post-navigation a:hover {
  text-decoration: underline;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
}

.post-navigation .nav-title {
  font-weight: bold;
}

/* Form Styling - Black & White, No Border Radius */

form {
  border-top: 5px var(--primary-color) solid;
  padding-top: 20px;
  padding-bottom: 20px;
}

form input,
form select,
form textarea,
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 2px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

form input:focus,
form select:focus,
form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

form label,
.wpcf7-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #000;
}

form button[type="submit"] {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.75rem 2rem !important;
  font-size: 1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  box-shadow: none !important;
  margin-top: 20px;
}

form button[type="submit"]:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

form input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover,
input[type="submit"].wpcf7-form-control:hover,
button.wpcf7-form-control.wpcf7-submit:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.mitglieder-radio-group {
  display: inline-flex;
  gap: 2em;
  align-items: center;
  margin-bottom: 1em;
}
.mitglieder-radio-option {
  display: flex;
  align-items: center;
  font-size: 1em;
  gap: 0.5em;
  cursor: pointer;
}

.mitglieder-radio-option:first-child {
  min-width: 165px;
}

/* --- Hamburger menu (mobile) --- */
@media (max-width: 900px) {
  .desktop-menu {
    display: none;
  }
  .mobile-nav-wrapper .hamburger {
    display: flex;
  }
}
@media (min-width: 901px) {
  .desktop-menu {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  box-sizing: border-box;
  transition: opacity 0.2s;
  font-size: 3rem;
  color: var(--text-color);
}
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.mobile-menu-list li {
  margin: 1.5rem 0;
}

@media (min-width: 901px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    gap: 0 2rem;
    width: 100%;
    text-align: left;
  }
  .footer-logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-content: flex-start;
    align-items: start;
    display: flex;
    margin-bottom: 0;
  }
  .footer-menu {
    text-align: left;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    margin-bottom: 0;
    flex-direction: row;
    width: auto;
  }
  .footer-nav {
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin-bottom: 0;
  }
  .footer-nav li {
    margin: 0 0.75rem;
    display: inline-block;
  }
  .footer-nav a {
    font-size: 1.2rem;
  }
  .footer-translation {
    text-align: right;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: flex-end;
    width: 100%;
  }
  .desktop-menu {
    display: block;
  }
  .mobile-nav-wrapper .hamburger {
    display: none;
  }
}

/* Hide hamburger by default, show only on mobile */
@media (max-width: 900px) {
  .mobile-nav-wrapper .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2100;
    padding: 0;
  }
  .mobile-nav-wrapper .hamburger span {
    display: block !important;
    height: 2px;
    width: 100%;
    background: var(--text-color, #000);
    margin: 3px 0;
  }
}
.mitglieder-radio-option input[type="radio"] {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  accent-color: #111;
  margin: 0 0.3em 0 0;
  vertical-align: middle;
}
.mitglieder-radio-option input[type="radio"]:checked {
  border-color: #111;
  background: #fff;
}
.mitglieder-radio-option input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 0.7em;
  height: 0.7em;
  background: #111;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.mitglieder-radio-option input[type="radio"]:focus {
  box-shadow: 0 0 0 2px #1112;
}
/* Mitglieder-Form: Multi-column layout only */
.mitglieder-row {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}
.mitglieder-field {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mitglieder-terms-field {
  margin-top: 2em;
}

.mitglieder-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  font-size: 1em;
  cursor: pointer;
}

input[type="checkbox"] {
  border: 2px solid var(--text-color);
}

.mitglieder-checkbox-label input[type="checkbox"] {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  accent-color: #111;
  margin: 0 0.3em 0 0;
  vertical-align: middle;
}

.mitglieder-row {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}
@media (max-width: 600px) {
  .mitglieder-row {
    flex-direction: column;
    gap: 0.5em;
  }
  .mitglieder-radio-group {
    flex-direction: column;
    gap: 0.5em;
    align-items: flex-start;
  }
  .mitglieder-field {
    margin-bottom: 0.3em;
  }
  .mitglieder-field input,
  .mitglieder-field select {
    margin-bottom: 0.2em;
  }
  .mitglieder-radio-option {
    justify-content: flex-start;
  }
}

/* Fixed member.png on right for all pages except homepage and member/form */
.become-member {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  width: 250px;
  max-width: 30vw;
}

.become-member img {
  width: 100%;
  height: auto;
  display: block;
}

[lang^="ar"] .become-member {
  right: auto;
  left: 0;
}

@media screen and (max-width: 1200px) {
  .become-member {
    width: 150px;
  }
}

@media screen and (max-width: 768px) {
  .become-member {
    display: none;
  }
}
