/*
Theme Name: Ruba Immobilien
Theme URI: https://ruba-immobilien.de/
Author: Ruba Immobilien GmbH & Co. KG
Description: Theme fuer die neue Website der Ruba Immobilien GmbH & Co. KG. Uebernimmt das Erscheinungsbild der bisherigen Seite (YOOtheme Avenue): Roboto Condensed, Akzent #dc5537 mit Verlauf, dunkle Navigationsleiste, weisse Panels, Bildershow mit drei Motiven.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
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: ruba-immobilien
*/

/* =========================================================================
   1. Schrift (selbst gehostet – kein Google-Fonts-Aufruf)
   ========================================================================= */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/roboto-condensed-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/roboto-condensed-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================================
   2. Design-Tokens – Werte aus dem Original-Template (yoo_avenue)
   ========================================================================= */
:root {
  --rb-akzent:        #dc5537;
  --rb-akzent-top:    #e4623f;
  --rb-akzent-bot:    #d64c31;
  --rb-akzent-hover:  #d96b53;
  --rb-akzent-aktiv:  #cc4a2d;
  --rb-akzent-titel:  #e05b3a;

  --rb-dunkel:        #333333;
  --rb-dunkel-top:    #383838;
  --rb-dunkel-bot:    #2f2f2f;

  --rb-text:          #555555;
  --rb-muted:         #999999;
  --rb-line:          rgba(0, 0, 0, .07);
  --rb-panel:         #ffffff;
  --rb-soft:          #f7f7f7;
  --rb-bg:            #f0f0f0;
  --rb-caption:       rgba(48, 48, 48, .9);

  --rb-max:  1000px;
  --rb-gap:  20px;
  --rb-pad:  25px;
}

/* =========================================================================
   3. Grundgeruest
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  font: 300 14px / 20px 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--rb-bg);
  color: var(--rb-text);
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
}

body { margin: 0; min-height: 100vh; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rb-akzent-titel); text-decoration: none; }
a:hover { color: var(--rb-akzent-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 15px 0;
  color: var(--rb-dunkel);
  font-weight: 300;
}
h1 { font-size: 36px; line-height: 42px; }
h2 { font-size: 24px; line-height: 30px; }
h3 { font-size: 18px; line-height: 24px; }

p  { margin: 0 0 15px 0; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }

ul { margin: 0 0 15px 0; padding-left: 20px; }
ul:last-child { margin-bottom: 0; }

/* Aussenrahmen der Seite – entspricht .tm-container des Originals */
.rb-page {
  max-width: var(--rb-max);
  margin: 0 auto 20px auto;   /* oben buendig – dort sitzt der Hinweis */
  background: var(--rb-panel);
  box-shadow: 0 0 6px rgba(0, 0, 0, .08);
}

.rb-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   4. Kopfzeile: Logo
   ========================================================================= */
.rb-headerbar {
  display: flex;
  align-items: center;
  gap: var(--rb-gap);
  flex-wrap: wrap;
  padding: 20px var(--rb-pad);
}

.rb-logo { display: block; text-decoration: none; }
.rb-logo:hover { text-decoration: none; }
.rb-logo img { width: 72px; height: 72px; }


/* =========================================================================
   5. Navigation – 55px hoch, Verlauf wie .uk-navbar
   ========================================================================= */
.rb-navbar {
  background: var(--rb-dunkel);
  background-image: linear-gradient(to bottom, var(--rb-dunkel-top), var(--rb-dunkel-bot));
}

.rb-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }

.rb-nav a {
  display: block;
  height: 55px;
  padding: 0 20px;
  line-height: 55px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
}
.rb-nav a:hover,
.rb-nav a:focus {
  background-color: rgba(0, 0, 0, .2);
  color: #ffffff;
  text-decoration: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .1);
}
.rb-nav .rb-nav__active > a,
.rb-nav .current-menu-item > a,
.rb-nav .current_page_item > a {
  background-color: var(--rb-akzent);
  background-image: linear-gradient(to bottom, var(--rb-akzent-top), var(--rb-akzent-bot));
  color: #ffffff;
}

