/* ---------- Base ---------- */
  :root{
    --orange:#008C00;
    --logo-yellow:#ffde00;
    --text:#222;
    --bg:#fdfdfd;
    --glass-blur:8px;
    --glass-sat:120%;
    --card-shadow:0 6px 18px rgba(0,0,0,0.12);
    --btn-shadow:0 4px 10px rgba(0,0,0,0.15);
    --btn-shadow-hover:0 6px 14px rgba(0,0,0,0.2);
  }
  *{box-sizing:border-box}
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg);
    text-align: center;
    color: var(--text);
    position: relative;
    min-height: 100vh;
  }
  /* glossy sheen on the WHITE empty space only (not the header/boxes) */
  body::before{
    content:"";
    position: fixed; inset: 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.0) 28%),
      radial-gradient(140% 60% at 50% -15%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%);
    pointer-events: none;
    mix-blend-mode: screen;
  }

  /* ---------- Header (REVERTED: no glass or gloss added) ---------- */
  header {
    display: flex;
    align-items: center;
    background-color: var(--orange);
    height: 106px;
    position: relative;
    /* removed overflow and any ::after sheen */
  }

    .logo { 
      background: #ffde00; 
      width: 340px; 
      height: 50%; 
      clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); 
      display: flex; 
      align-items: center; 
      margin-top: -34px; 
      justify-content: center; 
      position: relative;
      cursor: pointer;
    }
    .logo::after { content: ""; position: absolute; bottom: 0; left: 0; width: 195px; height: 6px; }
    .logo h1 { 
      font-family: 'Cooper Black', sans-serif !important;
      font-weight: 400; 
      font-size: 27px; 
      font-style: italic;
      color: #1FAFF7; 
      letter-spacing: 1px; 
      transform: skew(-5deg);
    }

  .header-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .header-title h2 {
    font-family: 'Arial Black'; !important;
    font-size: 32px;
    font-weight: bold;
    font-style: italic;
    color: #fff;
    text-shadow: none;
  }

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

  /* ---------- Cards with subtle glass ---------- */
  .finden-box,
  .anbieten-box {
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
  }

  /* FINDEN (white card) — keep white but add glassy depth */
  .finden-box{
    background: rgba(255,255,255,0.80);
    border: 1px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    box-shadow: var(--card-shadow);
  }
  /* top glossy streak */
  .finden-box::before{
    content:"";
    position:absolute; left:0; right:0; top:0; height:56px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0));
    pointer-events:none;
  }

  /* ANBIETEN (orange card) — keep orange + text white but add glass sheen */
.anbieten-box{
    background: linear-gradient(
        180deg,
        #4CAF50,
        #008C00,
        #006400
    );
    color:#fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(calc(var(--glass-blur) - 2px)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) - 2px)) saturate(var(--glass-sat));
    box-shadow: var(--card-shadow);
}
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(calc(var(--glass-blur) - 2px)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) - 2px)) saturate(var(--glass-sat));
    box-shadow: var(--card-shadow);
  }
  .anbieten-box::before{
    content:"";
    position:absolute; inset:0;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.00) 40%),
      radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,0.28), rgba(255,255,255,0));
    pointer-events:none;
  }

/* ===== GLOSSY ORANGE STYLE (same as orange rectangle) ===== */
.finden-btn,
.anbieten-btn{

  font-size: 28px;
  font-weight: bold;
  padding: 15px 60px;
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  isolation: isolate;

  /* glossy orange gradient */
  background: linear-gradient(
    180deg,
    rgba(255,150,40,0.95),
    rgba(255,110,10,0.98),
    rgba(170,60,0,1.00)
  );

  color: #ffffff;

  border: 3px solid rgba(255,255,255,0.35);

  box-shadow:
    0 10px 26px rgba(0,0,0,0.25),

  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
}

/* glossy shine */
.finden-btn::before,
.anbieten-btn::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 14px;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.40),
    rgba(255,255,255,0.15),
    transparent 60%
  );
  pointer-events:none;
}

/* ===== HOVER = WHITE ===== */
.finden-btn:hover,
.anbieten-btn:hover{

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.98),
    rgba(245,245,245,0.95),
    rgba(230,230,230,0.95)
  );

  color: #008C00;

  box-shadow:
    0 14px 32px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -6px 14px rgba(0,0,0,0.10);

  transform: translateY(-2px);
}

  /* FINDEN button — keep white bg & orange border */
  .finden-btn{
    color: var(--orange);
    background: rgba(255,255,255,0.90);
    border: 4px solid var(--orange);
    border-color: #FFC6A4;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--btn-shadow);
  }
  /* glossy edge and subtle inner highlight */

  .finden-btn:hover,
  .finden-btn:active{
    background: rgba(255,102,0,0.95);
    color:#fff;
    box-shadow: var(--btn-shadow-hover);
  }

  /* ANBIETEN button — keep orange bg + white outline */
  .anbieten-btn{
    background: rgba(255,102,0,0.96);
    color: #fff;
    border: 4px solid var(--green);
    outline: 4px solid rgba(255,255,255,0.65);
    outline-offset: -4px;
    box-shadow: var(--btn-shadow);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .anbieten-btn::after{
    content:"";
    position:absolute; inset:0;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.55), rgba(255,255,255,0.0) 45%);
    opacity:.35;
    pointer-events:none;
  }
  .anbieten-btn:hover,
  .anbieten-btn:active{
    background: rgba(255,255,255,0.90);
    color: var(--green);
    outline-color: transparent;
    box-shadow: var(--btn-shadow-hover);
  }

  .hint {
    font-size: 14px;
    margin-top: 10px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 0 rgba(0,0,0,0.12);
  }


