/* ============================================================
   2up-consulting.de – style.css
   ============================================================ */

/* ===== SCHRIFTEN ===== */

@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-v13-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-v13-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

body {
  font-family: "Barlow", Arial, sans-serif;
  margin: 0;
}

/* ===== NAVIGATION ===== */

nav {
  background-color: #202121;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #f1c40f;
}

.logo {
  height: 40px;
  display: block;
}

/* ===== HAUPTBEREICH ===== */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

main img {
  max-width: 100%;
  height: auto;
}

main h1 {
  font-size: 2.5rem;
  margin: 40px 0 20px;
}

main p {
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FOOTER ===== */

footer {
  background-color: #ecf0f1;
  text-align: center;
  padding: 20px;
}

footer a {
  color: #2c3e50;
  text-decoration: none;
}

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

/* ===== BUTTON ===== */

.button {
  background-color: #9e8340;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  display: table;
  margin: 30px auto 0;
}

/* ===== GOLD-AKZENT (KISS) ===== */

.gold {
  color: #d4a017;
  font-weight: 700;
}

/* ===== KOPFBILDER ===== */

.hero {
  background-image: url("Vi77.png");
  background-size: cover;
  background-position: 80% 34%;
  min-height: 250px;
}

.hero2 h2 {
  font-size: 2.5rem;
  margin: 0 0 15px 0;
  text-align: center;
}

.leistungen-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: 50% 49%;
  display: block;
}

.ueber-uns-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: 50% 64%;
  display: block;
}

.kontakt-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  display: block;
}

/* ===== FLIP-KACHELN (Startseite + Leistungen) ===== */