/* Mobiles Menue ohne JavaScript */
.rb-nav-toggle { display: none; }
.rb-nav-label {
  display: none;
  height: 55px;
  padding: 0 20px;
  line-height: 55px;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.rb-nav-label::before { content: "\2630"; margin-right: 10px; }

/* Toolbar: Brotkrumen links, Rechtliches rechts */
.rb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px var(--rb-pad);
  border-bottom: 1px solid var(--rb-line);
  font-size: 13px;
}
.rb-toolbar a { color: var(--rb-text); }
.rb-toolbar a:hover { color: var(--rb-akzent-titel); }
.rb-breadcrumb { color: var(--rb-muted); }
.rb-breadcrumb a { color: var(--rb-text); }

.rb-subnav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.rb-subnav > li + li { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--rb-line); }

/* =========================================================================
   6. Titelbild auf der Startseite
   ---------------------------------------------------------------------------
   Das Logo steht frei auf hellem Grund, mit Luft drumherum – eine
   randlose Flaeche wuerde die feinen Linien des Zeichens erdruecken.
   ========================================================================= */
.rb-titelbild {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 25px;
  background: var(--rb-soft);
  border: 1px solid var(--rb-line);
}
.rb-titelbild img {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  .rb-titelbild { padding: 30px 15px; }
}
/* =========================================================================
   7. Abschnitte, Panels
   ========================================================================= */
.rb-section { padding: var(--rb-gap) var(--rb-pad) 0 var(--rb-pad); }
.rb-section--last { padding-bottom: var(--rb-gap); }

.rb-panel {
  background: var(--rb-panel);
  border: 1px solid var(--rb-line);
  padding: var(--rb-pad);
}

/* Kurze Zeile direkt unter einer Seitenueberschrift */
.rb-unterzeile {
  margin-top: -6px;
  color: var(--rb-akzent-titel);
  font-size: 18px;
  line-height: 24px;
}

/* Panel-Titel: Akzentfarbe mit Trennlinie – wie .uk-panel-header */
.rb-panel__title {
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rb-line);
  color: var(--rb-akzent-titel);
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
}

/* =========================================================================
   8. Raster
   ========================================================================= */
.rb-grid { display: grid; gap: var(--rb-gap); }
.rb-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* =========================================================================
   9. Baustellenhinweis
   ========================================================================= */
.rb-banner {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--rb-line);
  line-height: 1.5;
}
.rb-banner__stripe {
  flex: 0 0 6px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--rb-akzent) 0, var(--rb-akzent) 8px,
    var(--rb-dunkel) 8px, var(--rb-dunkel) 16px
  );
}
.rb-banner__text { margin: 0; padding: 13px 18px; }
.rb-banner__label {
  margin-right: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rb-akzent-titel);
  white-space: nowrap;
}

/* Als oberste Zeile im Seitenrahmen: nur eine Trennlinie nach unten,
   damit der Kasten buendig mit der Seite abschliesst. */
.rb-banner--oben {
  border-width: 0 0 1px 0;
}

/* Grosses Baustellenschild */
.rb-baustelle { border: 1px solid var(--rb-line); background: #ffffff; }
.rb-baustelle__stripe {
  height: 10px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--rb-akzent) 0, var(--rb-akzent) 12px,
    var(--rb-dunkel) 12px, var(--rb-dunkel) 24px
  );
}
.rb-baustelle__body { padding: 30px var(--rb-pad); text-align: center; }
.rb-baustelle__label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  background: var(--rb-akzent);
  background-image: linear-gradient(to bottom, var(--rb-akzent-top), var(--rb-akzent-bot));
  color: #ffffff;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rb-baustelle__body p { max-width: 620px; margin-left: auto; margin-right: auto; }

/* =========================================================================
   10. Standorte
   ========================================================================= */
/* Alle Standorte stehen zusammen in einem Kasten. Die einzelne Adresse
   bekommt keine eigene Flaeche, nur eine feine Linie als Spaltenmarke. */