/* Hint داخل صندوق FINDEN فقط — رمادي غامق */
.finden-box .hint{
  color:#787878;     /* رمادي غامق */
  text-shadow:none;
}

/* ===== FINDEN default = white ===== */
.finden-btn{

  background: linear-gradient(
    180deg,
    #ffffff,
    #f3f3f3,
    #e6e6e6
  ) !important;

  color: #008C00 !important;

  border: 3px solid #008C00 !important;

  box-shadow:
    0 10px 26px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -6px 12px rgba(0,0,0,0.08);
}

/* ===== FINDEN hover = orange glossy ===== */
.finden-btn:hover{

  background: linear-gradient(
    180deg,
    #4CAF50,
    #008C00,
    #006400
  ) !important;

  color: #ffffff !important;

  box-shadow:
    0 16px 36px rgba(0,0,0,0.28),
}

/* ===== FORCE MATCH: Angebot einstellen look ===== */
.anbieten-btn{
  /* keep same geometry */
  border-radius: 14px !important;
  padding: 15px 60px !important;
  font-weight: bold !important;

  /* glossy orange gradient */
  background: linear-gradient(
    180deg,
    rgba(80,220,80,0.95),
    rgba(0,140,0,0.98),
    rgba(0,90,0,1.00)
  ) !important;

  color: #fff !important;

  /* ✅ whiter edges like Angebot einstellen */
  border: 3px solid rgba(255,255,255,0.55) !important;



  /* optional: avoid glass blur changing the look */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  transition: all .25s ease !important;
  position: relative !important;
  isolation: isolate !important;
}

/* remove old shine layers from previous rules */
.anbieten-btn::before,
.anbieten-btn::after{
  display: none !important;
}

/* hover = white */
.anbieten-btn:hover{
  background: linear-gradient(
    180deg,
    #ffffff,
    #f3f3f3,
    #e6e6e6
  ) !important;

  color: #008C00 !important;

  border-color: rgba(255,255,255,0.85) !important;
  outline-color: transparent !important;

  box-shadow:
    0 16px 36px rgba(0,0,0,0.28),
    0 0 0 2px rgba(255,255,255,0.22),
    inset 0 1px 0 rgba(255,255,255,0.90),
    inset 0 -8px 18px rgba(0,0,0,0.10) !important;

  transform: translateY(-2px) !important;
}

/* click */
.anbieten-btn:active{
  transform: translateY(-1px) !important;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.22) !important;
}


/* ===== Dark mode fixes added ===== */

/* darker gray boxes */
body.dark .finden-box,
body.dark .anbieten-box{
  background: #575757 !important;
  border-color: #6a6a6a !important;
  box-shadow:
    0 8px 28px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* make FINDEN hint text white in dark mode */
body.dark .finden-box .hint{
  color: rgba(255,255,255,0.90) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

@font-face {
  font-family: "Merriweather";
  src: url("fonts/Merriweather_48pt-Black.ttf") format("truetype");
  font-display: swap;
}

.header-title h2{
  font-family: "Merriweather", Arial, sans-serif !important;
  font-size: 42px;
  font-weight: bold !important;
  font-style: normal; /* أو italic إذا أردت نفس الميلان الحالي */
}

/* ===== Benutzer-Icons und Einstellungsmenü wie auf der Index-Seite ===== */
.top-icons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 25px;
}

.top-icons .icon-btn {
  width: 43px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-icons .icon-btn img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(20%) sepia(40%) saturate(2500%) hue-rotate(170deg) brightness(60%) contrast(80%);
}

.settings-menu {
  position: relative;
  display: inline-flex;
}

.settings-icon-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.settings-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 150px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.settings-dropdown::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 100%;
  height: 10px;
}

.settings-menu.is-open .settings-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.settings-item {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  color: #333;
  text-align: left;
  font: 15px Arial, sans-serif;
  cursor: pointer;
}

.settings-item:hover,
.settings-item:focus-visible {
  background: #f5f5f5;
}

body.dark .top-icons img {
  filter: brightness(0) saturate(100%) invert(98%) sepia(1%) saturate(18%)
          hue-rotate(211deg) brightness(106%) contrast(94%) !important;
}

@media (max-width: 900px) {
  .top-icons { right: 12px; gap: 10px; }
  .top-icons .icon-btn,
  .top-icons .icon-btn img { width: 36px; height: 36px; }
  .header-title { max-width: 45%; text-align: center; }
  .header-title h2 { font-size: 22px; }
}
