/*------------------------------------------------------------------------------------------------
  Theme Name: Hautbemaler
  Theme URI: https://example.com/
  Author: Rainer Thom
  Author URI: https://example.com/
  Description: Custom Tattoo-Artist-Theme (Onepager + Booking-Seite)
  Version: 1.0
  Text Domain: hautbemaler
------------------------------------------------------------------------------------------------*/

:root {
    --bg-dark: #050608;
    --bg-darker: #020304;
    --bg-light: #f6f6f6;
    --accent: #e8a23c; /* Akzentfarbe Gold */
    --accent-soft: #e8a23c26;
    --text-light: #fdfdfd;
    --text-muted: #a6a6a6;
    --text-dark: #151515;
    --border-subtle: #ffffff14;
    --header-height: 140px;
  }
  
  /*------------------------------------------------------------------------------------------------ 
    Global 
  ------------------------------------------------------------------------------------------------*/
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
  }
  
  /*------------------------------------------------------------------------------------------------ 
    Container 
  ------------------------------------------------------------------------------------------------*/
  
  .container {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
  }
  
  /*------------------------------------------------------------------------------------------------ 
    Header & Navigation 
  ------------------------------------------------------------------------------------------------*/
  
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(5, 6, 8, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo a {
    display: inline-flex;            /* NEU: Logo + Text nebeneinander */
    align-items: center;             /* NEU: vertikal zentriert */
    gap: 0.6rem;                     /* Abstand zwischen Logo und Text */
    text-decoration: none;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  /* Logo-Bild links */
  .logo-image {
    display: block;
    height: 120px;
    width: 120px;                    /* Logo als Kreis, wenn PNG ungefähr quadratisch ist */
    border-radius: 999px;            /* macht den Rahmen rund */
    border: 1px solid var(--accent); /* wie „Termin buchen“ */
    box-sizing: border-box;          /* Rahmen + Padding in die 120px einrechnen (global schon gesetzt) */
  }

  /* Wortmarke rechts vom Logo */
  .logo-text {
    display: flex;
    flex-direction: column;          /* zwei Zeilen untereinander */
    line-height: 1.1;
  }

  /* obere Zeile: Haupname */
  .logo-line-1 {
    font-weight: 700;
    font-size: 0.95rem;
  }

  /* untere Zeile: Zusatz "Tattoo Artist" etwas kleiner/ruhiger */
  .logo-line-2 {
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    opacity: 0.8;
  }
  
  .logo span {
    color: var(--accent);
  }
  
  /*------------------------------------------------------------------------------------------------ 
    Desktop Nav 
  ------------------------------------------------------------------------------------------------*/
  
  .site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  
  .site-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease, opacity 0.2s ease;
  }
  
  .site-nav a:hover {
    color: var(--text-light);
    opacity: 0.9;
  }
  
  .btn-nav {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
  }
  
  /*------------------------------------------------------------------------------------------------ 
    Mobile Nav Toggle 
  ------------------------------------------------------------------------------------------------*/
  
  .nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  
  .nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  
  /*------------------------------------------------------------------------------------------------ 
    Sections 
  ------------------------------------------------------------------------------------------------*/
  
  main {
    margin-top: var(--header-height);
  }
  
  .section {
    min-height: calc(100vh - var(--header-height));
    padding: 4rem 0;
    display: flex;
    align-items: center;
  }
  
  .section-light {
    background: radial-gradient(
      circle at top,
      #553619 0%,   /* oben: deutlich heller, warmes Dunkel-Orange/Braun */
      #3f2614 45%,  /* Mitte: mittleres, warmes Dunkelbraun */
      #28180c 100%  /* unten: noch dunkel, aber heller als .section-dark */
    );
  }
  
  .section-dark {
    background: radial-gradient(
      circle at top, 
      #14151a 0, 
      #020304 45%, 
      #050608 100%);
  }
  
  /*--------------------------------------------- 
    Hero / Intro Section 
  ---------------------------------------------*/
  
  .hero {
    position: relative;
    background-image:
      linear-gradient(120deg, rgba(5, 6, 8, 0.9), rgba(5, 6, 8, 0.8)),
      url("https://hautbemaler.de/wp-content/uploads/2025/11/hautbemaler_02_working.jpg");
    background-size: cover;
    background-position: center;
    color: var(--text-light);

    /* Intro Block horizontal + vertikal zentrieren */
    justify-content: center;   /* horizontal */
    align-items: center;       /* vertikal (zur Sicherheit explizit) */
    text-align: left;        /* Text mittig ausrichten */

  }
  
  .hero .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(232, 162, 60, 0.25), transparent 60%);
    pointer-events: none;
  }
  
  .hero-content {
    position: relative;
    max-width: 640px;

    padding-top: 0;   
    margin: 0 auto; 
  }
  
  .hero h1 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  .hero h1 span {
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 0.6rem;
    font-weight: 500;
    color: var(--accent);
  }
  
  .hero p {
    max-width: 480px;
    color: var(--text-muted);
    font-size: 0.98;
    line-height: 1.3;
    margin-bottom: 2rem;
  }
  
  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  /*--------------------------------------------- 
    Buttons 
  ---------------------------------------------*/
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  }
  
  .btn.primary {
    background: var(--accent);
    color: #1b1307;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  }
  
  .btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
  
  .btn.secondary {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
  }
  
  .btn.secondary:hover {
    background: var(--accent-soft);
  }
  
  /*--------------------------------------------- 
    Section Header (General)
  ---------------------------------------------*/
  
  .section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2.5rem;
  }
  
  .section-header h2 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .section-header p {
    color: var(--text-muted);
    font-size: 0.98;
    line-height: 1.3;
  }
  
  /*--------------------------------------------- 
    Portfolio Section
  ---------------------------------------------*/
  
  .portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
  }
  
  .tag {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
  }
  
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.6rem;
  }
  
  .portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #101119;
    border: 1px solid var(--border-subtle);
  }
  
  .portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  }
  
  .portfolio-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.7rem 0.9rem 0.85rem;
    background: linear-gradient(to top, rgba(5, 6, 8, 0.95), transparent);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .portfolio-item:hover img {
    transform: scale(1.04);
    filter: grayscale(0.3);
    opacity: 0.9;
  }
  
  /*--------------------------------------------- 
    Über mich Section
  ---------------------------------------------*/
  
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
  }
  
  .about-image img {
    width: 100%;
    border-radius: 1.5rem;
    display: block;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }
  
  .about-text h2 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 2rem;
    margin-top: 0;
  }
  
  .about-text p {
    font-size: 0.98;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-muted);
  }
  
  .about-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
  }
  
  .about-list li {
    margin-bottom: 0.5rem;
  }
  
  /*--------------------------------------------- 
    Kontakt Section
  ---------------------------------------------*/
  
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
  }
  
  .contact-info h2 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 2rem;
  }
  
  .contact-info p {
    color: var(--text-muted);
    font-size: 0.98;
    line-height: 1.3;
  }
  
  .contact-details p {
    margin: 0 0 0.8rem;
    font-size: 0.96rem;
  }
  
  .contact-details a {
    color: var(--accent);
    text-decoration: none;
  }
  
  .contact-details a:hover {
    text-decoration: underline;
  }
  
  /*--------------------------------------------- 
    Impressum & Datenschutz Section
  ---------------------------------------------*/
  
  .section-legal {
    min-height: 100vh;
    padding: 5rem 0 4rem;
    background: #ffffff;          /* weißer Hintergrund */
    color: var(--text-dark);
  }

  /* Fließtext auf Legal-Seiten angenehm lesbar machen */
  .legal-content {
    margin-top: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
  }

  .legal-content p {
    margin-bottom: 0.9rem;
    color: #333333;
  }

  .legal-content h2,
  .legal-content h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
    color: #111111;
    font-weight: 600;
  }

  /* Optional: Links in Legal-Text zurückhaltend, aber erkennbar */
  .legal-content a {
    color: #0056a6;
    text-decoration: underline;
  }

  /*------------------------------------------------------------------------------------------------ 
    Formulare 
  ------------------------------------------------------------------------------------------------*/
  
  .contact-form-wrapper,
  .booking-form-wrapper {
    background: rgba(15, 16, 24, 0.96);          /* etwas voller / satter als der Hintergrund */
    border-radius: 1.2rem;
    padding: 1.8rem 1.8rem 2rem;

    /* dünner Rahmen im Akzent-Ton (analog Button / Logo) */
    border: 1px solid rgba(232, 162, 60, 0.45);  /* var(--accent) mit Transparenz */

    /* etwas klarer, aber nicht übertrieben */
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.5),
      0 18px 50px rgba(0, 0, 0, 0.6);
  }  

  .section-light .contact-form-wrapper {
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  }
  
  .contact-form-wrapper h3,
  .booking-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 1.2rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  input,
  textarea,
  select {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(6, 7, 12, 0.9);
    color: var(--text-light);
    font: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }
  
  .section-light input,
  .section-light textarea,
  .section-light select {
    background: #fdfdfd;
    color: var(--text-dark);
    border-color: #dddddd;
  }
  
  input::placeholder,
  textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
  }
  
  .section-light input::placeholder,
  .section-light textarea::placeholder {
    color: #999999;
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(232, 162, 60, 0.4);
  }
  
  textarea {
    resize: vertical;
  }
  
  .form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
  }
  
  .privacy-note {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  
  .privacy-note a {
    color: var(--accent);
  }

  .form-success,
  .form-error {
    margin-bottom: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
  }

  /* Erfolgsnachricht: kräftiger grüner Hintergrund */
  .form-success {
    background: #155724;          /* sattes Grün */
    border: 1px solid #1e7e34;    /* etwas heller/grüner Rand */
    color: #f6fff6;               /* fast weißer Text für guten Kontrast */
  }

  /* Fehlermeldung: kräftiger roter Hintergrund */
  .form-error {
    background: #721c24;          /* sattes Rot/Bordeaux */
    border: 1px solid #f5c6cb;    /* kontrastiger, leicht heller Rand */
    color: #ffffff;               /* weißer Text */
  }  
  
  /*------------------------------------------------------------------------------------------------ 
    Booking page 
  ------------------------------------------------------------------------------------------------*/
  
  body.page-template-page-booking {
    background: radial-gradient(circle at top, #1a1822 0, #050608 50%, #020304 100%);
  }
  
  .booking-section {
    padding-top: 6rem;
  }
  
  .booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
  }
  
  .booking-text h1 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 2.2rem;
    margin-top: 0;
  }
  
  .booking-text p {
    color: var(--text-muted);
    line-height: 1.7;
  }
  
  .booking-hints {
    list-style: disc;
    padding-left: 1.1rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.96rem;
  }
  
  .form-row {
    display: flex;
    gap: 1rem;
  }
  
  .form-row > div {
    flex: 1;
  }
  
  /*------------------------------------------------------------------------------------------------ 
    Footer 
  ------------------------------------------------------------------------------------------------*/
  
  .site-footer {
    border-top: 1px solid var(--border-subtle);
    background: #050608;
    padding: 1.2rem 0;
  }
  
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
  }
  
  .footer-links a:hover {
    color: var(--accent);
  }
  
  /* Social Links mit Icon im Footer */
  .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .social-link .icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
  }

  .social-link .icon svg {
    width: 100%;
    height: 100%;
  }

  /* Optional: Rechtstexte etwas schlichter */
  .footer-link-legal {
    font-size: 0.8rem;
  }

  /* Booking header adjustments */
  
  .booking-header {
    background: rgba(5, 6, 8, 0.92);
  }
  
  .booking-nav ul {
    gap: 1rem;
  }
  
  /*------------------------------------------------------------------------------------------------ 
    Responsive Design 
  ------------------------------------------------------------------------------------------------*/
  
  @media (max-width: 920px) {
    .about-grid,
    .contact-grid,
    .booking-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .section {
      padding: 4.5rem 0 3.5rem;
    }
  
    .hero-content {
      padding-top: 2.5rem;
    }
  
    .hero {
      text-align: left;
    }
  }

  /*------------------------------------------------------------------------------------------------ 
    Scroll-Reveal: sanftes "Wachsen" beim Reinscrollen 
  ------------------------------------------------------------------------------------------------*/

  .reveal-scale {
    transform: scale(0.9);
    opacity: 0;
    transform-origin: center top;
    transition:
      transform 0.5s ease-out,
      opacity 0.5s ease-out;
  }

  /* Wenn Element im Viewport ist */
  .reveal-scale.in-view {
    transform: scale(1);
    opacity: 1;
  }
  
  @media (max-width: 920px) {
    /* Mobile Nav sichtbar machen */
    .nav-toggle {
      display: block;
    }
  
    .site-nav {
      position: absolute;
      top: var(--header-height);
      right: 0;
      left: 0;
      background: rgba(5, 6, 8, 0.98);
      transform: translateY(-120%);
      opacity: 0;
      visibility: hidden;
      transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s ease;
    }
  
    .site-nav ul {
      flex-direction: column;
      align-items: flex-start;
      padding: 0.8rem 1.5rem 1rem;
      gap: 0.7rem;
    }
  
    .site-nav.nav-open {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
    }
  
    /* Burger-Animation (leicht) */
    .nav-toggle.nav-open .nav-toggle-bar:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle.nav-open .nav-toggle-bar:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle.nav-open .nav-toggle-bar:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }
  
    .form-row {
      flex-direction: column;
    }
  }
  
  @media (max-width: 600px) {
    .hero-actions {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .contact-form-wrapper,
    .booking-form-wrapper {
      padding: 1.4rem 1.4rem 1.7rem;
    }
  
    .footer-inner {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
.page-content {
  margin-top: 1rem;
  line-height: 1.7;
}

.page-content h2 {
  margin-top: 1.6rem;
}

.page-content p {
  margin-bottom: 0.9rem;
}

/*------------------------------------------------------------------------------------------------ 
  Anker-Offset für Sektionen, damit der fixe Header nichts überdeckt 
------------------------------------------------------------------------------------------------*/

#intro,
#portfolio,
#about,
#contact {
  scroll-margin-top: calc(var(--header-height));
}