.rb-standorte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.rb-standort {
  padding-left: 14px;
  border-left: 2px solid var(--rb-line);
}
.rb-standort__offen { color: var(--rb-muted); }
.rb-standort__nr {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rb-muted);
}
.rb-standort address {
  font-style: normal;
  color: var(--rb-dunkel);
  line-height: 22px;
}

/* =========================================================================
   11. Buttons – Masse und Verlauf aus .uk-button / .uk-button-primary
   ========================================================================= */
.rb-button {
  display: inline-block;
  box-sizing: border-box;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--rb-line);
  border-radius: 0;
  background: #f5f5f5;
  background-image: linear-gradient(to bottom, #f9f9f9, #f0f0f0);
  color: var(--rb-text);
  font: inherit;
  font-size: 13px;
  font-weight: 300;
  line-height: 30px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}
.rb-button:hover,
.rb-button:focus { background-image: none; background-color: #ffffff; color: var(--rb-dunkel); text-decoration: none; }
.rb-button:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .1); }

.rb-button--primary {
  background-color: var(--rb-akzent);
  background-image: linear-gradient(to bottom, var(--rb-akzent-top), var(--rb-akzent-bot));
  border-color: transparent;
  color: #ffffff;
}
.rb-button--primary:hover,
.rb-button--primary:focus { background-color: var(--rb-akzent-hover); background-image: none; color: #ffffff; }
.rb-button--primary:active { background-color: var(--rb-akzent-aktiv); }

/* =========================================================================
   12. Listen
   ========================================================================= */
/* Trennlinien-Liste wie .uk-list-line */
.rb-liste { list-style: none; margin: 0; padding: 0; }
.rb-liste > li:nth-child(n+2) {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--rb-line);
}

/* Impressum-Tabelle */
.rb-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
}
.rb-dl dt {
  padding: 8px 15px 8px 0;
  border-bottom: 1px solid var(--rb-line);
  color: var(--rb-muted);
}
.rb-dl dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--rb-line);
  color: var(--rb-dunkel);
}
.rb-dl dt:last-of-type, .rb-dl dd:last-of-type { border-bottom: 0; }

/* =========================================================================
   13. Fusszeile – hellgrau und zentriert wie .tm-footer
   ========================================================================= */
.rb-footer {
  position: relative;
  padding: var(--rb-pad);
  background: var(--rb-soft);
  border-top: 1px solid var(--rb-line);
  text-align: center;
  font-size: 13px;
}

/* "Nach oben"-Pfeil wie .tm-totop-scroller */
.rb-totop {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 14px;
  color: var(--rb-text);
  text-align: center;
  text-decoration: none;
  transition: all linear .05s;
}
.rb-totop::after { content: "\25B2"; }
.rb-totop:hover { color: #888888; font-size: 16px; text-decoration: none; }

/* =========================================================================
   14. Responsiv
   ========================================================================= */
/* .rb-standorte regelt seine Spalten selbst – hier ist nichts noetig. */

@media (max-width: 700px) {
  :root { --rb-pad: 15px; }

  .rb-headerbar { justify-content: center; }

  .rb-nav-label { display: block; }
  .rb-nav { display: none; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .12); }
  .rb-nav-toggle:checked ~ .rb-nav { display: flex; }
  .rb-nav a { height: 46px; line-height: 46px; }

  .rb-grid--2 { grid-template-columns: 1fr; }

  .rb-dl { grid-template-columns: 1fr; }
  .rb-dl dt { padding-bottom: 0; border-bottom: 0; }
  .rb-dl dd { padding-top: 2px; }

  h1 { font-size: 28px; line-height: 34px; }
  h2 { font-size: 21px; line-height: 27px; }
}

@media print {
  .rb-navbar, .rb-toolbar, .rb-button, .rb-totop { display: none !important; }
  html, body { background: #ffffff; }
  .rb-page { box-shadow: none; margin: 0; max-width: none; }
}