.kacheln {
  display: grid;
  /* min() verhindert seitliches Scrollen auf kleinen Handys */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.flip {
  height: 200px;
  perspective: 1000px;
}

.flip-innen {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-vorne,
.flip-hinten {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-vorne {
  background-color: #9e8340;
  color: white;
  background-size: cover;
  background-position: center;
}

.flip-hinten {
  background-color: #ecf0f1;
  transform: rotateY(180deg);
}

.flip:hover .flip-innen,
.flip:focus .flip-innen {
  transform: rotateY(180deg);
}

.flip-vorne h3 {
  font-size: 2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.flip-hinten p {
  font-size: 1.2rem;
}

/* Bilder Startseite */
.bild-recruiting {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("puzzle2.png");
}

.bild-fuehrung {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("ships2.png");
}

.bild-prozesse {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("baukloetze.png");
}

/* Bilder Leistungen */
.bild-attract {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("bild-attract.png");
}

.bild-develop {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("bild-develop.png");
}

.bild-empower {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("bild-empower.png");
}

/* ===== WORT-FLIPS (Leistungen + Über uns) ===== */

.wort-flip {
  display: inline-block;
  perspective: 600px;
  margin: 0 2px;
}

.wort-innen {
  display: grid;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.wort-vorne,
.wort-hinten {
  grid-area: 1 / 1;
  padding: 1px 12px 1px 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.05em;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.wort-vorne {
  background-color: #ecf0f1;
  box-shadow: inset 4px 0 0 #9e8340;
}

.wort-hinten {
  background-color: #9e8340;
  color: white;
  transform: rotateY(180deg);
}

.wort-flip:hover .wort-innen,
.wort-flip:focus .wort-innen {
  transform: rotateY(180deg);
}

/* ===== KISS-BEREICH (Leistungen) ===== */

.kiss-bereich {
  display: block;
  padding: 32px;
  background-color: #ecf0f1;
  border-radius: 8px;
  max-width: 800px;
  margin: 60px auto 30px;
  box-sizing: border-box;
  text-align: left;
}

.kiss-text {
  width: 100%;
}

.kiss-text h2 {
  margin: 0 0 20px;
  font-size: 1.8rem;
  color: #353431;
  text-align: left;
}

.kiss-text h3 {
  margin: 28px 0 12px;
  font-size: 1.3rem;
  color: #353431;
  text-align: left;
}

.kiss-text p {
  max-width: none;
  margin: 0 0 18px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #353431;
  text-align: left;
}

.kiss-text p:last-child {
  margin-bottom: 0;
}

/* ===== ÜBER UNS ===== */

.intro {
  font-size: 1.3rem;
  font-weight: bold;
  max-width: none;
  margin: 0 0 40px;
}

.text-bild {
  display: flex;
  align-items: stretch;
  gap: 40px;
}

.text-spalte {
  flex: 1;
}

.text-spalte p {
  max-width: none;
  margin: 0 0 1em;
  text-align: justify;
  line-height: 1.9;
}

/* Bild mit Bio-Rückseite */
.bild-rahmen {
  position: relative;
  flex: 0 0 460px;
  width: 460px;
  height: 420px;
  margin: 0 14px 14px 0;
  align-self: center;
  perspective: 1000px;
}

.bild-rahmen::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 2px solid #9e8340;
  border-radius: 12px;
}

.seiten-bild {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bio-innen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.bio-hinten {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 24px;
  border-radius: 12px;
  background-color: #353431;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bio-hinten h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.bio-profil {
  max-width: none;
  margin: 0 0 14px;
  color: #c9c9c9;
  font-weight: bold;
  line-height: 1.4;
}

.flip-bio {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background-color: #9e8340;
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 30px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ===== KONTAKT ===== */

.kontakt-bereich {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px;
  background-color: #ecf0f1;
  border-radius: 8px;
  max-width: 800px;
  margin: 60px auto 0;
}

.kontakt-text {
  flex: 1;
}

.kontakt-text h3 {
  margin-top: 0;
}

.portrait {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #353431;
  text-decoration: none;
  font-weight: bold;
}

.contact img {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.contact a:hover img {
  transform: translateY(-5px) scale(1.1);
}

/* ===== KONTAKTFORMULAR ===== */

.formular {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 32px;
  display: grid;
  gap: 10px;
  background: #353431;
  border-radius: 8px;
  border: 1px solid #e5e1d6;
  color: white;
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
}

.formular input,
.formular button,
.formular textarea {
  font: inherit;
  padding: 12px;
}

.formular input[type="file"] {
  border-radius: 8px;
  background: #f7f5ef;
  color: #202121;
}

.formular button {
  background: #9e8340;
  border-radius: 24px;
  padding: 16px 32px;
  color: white;
  border: 0;
  cursor: pointer;
  font-weight: bold;
  justify-self: center;
  margin-top: 20px;
}

.button-datenschutz {
  border-radius: 8px;
  background-color: #525250;
  color: white;
  padding: 4px 18px;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 30px auto 0;
}

.datei-upload {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.datei-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.datei-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #9e8340;
  color: white;
  border-radius: 24px;
  cursor: pointer;
  font-weight: bold;
}

.datei-button:hover {
  background-color: #826b32;
}

.datei-upload input[type="file"]:focus-visible + .datei-button {
  outline: 2px solid white;
  outline-offset: 3px;
}

#dateiname {
  color: #f7f5ef;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* ===== DATENSCHUTZ ===== */

.datenschutz {
  max-width: 750px;
  text-align: left;
  hyphens: auto;
  overflow-wrap: break-word;
}

.datenschutz p {
  max-width: none;
  margin: 0 0 1em;
}

.datenschutz h2 {
  margin: 2em 0 0.5em;
  font-size: 1.5rem;
}

.datenschutz h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.2rem;
}

.datenschutz ul {
  list-style-position: outside;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.datenschutz li {
  padding-left: 0.25rem;
  margin-bottom: 0.6rem;
}

/* ===== MEDIA QUERIES ===== */

/* Tablet und kleiner (bis 900px) */
@media (max-width: 900px) {
  .text-bild {
    flex-direction: column;
  }

  .bild-rahmen {
    flex: none;
    width: calc(100% - 14px);
    max-width: 360px;
    height: 380px;
    align-self: center;
  }

  .bio-hinten {
    padding: 16px;
  }

  .text-spalte p {
    text-align: left;
    hyphens: auto;
  }
}

/* Handy (bis 700px) */
@media (max-width: 700px) {
  nav {
    flex-direction: column;
    gap: 12px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  main {
    padding: 16px;
  }

  main h1,
  .hero2 h2 {
    font-size: 2rem;
  }

  /* Allgemeine Flip-Kacheln */
  .flip {
    height: 240px;
  }

  .flip-vorne h3 {
    font-size: 1.6rem;
  }

  .flip-hinten p {
    font-size: 1rem;
  }

  /* Wort-Flips dürfen umbrechen */
  .wort-vorne,
  .wort-hinten {
    white-space: normal;
  }

  /* Bio-Kachel: nur mobile Anpassungen */
  .bild-rahmen {
    height: 300px;
  }

  .bio-hinten {
    padding: 14px;
    justify-content: flex-start;
    overflow: hidden;
  }

  .bio-hinten h3 {
    font-size: 1.2rem;
  }

  .bio-profil {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0;
  }

  /* Kontakt */
  .kontakt-bereich {
    flex-direction: column-reverse;
    text-align: center;
  }

  .portrait {
    width: min(100%, 320px);
    height: 340px;
    margin: 0 auto;
  }

  .formular {
    padding: 20px;
  }

  /* KISS-Bereich */
  .kiss-bereich {
    padding: 22px;
    margin: 35px auto 20px;
  }

  .kiss-text h2 {
    font-size: 1.5rem;
  }

  .kiss-text h3 {
    font-size: 1.2rem;
  }

  .kiss-text p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Formularlinks */
.formular label a {
  color: #c9a227;
  text-decoration: underline;
}

.formular label a:hover {
  color: #ffffff;
}

/* Bio-Kachel: Flip bei Mauszeiger */
@media (hover: hover) and (pointer: fine) {
  .bild-rahmen:hover .bio-innen {
    transform: rotateY(180deg);
  }
}

/* Bio-Kachel: Zustand für Klick und Tastatur */
.bild-rahmen.is-flipped .bio-innen {
  transform: rotateY(180deg);
}