
    :root {
      --bg: #ededed;
      --text: #434343;
      --text-dark: #000000;
      --placeholder: #979797;
      --border: #000000;
      --button-border: #434343;
      --hover: #e2e2e2;
      --container-max: 1440px;
      --gap: 40px;
      --radius: 0px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: auto;
    }

    button,
    input,
    textarea,
    select {
      font: inherit;
    }

    .form-container {
      max-width: var(--container-max);
      margin: 0 auto;
      padding: 0;
      overflow: visible !important;
    }

    .form-preview-layout {
      display: block;
      position: relative;
      overflow: visible !important;
    }

    .form-panel {
      width: 100%;
      max-height: none !important;
      overflow: visible !important;
      padding-right: 0;
    }

    h3,
    h4,
    p {
      margin-top: 0;
    }

    h3 {
      color: var(--text-dark);
      font-size: 1.75rem;
      margin-bottom: 30px;
      font-weight: 600;
      line-height: 1.6em;
    }

    h4 {
      color: var(--text-dark);
      font-size: 1.1rem !important;
      margin-bottom: 10px !important;
      font-weight: 600 !important;
      line-height: 1.6em !important;
    }

    p {
      margin-bottom: 16px !important;
      font-size: 0.98rem !important;
      line-height: 1.9em !important;
    }

    label {
      font-size: 0.98rem !important;
    }

    .section {
      padding-bottom: 30px;
      margin-bottom: 30px;
    }

    .section:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: 0;
    }
    
    .section-trennlinie{
      margin-top: 45px;
      margin-bottom: 65px;
      width: 100%;
      height: 15px;
      background: url(/wp-content/uploads/2026/03/Bestattungsdienst-Drei-Tannen-Olten_Trennlinie_001-mobile.svg);
      background-repeat: no-repeat;
      background-size: contain;
      opacity: 0.65;
    }

    .field-grid-2,
    .field-grid-3 {
      display: grid;
      gap: 14px;
      align-items: start;
    }

    .field-grid-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-grid-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .inline-newspaper-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 14px;
    }

    .newspaper-list .inline-newspaper-row:last-child {
      margin-bottom: 0;
    }

    .form-field,
    .form-textarea,
    .button,
    .search-input {
      border: 1px solid #000000 !important;
      background: transparent !important;
      color: #434343 !important;
      font-size: 1rem;
      padding: 15px !important;
      width: 100%;
      border-radius: 0;
    }

    .form-field::placeholder,
    .form-textarea::placeholder,
    .search-input::placeholder {
      color: #979797;
		font-size: 1rem;
    }

	input:-internal-autofill-selected {
		background-color: transparent !important;
	}

	input:-webkit-autofill, textarea:-webkit-autofill {
    -webkit-box-shadow:0 0 0 150px #ededed inset !important;
    -webkit-text-fill-color: #000;
	}

	input:-webkit-autofill:focus, textarea:-webkit-autofill {
		-webkit-box-shadow: 0 0 0 150px #ededed inset !important;
		-webkit-text-fill-color: #000;
	} 

    .form-textarea {
      min-height: 120px;
      resize: vertical;
    }

    .button,
    .upload-button,
    .popup-close,
    .duplicate-button,
    .spruch-button,
    .link-button {
      background: rgba(255,255,255,0);
      border: 1px solid #434343;
      color: #000000;
      padding: 8px 20px;
      cursor: pointer;
      font-weight: 500;
      transition: 0.3s;
      text-align: center;
    }

    .button:hover,
    .upload-button:hover,
    .popup-close:hover,
    .duplicate-button:hover,
    .spruch-button:hover,
    .link-button:hover{
      background: #e2e2e2 !important;
    }
    
    .link-button{
      margin-left: 12px;
      display: inline-block;
      text-decoration: none;
    }
    
    .upload-button{
      width: 100%;
    }

    .newspaper-controls {
      margin-top: 14px;
      display: flex;
      gap: 14px;
      align-items: center;
    }

    .add-newspaper-row,
    .remove-newspaper-row {
      width: 40px;
      height: 40px;
      min-width: 40px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      line-height: 1;
      font-weight: 300;
    }

    .spruch-actions {
      margin-top: 12px;
    }

    .motif-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .motif-card {
      border: 1px solid var(--border);
      padding: 0;
      cursor: pointer;
      display: block;
      overflow: hidden;
      position: relative;
    }

    .motif-card input[type="radio"] {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .motif-thumb {
      aspect-ratio: 4 / 3;
      display: block;
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    .motif-card input[type="radio"]:checked + .motif-thumb {
      outline: 1px solid #000;
      outline-offset: -1px;
    }

    .checkbox-row {
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }

    .checkbox-wrap {
      position: relative;
      width: 30px;
      height: 30px;
      flex: 0 0 30px;
    }

    .checkbox-wrap input {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
      margin: 0;
    }

    .checkbox-visual {
      width: 30px;
      height: 30px;
      border: 1px solid #000;
      background: transparent;
      display: block;
    }

    .checkbox-wrap input:checked + .checkbox-visual {
      background: #ededed url('/wp-content/uploads/2026/03/form-cross.jpg') center center / 24px 24px no-repeat;
      border-color: #000;
      width: 30px;
      height: 30px;
    }

    .conditional-field {
      display: none;
      margin-top: 14px;
    }

    .conditional-field.is-visible {
      display: block;
    }

    .desktop-only {
      display: block;
      margin-bottom: 0;
    }

    .tablet-mobile-only {
      display: none;
    }

    #previewPopup {
      top: 100px !important;
    }

    #previewPopup .popup-body {
      flex: none;
      overflow: visible;
    }

    #previewPopup .popup-inner {
      height: auto;
    }

    #previewPopup img {
      display: block;
      width: 100%;
      max-width: 500px;
      height: auto;
      max-height: none;
      margin: 0 auto;
    }

    .popup {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 999999 !important;
      background: rgba(11, 11, 11, 0.30);
      padding: 30px 20px;
      top: 100px;
    }

    .popup.is-open {
      display: block;
    }

    .popup-inner {
      max-width: 1175px;
      margin: 0 auto;
      height: calc(100vh - 150px);
      border: 1px solid black;
      background: #ededed;
      display: flex;
      flex-direction: column;
      position: relative;
      z-index: 999999;
    }

    .popup-header {
      padding: 22px 22px 11px 22px;
      background: #ededed;
      flex: 0 0 auto;
    }

    .popup-title {
      margin: 0 0 6px 0;
      font-size: 1.6rem;
      line-height: 2em;
      font-weight: 600;
      color: #000;
    }

    .popup-subtitle {
      margin: 0;
      font-size: 16px;
      line-height: 1.4;
    }

    .popup-toolbar {
      padding: 0px 18px 22px;
      border-bottom: 1px solid black;
      background: #ededed;
      flex: 0 0 auto;
    }

    .popup-body {
      flex: 1 1 auto;
      overflow: auto;
      padding: 22px !important;
    }

    .spruch-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .spruch-box {
      border: 1px solid black;
      background: #ededed;
      padding: 16px;
      cursor: pointer;
      white-space: pre-line;
      line-height: 1.6;
      min-height: 120px;
    }

    .spruch-box:hover {
      background: #e2e2e2 !important;
    }

    .spruch-box.hidden {
      display: none;
    }

    .no-results {
      display: none;
      border: 1px solid black;
      background: #ededed;
      padding: 16px;
      margin-top: 16px;
    }

    .no-results.show {
      display: block;
    }

    .popup-footer {
      padding: 18px 22px;
      border-top: 1px solid black;
      background: #ededed;
      flex: 0 0 auto;
      display: flex;
      justify-content: flex-end;
    }

    .preview-popup .popup-inner {
      max-width: fit-content;
    }

    .preview-popup .popup-body {
      display: block;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    #retoucheFieldWrap .form-textarea {
      margin-top: 20px;
    }

    .submit-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      flex-wrap: wrap;
    }

    .file-input-hidden {
      display: none;
    }

    .file-name {
      margin-top: 8px;
      font-size: 0.9rem;
      color: #434343;
      line-height: 1.5;
    }

    .form-message {
      display: none;
      margin-top: 30px;
      padding: 16px;
      border: 1px solid #000;
    }

    .form-message.is-visible {
      display: block;
    }

    @media (max-width: 1024px) {
      .tablet-mobile-only {
        display: block;
      }

      .desktop-only {
        display: none;
      }
    }

    @media (max-width: 800px) {
		
      .form-container {
        padding: 0 0 60px;
      }
      
      .form-textarea {
        min-height: 180px;
      }

      .field-grid-2,
      .field-grid-3,
      .motif-grid,
      .inline-newspaper-row,
      .spruch-grid {
        grid-template-columns: 1fr;
      }
      
      .motif-grid{
        grid-template-columns: 1fr 1fr;
      }
      
      #previewPopup {
        top: 86px !important;
      }

      .popup {
        padding: 12px;
        top: 86px;
      }

      .popup-inner {
        height: calc(100vh - 120px);
      }

      .popup-title {
        font-size: 1.5rem;
        line-height: 1.5em;
      }

      .submit-row {
        align-items: stretch;
      }
    }

	@media only screen and (max-width: 445px) {
		
	  h4{
		font-size: 1rem !important;
	  }
		
	  .spruch-actions .link-button{
			margin-top: 15px;
			margin-left: 0px;
		    width: fit-content;
       		min-width: 170px;
	  }
		label {
			font-size: 0.9rem !important;
		}
		
	}